001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b11-EA
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2005.05.06 at 02:17:10 BST
006 //
007
008
009 package org.codehaus.activesoap.policy.addressing;
010
011 import org.codehaus.activesoap.handler.stax.AnyContent;
012 import org.codehaus.activesoap.handler.stax.ElementContent;
013 import org.codehaus.activesoap.handler.stax.StaxHelper;
014 import org.codehaus.activesoap.handler.stax.AnyElementMarshaler;
015
016 import javax.xml.namespace.NamespaceContext;
017 import javax.xml.namespace.QName;
018 import javax.xml.stream.XMLStreamException;
019 import javax.xml.stream.XMLStreamWriter;
020 import java.util.ArrayList;
021 import java.util.Iterator;
022 import java.util.List;
023
024 /**
025 * @XmlAccessorType(value = AccessType.FIELD)
026 * @XmlType(name = "EndpointReferenceType", namespace = "http://schemas.xmlsoap.org/ws/2003/03/addressing")
027 */
028 public class EndpointReferenceType extends AnyAttributeSupport implements AnyContent {
029
030 public final static QName Address_QNAME = new QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "Address", "wsa");
031 public final static QName ReferenceProperties_QNAME = new QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "ReferenceProperties", "wsa");
032 public final static QName PortType_QNAME = new QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "PortType", "wsa");
033 public final static QName ServiceName_QNAME = new QName("http://schemas.xmlsoap.org/ws/2003/03/addressing", "ServiceName", "wsa");
034
035 /**
036 * @XmlElement(name = "Address", namespace = "http://schemas.xmlsoap.org/ws/2003/03/addressing", type = AttributedURI.class)
037 */
038 protected AttributedURI address;
039 /**
040 * @XmlElement(name = "ReferenceProperties", namespace = "http://schemas.xmlsoap.org/ws/2003/03/addressing", type = ReferencePropertiesType.class)
041 */
042 protected ReferencePropertiesType referenceProperties;
043 /**
044 * @XmlElement(name = "PortType", namespace = "http://schemas.xmlsoap.org/ws/2003/03/addressing", type = AttributedQName.class)
045 */
046 protected AttributedQName portType;
047 /**
048 * @XmlElement(name = "ServiceName", namespace = "http://schemas.xmlsoap.org/ws/2003/03/addressing", type = ServiceNameType.class)
049 */
050 protected ServiceNameType serviceName;
051 /**
052 * @XmlAnyElement(lax = true, value = W3CDomHandler.class)
053 */
054 protected List any;
055
056 /**
057 * Gets the value of the address property.
058 *
059 * @return possible object is
060 * {@link AttributedURI}
061 */
062 public AttributedURI getAddress() {
063 return address;
064 }
065
066 /**
067 * Sets the value of the address property.
068 *
069 * @param value allowed object is
070 * {@link AttributedURI}
071 */
072 public void setAddress(AttributedURI value) {
073 this.address = value;
074 }
075
076 /**
077 * Gets the value of the referenceProperties property.
078 *
079 * @return possible object is
080 * {@link ReferencePropertiesType}
081 */
082 public ReferencePropertiesType getReferenceProperties() {
083 return referenceProperties;
084 }
085
086 /**
087 * Sets the value of the referenceProperties property.
088 *
089 * @param value allowed object is
090 * {@link ReferencePropertiesType}
091 */
092 public void setReferenceProperties(ReferencePropertiesType value) {
093 this.referenceProperties = value;
094 }
095
096 /**
097 * Gets the value of the portType property.
098 *
099 * @return possible object is
100 * {@link AttributedQName}
101 */
102 public AttributedQName getPortType() {
103 return portType;
104 }
105
106 /**
107 * Sets the value of the portType property.
108 *
109 * @param value allowed object is
110 * {@link AttributedQName}
111 */
112 public void setPortType(AttributedQName value) {
113 this.portType = value;
114 }
115
116 /**
117 * Gets the value of the serviceName property.
118 *
119 * @return possible object is
120 * {@link ServiceNameType}
121 */
122 public ServiceNameType getServiceName() {
123 return serviceName;
124 }
125
126 /**
127 * Sets the value of the serviceName property.
128 *
129 * @param value allowed object is
130 * {@link ServiceNameType}
131 */
132 public void setServiceName(ServiceNameType value) {
133 this.serviceName = value;
134 }
135
136 //protected List<Object> _getAny() {
137 protected List _getAny() {
138 if (any == null) {
139 any = new ArrayList();
140 }
141 return any;
142 }
143
144 /**
145 * Gets the value of the any property.
146 * <p/>
147 * <p/>
148 * This accessor method returns a reference to the live list,
149 * not a snapshot. Therefore any modification you make to the
150 * returned list will be present inside the JAXB object.
151 * This is why there is not a <CODE>set</CODE> method for the any property.
152 * <p/>
153 * <p/>
154 * For example, to add a new item, do as follows:
155 * <pre>
156 * getAny().add(newItem);
157 * </pre>
158 * <p/>
159 * <p/>
160 * <p/>
161 * Objects of the following type(s) are allowed in the list
162 * {@link org.w3c.dom.Element}
163 * {@link Object}
164 */
165 //public List<Object> getAny() {
166 public List getAny() {
167 return this._getAny();
168 }
169
170 public void putValue(NamespaceContext namespaceContext, String value) {
171 // quietly discard
172 }
173
174 public void writeContent(AnyElementMarshaler marshaler, XMLStreamWriter out) throws XMLStreamException {
175 StaxHelper.writeElement(Address_QNAME, address, marshaler, out);
176 StaxHelper.writeElement(ReferenceProperties_QNAME, referenceProperties, marshaler, out);
177 StaxHelper.writeElement(PortType_QNAME, portType, marshaler, out);
178 StaxHelper.writeElement(ServiceName_QNAME, address, marshaler, out);
179 StaxHelper.writeAnyContent(any, marshaler, out);
180 }
181
182 }