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.XmlAttribute;
023: import javax.xml.bind.annotation.XmlElement;
024: import javax.xml.bind.annotation.XmlID;
025: import javax.xml.bind.annotation.XmlType;
026: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
027: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028:
029: /**
030: * <p>Java class for service-reference-description complex type.
031: *
032: * <p>The following schema fragment specifies the expected content contained within this class.
033: *
034: * <pre>
035: * <complexType name="service-reference-description">
036: * <complexContent>
037: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038: * <sequence>
039: * <element name="service-ref-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * <element name="wsdl-url" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <element name="call-property" type="{http://www.bea.com/ns/weblogic/90}property-namevalue" maxOccurs="unbounded" minOccurs="0"/>
042: * <element name="port-info" type="{http://www.bea.com/ns/weblogic/90}port-info" maxOccurs="unbounded" minOccurs="0"/>
043: * </sequence>
044: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
045: * </restriction>
046: * </complexContent>
047: * </complexType>
048: * </pre>
049: *
050: *
051: */
052: @XmlAccessorType(XmlAccessType.FIELD)
053: @XmlType(name="service-reference-description",propOrder={"serviceRefName","wsdlUrl","callProperty","portInfo"})
054: public class ServiceReferenceDescription {
055:
056: @XmlElement(name="service-ref-name",required=true)
057: protected String serviceRefName;
058: @XmlElement(name="wsdl-url",required=true)
059: protected String wsdlUrl;
060: @XmlElement(name="call-property")
061: protected List<PropertyNamevalue> callProperty;
062: @XmlElement(name="port-info")
063: protected List<PortInfo> portInfo;
064: @XmlAttribute
065: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
066: @XmlID
067: protected String id;
068:
069: /**
070: * Gets the value of the serviceRefName property.
071: *
072: * @return
073: * possible object is
074: * {@link String }
075: *
076: */
077: public String getServiceRefName() {
078: return serviceRefName;
079: }
080:
081: /**
082: * Sets the value of the serviceRefName property.
083: *
084: * @param value
085: * allowed object is
086: * {@link String }
087: *
088: */
089: public void setServiceRefName(String value) {
090: this .serviceRefName = value;
091: }
092:
093: /**
094: * Gets the value of the wsdlUrl property.
095: *
096: * @return
097: * possible object is
098: * {@link String }
099: *
100: */
101: public String getWsdlUrl() {
102: return wsdlUrl;
103: }
104:
105: /**
106: * Sets the value of the wsdlUrl property.
107: *
108: * @param value
109: * allowed object is
110: * {@link String }
111: *
112: */
113: public void setWsdlUrl(String value) {
114: this .wsdlUrl = value;
115: }
116:
117: /**
118: * Gets the value of the callProperty property.
119: *
120: * <p>
121: * This accessor method returns a reference to the live list,
122: * not a snapshot. Therefore any modification you make to the
123: * returned list will be present inside the JAXB object.
124: * This is why there is not a <CODE>set</CODE> method for the callProperty property.
125: *
126: * <p>
127: * For example, to add a new item, do as follows:
128: * <pre>
129: * getCallProperty().add(newItem);
130: * </pre>
131: *
132: *
133: * <p>
134: * Objects of the following type(s) are allowed in the list
135: * {@link PropertyNamevalue }
136: *
137: *
138: */
139: public List<PropertyNamevalue> getCallProperty() {
140: if (callProperty == null) {
141: callProperty = new ArrayList<PropertyNamevalue>();
142: }
143: return this .callProperty;
144: }
145:
146: /**
147: * Gets the value of the portInfo property.
148: *
149: * <p>
150: * This accessor method returns a reference to the live list,
151: * not a snapshot. Therefore any modification you make to the
152: * returned list will be present inside the JAXB object.
153: * This is why there is not a <CODE>set</CODE> method for the portInfo property.
154: *
155: * <p>
156: * For example, to add a new item, do as follows:
157: * <pre>
158: * getPortInfo().add(newItem);
159: * </pre>
160: *
161: *
162: * <p>
163: * Objects of the following type(s) are allowed in the list
164: * {@link PortInfo }
165: *
166: *
167: */
168: public List<PortInfo> getPortInfo() {
169: if (portInfo == null) {
170: portInfo = new ArrayList<PortInfo>();
171: }
172: return this .portInfo;
173: }
174:
175: /**
176: * Gets the value of the id property.
177: *
178: * @return
179: * possible object is
180: * {@link String }
181: *
182: */
183: public String getId() {
184: return id;
185: }
186:
187: /**
188: * Sets the value of the id property.
189: *
190: * @param value
191: * allowed object is
192: * {@link String }
193: *
194: */
195: public void setId(String value) {
196: this.id = value;
197: }
198:
199: }
|