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.wls;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.JAXBElement;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElement;
025: import javax.xml.bind.annotation.XmlElementRef;
026: import javax.xml.bind.annotation.XmlElementRefs;
027: import javax.xml.bind.annotation.XmlID;
028: import javax.xml.bind.annotation.XmlType;
029: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
030: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
031:
032: /**
033: * <p>Java class for field-group complex type.
034: *
035: * <p>The following schema fragment specifies the expected content contained within this class.
036: *
037: * <pre>
038: * <complexType name="field-group">
039: * <complexContent>
040: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
041: * <sequence>
042: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
043: * <choice maxOccurs="unbounded">
044: * <element name="cmp-field" type="{http://www.w3.org/2001/XMLSchema}string"/>
045: * <element name="cmr-field" type="{http://www.w3.org/2001/XMLSchema}string"/>
046: * </choice>
047: * </sequence>
048: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
049: * </restriction>
050: * </complexContent>
051: * </complexType>
052: * </pre>
053: *
054: *
055: */
056: @XmlAccessorType(XmlAccessType.FIELD)
057: @XmlType(name="field-group",propOrder={"groupName","cmpFieldOrCmrField"})
058: public class FieldGroup {
059:
060: @XmlElement(name="group-name",required=true)
061: protected String groupName;
062: @XmlElementRefs({@XmlElementRef(name="cmr-field",namespace="http://www.bea.com/ns/weblogic/90",type=JAXBElement.class),@XmlElementRef(name="cmp-field",namespace="http://www.bea.com/ns/weblogic/90",type=JAXBElement.class)})
063: protected List<JAXBElement<String>> cmpFieldOrCmrField;
064: @XmlAttribute
065: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
066: @XmlID
067: protected String id;
068:
069: /**
070: * Gets the value of the groupName property.
071: *
072: * @return
073: * possible object is
074: * {@link String }
075: *
076: */
077: public String getGroupName() {
078: return groupName;
079: }
080:
081: /**
082: * Sets the value of the groupName property.
083: *
084: * @param value
085: * allowed object is
086: * {@link String }
087: *
088: */
089: public void setGroupName(String value) {
090: this .groupName = value;
091: }
092:
093: /**
094: * Gets the value of the cmpFieldOrCmrField property.
095: *
096: * <p>
097: * This accessor method returns a reference to the live list,
098: * not a snapshot. Therefore any modification you make to the
099: * returned list will be present inside the JAXB object.
100: * This is why there is not a <CODE>set</CODE> method for the cmpFieldOrCmrField property.
101: *
102: * <p>
103: * For example, to add a new item, do as follows:
104: * <pre>
105: * getCmpFieldOrCmrField().add(newItem);
106: * </pre>
107: *
108: *
109: * <p>
110: * Objects of the following type(s) are allowed in the list
111: * {@link JAXBElement }{@code <}{@link String }{@code >}
112: * {@link JAXBElement }{@code <}{@link String }{@code >}
113: *
114: *
115: */
116: public List<JAXBElement<String>> getCmpFieldOrCmrField() {
117: if (cmpFieldOrCmrField == null) {
118: cmpFieldOrCmrField = new ArrayList<JAXBElement<String>>();
119: }
120: return this .cmpFieldOrCmrField;
121: }
122:
123: /**
124: * Gets the value of the id property.
125: *
126: * @return
127: * possible object is
128: * {@link String }
129: *
130: */
131: public String getId() {
132: return id;
133: }
134:
135: /**
136: * Sets the value of the id property.
137: *
138: * @param value
139: * allowed object is
140: * {@link String }
141: *
142: */
143: public void setId(String value) {
144: this.id = value;
145: }
146:
147: }
|