View Javadoc

1   /*
2    * Copyright 2009 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.osedu.org/licenses/ECL-2.0
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.student.contract.model;
17  
18  /**
19   * Models a cross-object constraint
20   * @author nwright
21   */
22  public class CrossObjectConstraint {
23  
24      public static String IMPLEMENTATION_TYPE_STATE_WHEN = "typeStateWhen";
25  
26      public CrossObjectConstraint() {
27      }
28      private String id;
29  
30      /**
31       * Get the value of id
32       *
33       * @return the value of id
34       */
35      public String getId() {
36          return id;
37      }
38  
39      /**
40       * Set the value of id
41       *
42       * @param id new value of id
43       */
44      public void setId(String id) {
45          this.id = id;
46      }
47      private String implementation;
48  
49      /**
50       * Get the value of implementation
51       *
52       * @return the value of implementation
53       */
54      public String getImplementation() {
55          return implementation;
56      }
57  
58      /**
59       * Set the value of implementation
60       *
61       * @param implementation new value of implementation
62       */
63      public void setImplementation(String implementation) {
64          this.implementation = implementation;
65      }
66      private String dictionaryId;
67  
68      /**
69       * Get the value of dictionaryId
70       *
71       * @return the value of dictionaryId
72       */
73      public String getDictionaryId() {
74          return dictionaryId;
75      }
76  
77      /**
78       * Set the value of dictionaryId
79       *
80       * @param dictionaryId new value of dictionaryId
81       */
82      public void setDictionaryId(String dictionaryId) {
83          this.dictionaryId = dictionaryId;
84      }
85      private String object1;
86  
87      /**
88       * Get the value of object1
89       *
90       * @return the value of object1
91       */
92      public String getObject1() {
93          return object1;
94      }
95  
96      /**
97       * Set the value of object1
98       *
99       * @param object1 new value of object1
100      */
101     public void setObject1(String object1) {
102         this.object1 = object1;
103     }
104     private String type1;
105 
106     /**
107      * Get the value of type1
108      *
109      * @return the value of type1
110      */
111     public String getType1() {
112         return type1;
113     }
114 
115     /**
116      * Set the value of type1
117      *
118      * @param type1 new value of type1
119      */
120     public void setType1(String type1) {
121         this.type1 = type1;
122     }
123     private String state1;
124 
125     /**
126      * Get the value of state1
127      *
128      * @return the value of state1
129      */
130     public String getState1() {
131         return state1;
132     }
133 
134     /**
135      * Set the value of state1
136      *
137      * @param state1 new value of state1
138      */
139     public void setState1(String state1) {
140         this.state1 = state1;
141     }
142     private String relationType;
143 
144     /**
145      * Get the value of relationType
146      *
147      * @return the value of relationType
148      */
149     public String getRelationType() {
150         return relationType;
151     }
152 
153     /**
154      * Set the value of relationType
155      *
156      * @param relationType new value of relationType
157      */
158     public void setRelationType(String relationType) {
159         this.relationType = relationType;
160     }
161     private String cardinalityType;
162 
163     /**
164      * Get the value of cardinalityType
165      *
166      * @return the value of cardinalityType
167      */
168     public String getCardinalityType() {
169         return cardinalityType;
170     }
171 
172     /**
173      * Set the value of cardinalityType
174      *
175      * @param cardinalityType new value of cardinalityType
176      */
177     public void setCardinalityType(String cardinalityType) {
178         this.cardinalityType = cardinalityType;
179     }
180     private String object2;
181 
182     /**
183      * Get the value of object2
184      *
185      * @return the value of object2
186      */
187     public String getObject2() {
188         return object2;
189     }
190 
191     /**
192      * Set the value of object2
193      *
194      * @param object2 new value of object2
195      */
196     public void setObject2(String object2) {
197         this.object2 = object2;
198     }
199     private String type2;
200 
201     /**
202      * Get the value of type2
203      *
204      * @return the value of type2
205      */
206     public String getType2() {
207         return type2;
208     }
209 
210     /**
211      * Set the value of type2
212      *
213      * @param type2 new value of type2
214      */
215     public void setType2(String type2) {
216         this.type2 = type2;
217     }
218     private String state2;
219 
220     /**
221      * Get the value of state2
222      *
223      * @return the value of state2
224      */
225     public String getState2() {
226         return state2;
227     }
228 
229     /**
230      * Set the value of state2
231      *
232      * @param state2 new value of state2
233      */
234     public void setState2(String state2) {
235         this.state2 = state2;
236     }
237     private String desc;
238 
239     /**
240      * Get the value of desc
241      *
242      * @return the value of desc
243      */
244     public String getDesc() {
245         return desc;
246     }
247 
248     /**
249      * Set the value of desc
250      *
251      * @param desc new value of desc
252      */
253     public void setDesc(String desc) {
254         this.desc = desc;
255     }
256     private String comments;
257 
258     /**
259      * Get the value of comments
260      *
261      * @return the value of comments
262      */
263     public String getComments() {
264         return comments;
265     }
266 
267     /**
268      * Set the value of comments
269      *
270      * @param comments new value of comments
271      */
272     public void setComments(String comments) {
273         this.comments = comments;
274     }
275     private String minOccurs;
276 
277     /**
278      * Get the value of minOccurs
279      *
280      * @return the value of minOccurs
281      */
282     public String getMinOccurs() {
283         return minOccurs;
284     }
285 
286     /**
287      * Set the value of minOccurs
288      *
289      * @param minOccurs new value of minOccurs
290      */
291     public void setMinOccurs(String minOccurs) {
292         this.minOccurs = minOccurs;
293     }
294     private String maxOccurs;
295 
296     /**
297      * Get the value of maxOccurs
298      *
299      * @return the value of maxOccurs
300      */
301     public String getMaxOccurs() {
302         return maxOccurs;
303     }
304 
305     /**
306      * Set the value of maxOccurs
307      *
308      * @param maxOccurs new value of maxOccurs
309      */
310     public void setMaxOccurs(String maxOccurs) {
311         this.maxOccurs = maxOccurs;
312     }
313 }