001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.xml.ws.tx.webservice.member.coord;
038:
039: import com.sun.xml.ws.developer.MemberSubmissionEndpointReference;
040:
041: import javax.xml.bind.annotation.XmlAccessType;
042: import javax.xml.bind.annotation.XmlAccessorType;
043: import javax.xml.bind.annotation.XmlAnyAttribute;
044: import javax.xml.bind.annotation.XmlElement;
045: import javax.xml.bind.annotation.XmlType;
046: import javax.xml.bind.annotation.XmlValue;
047: import javax.xml.namespace.QName;
048: import java.util.HashMap;
049: import java.util.Map;
050:
051: /**
052: * <p>Java class for CoordinationContextType complex type.
053: * <p/>
054: * <p>The following schema fragment specifies the expected content contained within this class.
055: * <p/>
056: * <pre>
057: * <complexType name="CoordinationContextType">
058: * <complexContent>
059: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
060: * <sequence>
061: * <element name="Identifier">
062: * <complexType>
063: * <simpleContent>
064: * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
065: * </extension>
066: * </simpleContent>
067: * </complexType>
068: * </element>
069: * <element ref="{http://schemas.xmlsoap.org/ws/2004/10/wscoor}Expires" minOccurs="0"/>
070: * <element name="CoordinationType" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
071: * <element name="RegistrationService" type="{}javax.xml.ws.addressing.EndpointReference"/>
072: * </sequence>
073: * </restriction>
074: * </complexContent>
075: * </complexType>
076: * </pre>
077: * <p/>
078: */
079: @XmlAccessorType(XmlAccessType.FIELD)
080: @XmlType(name="CoordinationContextType",propOrder={"identifier","expires","coordinationType","registrationService"})
081: public class CoordinationContextType {
082:
083: @XmlElement(name="Identifier",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor",required=true)
084: protected Identifier identifier;
085: @XmlElement(name="Expires",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor")
086: protected Expires expires;
087: @XmlElement(name="CoordinationType",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor",required=true)
088: protected String coordinationType;
089: @XmlElement(name="RegistrationService",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor",required=true)
090: protected MemberSubmissionEndpointReference registrationService;
091: @XmlAnyAttribute
092: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
093:
094: /**
095: * Gets the value of the identifier property.
096: *
097: * @return possible object is
098: * {@link Identifier }
099: */
100: public Identifier getIdentifier() {
101: return identifier;
102: }
103:
104: /**
105: * Sets the value of the identifier property.
106: *
107: * @param value allowed object is
108: * {@link Identifier }
109: */
110: public void setIdentifier(Identifier value) {
111: this .identifier = value;
112: }
113:
114: /**
115: * Gets the value of the expires property.
116: *
117: * @return possible object is
118: * {@link Expires }
119: */
120: public Expires getExpires() {
121: return expires;
122: }
123:
124: /**
125: * Sets the value of the expires property.
126: *
127: * @param value allowed object is
128: * {@link Expires }
129: */
130: public void setExpires(Expires value) {
131: this .expires = value;
132: }
133:
134: /**
135: * Gets the value of the coordinationType property.
136: *
137: * @return possible object is
138: * {@link String }
139: */
140: public String getCoordinationType() {
141: return coordinationType;
142: }
143:
144: /**
145: * Sets the value of the coordinationType property.
146: *
147: * @param value allowed object is
148: * {@link String }
149: */
150: public void setCoordinationType(String value) {
151: this .coordinationType = value;
152: }
153:
154: /**
155: * Gets the value of the registrationService property.
156: *
157: * @return possible object is
158: * {@link com.sun.xml.ws.developer.MemberSubmissionEndpointReference }
159: */
160: public MemberSubmissionEndpointReference getRegistrationService() {
161: return registrationService;
162: }
163:
164: /**
165: * Sets the value of the registrationService property.
166: *
167: * @param value allowed object is
168: * {@link com.sun.xml.ws.developer.MemberSubmissionEndpointReference }
169: */
170: public void setRegistrationService(
171: MemberSubmissionEndpointReference value) {
172: this .registrationService = value;
173: }
174:
175: /**
176: * Gets a map that contains attributes that aren't bound to any typed property on this class.
177: * <p/>
178: * <p/>
179: * the map is keyed by the name of the attribute and
180: * the value is the string value of the attribute.
181: * <p/>
182: * the map returned by this method is live, and you can add new attribute
183: * by updating the map directly. Because of this design, there's no setter.
184: *
185: * @return always non-null
186: */
187: public Map<QName, String> getOtherAttributes() {
188: return otherAttributes;
189: }
190:
191: /**
192: * <p>Java class for anonymous complex type.
193: * <p/>
194: * <p>The following schema fragment specifies the expected content contained within this class.
195: * <p/>
196: * <pre>
197: * <complexType>
198: * <simpleContent>
199: * <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
200: * </extension>
201: * </simpleContent>
202: * </complexType>
203: * </pre>
204: */
205: @XmlAccessorType(XmlAccessType.FIELD)
206: @XmlType(name="",propOrder={"value"})
207: public static class Identifier {
208:
209: @XmlValue
210: protected String value;
211: @XmlAnyAttribute
212: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
213:
214: /**
215: * Gets the value of the value property.
216: *
217: * @return possible object is
218: * {@link String }
219: */
220: public String getValue() {
221: return value;
222: }
223:
224: /**
225: * Sets the value of the value property.
226: *
227: * @param value allowed object is
228: * {@link String }
229: */
230: public void setValue(String value) {
231: this .value = value;
232: }
233:
234: /**
235: * Gets a map that contains attributes that aren't bound to any typed property on this class.
236: * <p/>
237: * <p/>
238: * the map is keyed by the name of the attribute and
239: * the value is the string value of the attribute.
240: * <p/>
241: * the map returned by this method is live, and you can add new attribute
242: * by updating the map directly. Because of this design, there's no setter.
243: *
244: * @return always non-null
245: */
246: public Map<QName, String> getOtherAttributes() {
247: return otherAttributes;
248: }
249:
250: }
251:
252: }
|