View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  //
17  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 
18  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
19  // Any modifications to this file will be lost upon recompilation of the source schema. 
20  // Generated on: 2008.10.21 at 02:14:18 PM PDT 
21  //
22  
23  
24  package org.kuali.student.common.dictionary.old.dto;
25  
26  import java.io.Serializable;
27  
28  import javax.xml.bind.annotation.XmlAccessType;
29  import javax.xml.bind.annotation.XmlAccessorType;
30  import javax.xml.bind.annotation.XmlAttribute;
31  import javax.xml.bind.annotation.XmlElement;
32  
33  
34  /**
35   * <p>Java class for anonymous complex type.
36   * 
37   * <p>The following schema fragment specifies the expected content contained within this class.
38   * 
39   * <pre>
40   * &lt;complexType>
41   *   &lt;complexContent>
42   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43   *       &lt;sequence>
44   *         &lt;element ref="{http://www.dto.dictionary.student.kuali.org}fieldDescriptor"/>
45   *         &lt;element name="readOnly" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
46   *       &lt;/sequence>
47   *       &lt;attribute name="key" type="{http://www.w3.org/2001/XMLSchema}string" />
48   *     &lt;/restriction>
49   *   &lt;/complexContent>
50   * &lt;/complexType>
51   * </pre>
52   * 
53   * 
54   */
55  @XmlAccessorType(XmlAccessType.FIELD)
56  public class Field implements Serializable{
57  
58      private static final long serialVersionUID = 1L;
59  
60      @XmlAttribute(required = true)
61      protected String key;
62  
63      @XmlAttribute 
64      protected String id;
65      
66      @XmlElement //TODO there is no required here but there should be
67      protected FieldDescriptor fieldDescriptor;
68      
69      @XmlElement
70      protected ConstraintDescriptor constraintDescriptor;
71      
72      @XmlElement
73      protected boolean selector;
74      
75      @XmlElement
76      protected boolean dynamic;
77      
78      
79      /**
80       * Gets the value of the fieldDescriptor property.
81       * 
82       * @return
83       *     possible object is
84       *     {@link FieldDescriptor }
85       *     
86       */
87      public FieldDescriptor getFieldDescriptor() {
88          return fieldDescriptor;
89      }
90  
91      /**
92       * Sets the value of the fieldDescriptor property.
93       * 
94       * @param value
95       *     allowed object is
96       *     {@link FieldDescriptor }
97       *     
98       */
99      public void setFieldDescriptor(FieldDescriptor value) {
100         this.fieldDescriptor = value;
101     }
102 
103 	public boolean isSelector() {
104 		return selector;
105 	}
106 
107 	/**
108 	 * 	Indicates if the field is a selector field, which indicates that changes 
109 	 *  to this field may alter the structure of the object type. This may provide 
110 	 *  insight as to frequency of calls to a validate operation, as the 
111 	 *  constraints will not be externalized.
112 	 *  
113 	 * @param isSelector
114 	 */
115 	public void setSelector(boolean isSelector) {
116 		this.selector = isSelector;
117 	}
118 
119 	/**
120      * Gets the value of the key property.
121      * 
122      * @return
123      *     possible object is
124      *     {@link String }
125      *     
126      */
127     public String getKey() {
128         return key;
129     }
130 
131     /**
132      * Sets the value of the key property.
133      * 
134      * @param value
135      *     allowed object is
136      *     {@link String }
137      *     
138      */
139     public void setKey(String value) {
140         this.key = value;
141     }
142 
143 	/**
144 	 * @return the constraintDescriptor
145 	 */
146 	public ConstraintDescriptor getConstraintDescriptor() {
147 		return constraintDescriptor;
148 	}
149 
150 	/**
151 	 * @param constraintDescriptor the constraintDescriptor to set
152 	 */
153 	public void setConstraintDescriptor(ConstraintDescriptor constraintDescriptor) {
154 		this.constraintDescriptor = constraintDescriptor;
155 	}
156 
157 	/**
158 	 * @return the id
159 	 */
160 	public String getId() {
161 		return id;
162 	}
163 
164 	/**
165 	 * @param id the id to set
166 	 */
167 	public void setId(String id) {
168 		this.id = id;
169 	}
170 
171 	/**
172 	 * @return the dynamic
173 	 */
174 	public boolean isDynamic() {
175 		return dynamic;
176 	}
177 
178 	/**
179 	 * @param dyncamic the dynamic to set
180 	 */
181 	public void setDynamic(boolean dynamic) {
182 		this.dynamic = dynamic;
183 	}
184 
185 }