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.jba.cmp;
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.XmlRootElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: * <p>Java class for anonymous complex type.
028: *
029: * <p>The following schema fragment specifies the expected content contained within this class.
030: *
031: * <pre>
032: * <complexType>
033: * <complexContent>
034: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035: * <sequence>
036: * <element ref="{http://jboss.org}description" minOccurs="0"/>
037: * <element ref="{http://jboss.org}load-group-name"/>
038: * <element ref="{http://jboss.org}field-name" maxOccurs="unbounded"/>
039: * </sequence>
040: * </restriction>
041: * </complexContent>
042: * </complexType>
043: * </pre>
044: *
045: *
046: */
047: @XmlAccessorType(XmlAccessType.FIELD)
048: @XmlType(name="",propOrder={"description","loadGroupName","fieldName"})
049: @XmlRootElement(name="load-group")
050: public class LoadGroup {
051:
052: protected Description description;
053: @XmlElement(name="load-group-name",required=true)
054: protected LoadGroupName loadGroupName;
055: @XmlElement(name="field-name",required=true)
056: protected List<FieldName> fieldName;
057:
058: /**
059: * Gets the value of the description property.
060: *
061: * @return
062: * possible object is
063: * {@link Description }
064: *
065: */
066: public Description getDescription() {
067: return description;
068: }
069:
070: /**
071: * Sets the value of the description property.
072: *
073: * @param value
074: * allowed object is
075: * {@link Description }
076: *
077: */
078: public void setDescription(Description value) {
079: this .description = value;
080: }
081:
082: /**
083: * Gets the value of the loadGroupName property.
084: *
085: * @return
086: * possible object is
087: * {@link LoadGroupName }
088: *
089: */
090: public LoadGroupName getLoadGroupName() {
091: return loadGroupName;
092: }
093:
094: /**
095: * Sets the value of the loadGroupName property.
096: *
097: * @param value
098: * allowed object is
099: * {@link LoadGroupName }
100: *
101: */
102: public void setLoadGroupName(LoadGroupName value) {
103: this .loadGroupName = value;
104: }
105:
106: /**
107: * Gets the value of the fieldName property.
108: *
109: * <p>
110: * This accessor method returns a reference to the live list,
111: * not a snapshot. Therefore any modification you make to the
112: * returned list will be present inside the JAXB object.
113: * This is why there is not a <CODE>set</CODE> method for the fieldName property.
114: *
115: * <p>
116: * For example, to add a new item, do as follows:
117: * <pre>
118: * getFieldName().add(newItem);
119: * </pre>
120: *
121: *
122: * <p>
123: * Objects of the following type(s) are allowed in the list
124: * {@link FieldName }
125: *
126: *
127: */
128: public List<FieldName> getFieldName() {
129: if (fieldName == null) {
130: fieldName = new ArrayList<FieldName>();
131: }
132: return this.fieldName;
133: }
134:
135: }
|