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