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