View Javadoc

1   /*
2    * Copyright 2007-2010 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.core.config.xsd;
17  
18  import javax.xml.bind.annotation.XmlAccessType;
19  import javax.xml.bind.annotation.XmlAccessorType;
20  import javax.xml.bind.annotation.XmlAttribute;
21  import javax.xml.bind.annotation.XmlType;
22  import javax.xml.bind.annotation.XmlValue;
23  
24  @XmlAccessorType(XmlAccessType.FIELD)
25  @XmlType(name = "Param", namespace = "http://rice.kuali.org/xsd/core/config",  propOrder = {
26      "value"
27  })
28  public class Param {
29      
30      @XmlAttribute(required = true)
31      protected String name;
32      
33      @XmlAttribute
34      protected Boolean override;
35      
36      @XmlAttribute
37      protected Boolean random;
38      
39      @XmlAttribute
40      protected Boolean system;
41      
42      @XmlValue
43      protected String value;
44      
45  
46      public String getName() {
47          return name;
48      }
49  
50      public void setName(String name) {
51          this.name = name;
52      }
53  
54      public Boolean isOverride() {
55          if (override == null) {
56              return true;
57          } else {
58              return override;
59          }
60      }
61  
62      public void setOverride(Boolean override) {
63          this.override = override;
64      }
65      
66      public Boolean isRandom() {
67          if (random == null) {
68              return false;
69          } else {
70              return random;
71          }
72      }
73  
74      public void setRandom(Boolean random) {
75          this.random = random;
76      }
77      
78      public Boolean isSystem() {
79          if (system == null) {
80              return false;
81          } else {
82              return system;
83          }
84      }
85  
86      public void setSystem(Boolean system) {
87          this.system = system;
88      }
89      
90      public String getValue() {
91          return value;
92      }
93  
94      public void setValue(String value) {
95          this.value = value;
96      }
97  
98  }