001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.oejb2;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlType;
024:
025: /**
026: * <p>Java class for groupType complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="groupType">
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
036: * <element name="cmp-field-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
037: * <element name="cmr-field" maxOccurs="unbounded" minOccurs="0">
038: * <complexType>
039: * <complexContent>
040: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
041: * <sequence>
042: * <element name="cmr-field-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
043: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
044: * </sequence>
045: * </restriction>
046: * </complexContent>
047: * </complexType>
048: * </element>
049: * </sequence>
050: * </restriction>
051: * </complexContent>
052: * </complexType>
053: * </pre>
054: *
055: *
056: */
057: @XmlAccessorType(XmlAccessType.FIELD)
058: @XmlType(name="groupType",propOrder={"groupName","cmpFieldName","cmrField"})
059: public class GroupType {
060:
061: @XmlElement(name="group-name",required=true)
062: protected String groupName;
063: @XmlElement(name="cmp-field-name")
064: protected List<String> cmpFieldName;
065: @XmlElement(name="cmr-field")
066: protected List<GroupType.CmrField> cmrField;
067:
068: /**
069: * Gets the value of the groupName property.
070: *
071: * @return
072: * possible object is
073: * {@link String }
074: *
075: */
076: public String getGroupName() {
077: return groupName;
078: }
079:
080: /**
081: * Sets the value of the groupName property.
082: *
083: * @param value
084: * allowed object is
085: * {@link String }
086: *
087: */
088: public void setGroupName(String value) {
089: this .groupName = value;
090: }
091:
092: /**
093: * Gets the value of the cmpFieldName property.
094: *
095: * <p>
096: * This accessor method returns a reference to the live list,
097: * not a snapshot. Therefore any modification you make to the
098: * returned list will be present inside the JAXB object.
099: * This is why there is not a <CODE>set</CODE> method for the cmpFieldName property.
100: *
101: * <p>
102: * For example, to add a new item, do as follows:
103: * <pre>
104: * getCmpFieldName().add(newItem);
105: * </pre>
106: *
107: *
108: * <p>
109: * Objects of the following type(s) are allowed in the list
110: * {@link String }
111: *
112: *
113: */
114: public List<String> getCmpFieldName() {
115: if (cmpFieldName == null) {
116: cmpFieldName = new ArrayList<String>();
117: }
118: return this .cmpFieldName;
119: }
120:
121: /**
122: * Gets the value of the cmrField property.
123: *
124: * <p>
125: * This accessor method returns a reference to the live list,
126: * not a snapshot. Therefore any modification you make to the
127: * returned list will be present inside the JAXB object.
128: * This is why there is not a <CODE>set</CODE> method for the cmrField property.
129: *
130: * <p>
131: * For example, to add a new item, do as follows:
132: * <pre>
133: * getCmrField().add(newItem);
134: * </pre>
135: *
136: *
137: * <p>
138: * Objects of the following type(s) are allowed in the list
139: * {@link GroupType.CmrField }
140: *
141: *
142: */
143: public List<GroupType.CmrField> getCmrField() {
144: if (cmrField == null) {
145: cmrField = new ArrayList<GroupType.CmrField>();
146: }
147: return this .cmrField;
148: }
149:
150: /**
151: * <p>Java class for anonymous complex type.
152: *
153: * <p>The following schema fragment specifies the expected content contained within this class.
154: *
155: * <pre>
156: * <complexType>
157: * <complexContent>
158: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
159: * <sequence>
160: * <element name="cmr-field-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
161: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
162: * </sequence>
163: * </restriction>
164: * </complexContent>
165: * </complexType>
166: * </pre>
167: *
168: *
169: */
170: @XmlAccessorType(XmlAccessType.FIELD)
171: @XmlType(name="",propOrder={"cmrFieldName","groupName"})
172: public static class CmrField {
173:
174: @XmlElement(name="cmr-field-name",required=true)
175: protected String cmrFieldName;
176: @XmlElement(name="group-name")
177: protected String groupName;
178:
179: /**
180: * Gets the value of the cmrFieldName property.
181: *
182: * @return
183: * possible object is
184: * {@link String }
185: *
186: */
187: public String getCmrFieldName() {
188: return cmrFieldName;
189: }
190:
191: /**
192: * Sets the value of the cmrFieldName property.
193: *
194: * @param value
195: * allowed object is
196: * {@link String }
197: *
198: */
199: public void setCmrFieldName(String value) {
200: this .cmrFieldName = value;
201: }
202:
203: /**
204: * Gets the value of the groupName property.
205: *
206: * @return
207: * possible object is
208: * {@link String }
209: *
210: */
211: public String getGroupName() {
212: return groupName;
213: }
214:
215: /**
216: * Sets the value of the groupName property.
217: *
218: * @param value
219: * allowed object is
220: * {@link String }
221: *
222: */
223: public void setGroupName(String value) {
224: this.groupName = value;
225: }
226:
227: }
228:
229: }
|