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 gbean-refType complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="gbean-refType">
032: * <complexContent>
033: * <extension base="{http://geronimo.apache.org/xml/ns/naming-1.2}abstract-naming-entryType">
034: * <sequence>
035: * <element name="ref-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
036: * <element name="ref-type" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
037: * <choice maxOccurs="unbounded" minOccurs="0">
038: * <element name="pattern" type="{http://geronimo.apache.org/xml/ns/naming-1.2}patternType"/>
039: * </choice>
040: * </sequence>
041: * </extension>
042: * </complexContent>
043: * </complexType>
044: * </pre>
045: *
046: *
047: */
048: @XmlAccessorType(XmlAccessType.FIELD)
049: @XmlType(name="gbean-refType",propOrder={"refName","refType","pattern"})
050: public class GbeanRefType extends AbstractNamingEntryType {
051:
052: @XmlElement(name="ref-name",required=true)
053: protected String refName;
054: @XmlElement(name="ref-type")
055: protected List<String> refType;
056: protected List<PatternType> pattern;
057:
058: /**
059: * Gets the value of the refName property.
060: *
061: * @return
062: * possible object is
063: * {@link String }
064: *
065: */
066: public String getRefName() {
067: return refName;
068: }
069:
070: /**
071: * Sets the value of the refName property.
072: *
073: * @param value
074: * allowed object is
075: * {@link String }
076: *
077: */
078: public void setRefName(String value) {
079: this .refName = value;
080: }
081:
082: /**
083: * Gets the value of the refType property.
084: *
085: * <p>
086: * This accessor method returns a reference to the live list,
087: * not a snapshot. Therefore any modification you make to the
088: * returned list will be present inside the JAXB object.
089: * This is why there is not a <CODE>set</CODE> method for the refType property.
090: *
091: * <p>
092: * For example, to add a new item, do as follows:
093: * <pre>
094: * getRefType().add(newItem);
095: * </pre>
096: *
097: *
098: * <p>
099: * Objects of the following type(s) are allowed in the list
100: * {@link String }
101: *
102: *
103: */
104: public List<String> getRefType() {
105: if (refType == null) {
106: refType = new ArrayList<String>();
107: }
108: return this .refType;
109: }
110:
111: /**
112: * Gets the value of the pattern property.
113: *
114: * <p>
115: * This accessor method returns a reference to the live list,
116: * not a snapshot. Therefore any modification you make to the
117: * returned list will be present inside the JAXB object.
118: * This is why there is not a <CODE>set</CODE> method for the pattern property.
119: *
120: * <p>
121: * For example, to add a new item, do as follows:
122: * <pre>
123: * getPattern().add(newItem);
124: * </pre>
125: *
126: *
127: * <p>
128: * Objects of the following type(s) are allowed in the list
129: * {@link PatternType }
130: *
131: *
132: */
133: public List<PatternType> getPattern() {
134: if (pattern == null) {
135: pattern = new ArrayList<PatternType>();
136: }
137: return this.pattern;
138: }
139:
140: }
|