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