View Javadoc

1   /**
2    * Copyright 2004-2013 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.student.contract.model;
17  
18  /**
19   * Represents a message structure (dto)
20   * @author nwright
21   */
22  public class MessageStructure {
23  
24      private String id;
25      private String xmlObject;
26      private String shortName;
27      private String name;
28      private String type;
29      private String url;
30      private String description;
31      private String required;
32      private String readOnly;
33      private String cardinality;
34      private String status;
35      private String xmlAttribute;
36      private String implNotes;
37      private boolean overriden;
38      private boolean deprecated;
39      private Lookup lookup;
40      private boolean primaryKey;
41  
42      public String getId() {
43          return id;
44      }
45  
46      public void setId(String id) {
47          this.id = id;
48      }
49  
50      public String getXmlObject() {
51          return xmlObject;
52      }
53  
54      public void setXmlObject(String xmlObject) {
55          this.xmlObject = xmlObject;
56      }
57  
58      public String getShortName() {
59          return shortName;
60      }
61  
62      public void setShortName(String shortName) {
63          this.shortName = shortName;
64      }
65  
66      public String getName() {
67          return name;
68      }
69  
70      public void setName(String name) {
71          this.name = name;
72      }
73  
74      public String getType() {
75          return type;
76      }
77  
78      public void setType(String type) {
79          this.type = type;
80      }
81  
82      public String getUrl() {
83          return url;
84      }
85  
86      public void setUrl(String url) {
87          this.url = url;
88      }
89  
90      public String getDescription() {
91          return description;
92      }
93  
94      public void setDescription(String description) {
95          this.description = description;
96      }
97  
98      public String getRequired() {
99          return required;
100     }
101 
102     public void setRequired(String required) {
103         this.required = required;
104     }
105 
106     public String getReadOnly() {
107         return readOnly;
108     }
109 
110     public void setReadOnly(String readOnly) {
111         this.readOnly = readOnly;
112     }
113 
114     public String getCardinality() {
115         return cardinality;
116     }
117 
118     public void setCardinality(String cardinality) {
119         this.cardinality = cardinality;
120     }
121 
122     public String getXmlAttribute() {
123         return xmlAttribute;
124     }
125 
126     public void setXmlAttribute(String xmlAttribute) {
127         this.xmlAttribute = xmlAttribute;
128     }
129 
130     public String getStatus() {
131         return status;
132     }
133 
134     public void setStatus(String status) {
135         this.status = status;
136     }
137 
138     public String getImplNotes() {
139         return implNotes;
140     }
141 
142     public void setImplNotes(String implNotes) {
143         this.implNotes = implNotes;
144     }
145 
146     public boolean isOverriden() {
147         return overriden;
148     }
149 
150     public void setOverriden(boolean overriden) {
151         this.overriden = overriden;
152     }
153 
154     public boolean isDeprecated() {
155         return deprecated;
156     }
157 
158     public void setDeprecated(boolean deprecated) {
159         this.deprecated = deprecated;
160     }
161 
162     public Lookup getLookup() {
163         return lookup;
164     }
165 
166     public void setLookup(Lookup lookup) {
167         this.lookup = lookup;
168     }
169 
170     public boolean isPrimaryKey() {
171         return primaryKey;
172     }
173 
174     public void setPrimaryKey(boolean primaryKey) {
175         this.primaryKey = primaryKey;
176     }
177 
178     @Override
179     public String toString() {
180         return "MessageStructure [xmlObject=" + xmlObject + "]";
181     }
182 
183     public String toExpandedString() {
184         return "MessageStructure{" +
185                 "id='" + id + '\'' +
186                 ", xmlObject='" + xmlObject + '\'' +
187                 ", shortName='" + shortName + '\'' +
188                 ", name='" + name + '\'' +
189                 ", type='" + type + '\'' +
190                 ", url='" + url + '\'' +
191                 // ", description='" + description + '\'' +
192                 ", required='" + required + '\'' +
193                 ", readOnly='" + readOnly + '\'' +
194                 ", cardinality='" + cardinality + '\'' +
195                 ", status='" + status + '\'' +
196                 ", xmlAttribute='" + xmlAttribute + '\'' +
197                 ", implNotes='" + implNotes + '\'' +
198                 ", overriden=" + overriden +
199                 ", deprecated=" + deprecated +
200                 ", lookup=" + lookup +
201                 ", primaryKey=" + primaryKey +
202                 '}';
203     }
204 }