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 javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlType;
022:
023: /**
024: * <p>Java class for portType complex type.
025: *
026: * <p>The following schema fragment specifies the expected content contained within this class.
027: *
028: * <pre>
029: * <complexType name="portType">
030: * <complexContent>
031: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
032: * <sequence>
033: * <element name="port-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
034: * <group ref="{http://geronimo.apache.org/xml/ns/naming-1.2}serverGroup" minOccurs="0"/>
035: * <element name="uri" type="{http://www.w3.org/2001/XMLSchema}string"/>
036: * <element name="credentials-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
037: * </sequence>
038: * </restriction>
039: * </complexContent>
040: * </complexType>
041: * </pre>
042: *
043: *
044: */
045: @XmlAccessorType(XmlAccessType.FIELD)
046: @XmlType(name="portType",namespace="http://geronimo.apache.org/xml/ns/naming-1.2",propOrder={"portName","protocol","host","port","uri","credentialsName"})
047: public class PortType {
048:
049: @XmlElement(name="port-name",required=true)
050: protected String portName;
051: protected String protocol;
052: protected String host;
053: protected Integer port;
054: @XmlElement(required=true)
055: protected String uri;
056: @XmlElement(name="credentials-name")
057: protected String credentialsName;
058:
059: /**
060: * Gets the value of the portName property.
061: *
062: * @return
063: * possible object is
064: * {@link String }
065: *
066: */
067: public String getPortName() {
068: return portName;
069: }
070:
071: /**
072: * Sets the value of the portName property.
073: *
074: * @param value
075: * allowed object is
076: * {@link String }
077: *
078: */
079: public void setPortName(String value) {
080: this .portName = value;
081: }
082:
083: /**
084: * Gets the value of the protocol property.
085: *
086: * @return
087: * possible object is
088: * {@link String }
089: *
090: */
091: public String getProtocol() {
092: return protocol;
093: }
094:
095: /**
096: * Sets the value of the protocol property.
097: *
098: * @param value
099: * allowed object is
100: * {@link String }
101: *
102: */
103: public void setProtocol(String value) {
104: this .protocol = value;
105: }
106:
107: /**
108: * Gets the value of the host property.
109: *
110: * @return
111: * possible object is
112: * {@link String }
113: *
114: */
115: public String getHost() {
116: return host;
117: }
118:
119: /**
120: * Sets the value of the host property.
121: *
122: * @param value
123: * allowed object is
124: * {@link String }
125: *
126: */
127: public void setHost(String value) {
128: this .host = value;
129: }
130:
131: /**
132: * Gets the value of the port property.
133: *
134: * @return
135: * possible object is
136: * {@link Integer }
137: *
138: */
139: public Integer getPort() {
140: return port;
141: }
142:
143: /**
144: * Sets the value of the port property.
145: *
146: * @param value
147: * allowed object is
148: * {@link Integer }
149: *
150: */
151: public void setPort(Integer value) {
152: this .port = value;
153: }
154:
155: /**
156: * Gets the value of the uri property.
157: *
158: * @return
159: * possible object is
160: * {@link String }
161: *
162: */
163: public String getUri() {
164: return uri;
165: }
166:
167: /**
168: * Sets the value of the uri property.
169: *
170: * @param value
171: * allowed object is
172: * {@link String }
173: *
174: */
175: public void setUri(String value) {
176: this .uri = value;
177: }
178:
179: /**
180: * Gets the value of the credentialsName property.
181: *
182: * @return
183: * possible object is
184: * {@link String }
185: *
186: */
187: public String getCredentialsName() {
188: return credentialsName;
189: }
190:
191: /**
192: * Sets the value of the credentialsName property.
193: *
194: * @param value
195: * allowed object is
196: * {@link String }
197: *
198: */
199: public void setCredentialsName(String value) {
200: this.credentialsName = value;
201: }
202:
203: }
|