001    /**
002     * Copyright 2004-2014 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.student.contract.model;
017    
018    /**
019     * Represents a message structure (dto)
020     * @author nwright
021     */
022    public class MessageStructure {
023    
024        private String id;
025        private String xmlObject;
026        private String shortName;
027        private String name;
028        private String type;
029        private String url;
030        private String description;
031        private String required;
032        private String readOnly;
033        private String cardinality;
034        private String status;
035        private String xmlAttribute;
036        private String implNotes;
037        private boolean overriden;
038        private boolean deprecated;
039        private Lookup lookup;
040        private boolean primaryKey;
041        private String columnName;
042    
043        public String getId() {
044            return id;
045        }
046    
047        public void setId(String id) {
048            this.id = id;
049        }
050    
051        public String getXmlObject() {
052            return xmlObject;
053        }
054    
055        public void setXmlObject(String xmlObject) {
056            this.xmlObject = xmlObject;
057        }
058    
059        public String getShortName() {
060            return shortName;
061        }
062    
063        public void setShortName(String shortName) {
064            this.shortName = shortName;
065        }
066    
067        public String getName() {
068            return name;
069        }
070    
071        public void setName(String name) {
072            this.name = name;
073        }
074    
075        public String getType() {
076            return type;
077        }
078    
079        public void setType(String type) {
080            this.type = type;
081        }
082    
083        public String getUrl() {
084            return url;
085        }
086    
087        public void setUrl(String url) {
088            this.url = url;
089        }
090    
091        public String getDescription() {
092            return description;
093        }
094    
095        public void setDescription(String description) {
096            this.description = description;
097        }
098    
099        public String getRequired() {
100            return required;
101        }
102    
103        public void setRequired(String required) {
104            this.required = required;
105        }
106    
107        public String getReadOnly() {
108            return readOnly;
109        }
110    
111        public void setReadOnly(String readOnly) {
112            this.readOnly = readOnly;
113        }
114    
115        public String getCardinality() {
116            return cardinality;
117        }
118    
119        public void setCardinality(String cardinality) {
120            this.cardinality = cardinality;
121        }
122    
123        public String getXmlAttribute() {
124            return xmlAttribute;
125        }
126    
127        public void setXmlAttribute(String xmlAttribute) {
128            this.xmlAttribute = xmlAttribute;
129        }
130    
131        public String getStatus() {
132            return status;
133        }
134    
135        public void setStatus(String status) {
136            this.status = status;
137        }
138    
139        public String getImplNotes() {
140            return implNotes;
141        }
142    
143        public void setImplNotes(String implNotes) {
144            this.implNotes = implNotes;
145        }
146    
147        public boolean isOverriden() {
148            return overriden;
149        }
150    
151        public void setOverriden(boolean overriden) {
152            this.overriden = overriden;
153        }
154    
155        public boolean isDeprecated() {
156            return deprecated;
157        }
158    
159        public void setDeprecated(boolean deprecated) {
160            this.deprecated = deprecated;
161        }
162    
163        public Lookup getLookup() {
164            return lookup;
165        }
166    
167        public void setLookup(Lookup lookup) {
168            this.lookup = lookup;
169        }
170    
171        public boolean isPrimaryKey() {
172            return primaryKey;
173        }
174    
175        public void setPrimaryKey(boolean primaryKey) {
176            this.primaryKey = primaryKey;
177        }
178    
179        public String getColumnName() {
180            return columnName;
181        }
182    
183        public void setColumnName(String columnName) {
184            this.columnName = columnName;
185        }
186    
187        @Override
188        public String toString() {
189            return "MessageStructure [xmlObject=" + xmlObject + "]";
190        }
191    
192        public String toExpandedString() {
193            return "MessageStructure{" +
194                    "id='" + id + '\'' +
195                    ", xmlObject='" + xmlObject + '\'' +
196                    ", shortName='" + shortName + '\'' +
197                    ", name='" + name + '\'' +
198                    ", type='" + type + '\'' +
199                    ", url='" + url + '\'' +
200                    // ", description='" + description + '\'' +
201                    ", required='" + required + '\'' +
202                    ", readOnly='" + readOnly + '\'' +
203                    ", cardinality='" + cardinality + '\'' +
204                    ", status='" + status + '\'' +
205                    ", xmlAttribute='" + xmlAttribute + '\'' +
206                    ", implNotes='" + implNotes + '\'' +
207                    ", overriden=" + overriden +
208                    ", deprecated=" + deprecated +
209                    ", lookup=" + lookup +
210                    ", primaryKey=" + primaryKey +
211                    '}';
212        }
213    }