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 org.w3c.dom.Element;
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.XmlAnyElement;
045: import javax.xml.bind.annotation.XmlElement;
046: import javax.xml.bind.annotation.XmlType;
047: import javax.xml.namespace.QName;
048: import java.util.ArrayList;
049: import java.util.HashMap;
050: import java.util.List;
051: import java.util.Map;
052:
053: /**
054: * <p>Java class for CreateCoordinationContextType complex type.
055: * <p/>
056: * <p>The following schema fragment specifies the expected content contained within this class.
057: * <p/>
058: * <pre>
059: * <complexType name="CreateCoordinationContextType">
060: * <complexContent>
061: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
062: * <sequence>
063: * <element ref="{http://schemas.xmlsoap.org/ws/2004/10/wscoor}Expires" minOccurs="0"/>
064: * <element name="CurrentContext" minOccurs="0">
065: * <complexType>
066: * <complexContent>
067: * <extension base="{http://schemas.xmlsoap.org/ws/2004/10/wscoor}CoordinationContextType">
068: * <sequence>
069: * <any/>
070: * </sequence>
071: * </extension>
072: * </complexContent>
073: * </complexType>
074: * </element>
075: * <element name="CoordinationType" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
076: * <any/>
077: * </sequence>
078: * </restriction>
079: * </complexContent>
080: * </complexType>
081: * </pre>
082: */
083: @XmlAccessorType(XmlAccessType.FIELD)
084: @XmlType(name="CreateCoordinationContextType",propOrder={"expires","currentContext","coordinationType","any"})
085: public class CreateCoordinationContextType {
086:
087: @XmlElement(name="Expires",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor")
088: protected Expires expires;
089: @XmlElement(name="CurrentContext",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor")
090: protected CurrentContext currentContext;
091: @XmlElement(name="CoordinationType",namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor",required=true)
092: protected String coordinationType;
093: @XmlAnyElement(lax=true)
094: protected List<Object> any;
095: @XmlAnyAttribute
096: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
097:
098: /**
099: * Gets the value of the expires property.
100: *
101: * @return possible object is
102: * {@link Expires }
103: */
104: public Expires getExpires() {
105: return expires;
106: }
107:
108: /**
109: * Sets the value of the expires property.
110: *
111: * @param value allowed object is
112: * {@link Expires }
113: */
114: public void setExpires(Expires value) {
115: this .expires = value;
116: }
117:
118: /**
119: * Gets the value of the currentContext property.
120: *
121: * @return possible object is
122: * {@link CurrentContext }
123: */
124: public CurrentContext getCurrentContext() {
125: return currentContext;
126: }
127:
128: /**
129: * Sets the value of the currentContext property.
130: *
131: * @param value allowed object is
132: * {@link CurrentContext }
133: */
134: public void setCurrentContext(CurrentContext value) {
135: this .currentContext = value;
136: }
137:
138: /**
139: * Gets the value of the coordinationType property.
140: *
141: * @return possible object is
142: * {@link String }
143: */
144: public String getCoordinationType() {
145: return coordinationType;
146: }
147:
148: /**
149: * Sets the value of the coordinationType property.
150: *
151: * @param value allowed object is
152: * {@link String }
153: */
154: public void setCoordinationType(String value) {
155: this .coordinationType = value;
156: }
157:
158: /**
159: * Gets the value of the any property.
160: * <p/>
161: * This accessor method returns a reference to the live list,
162: * not a snapshot. Therefore any modification you make to the
163: * returned list will be present inside the JAXB object.
164: * This is why there is not a <CODE>set</CODE> method for the any property.
165: * <p/>
166: * For example, to add a new item, do as follows:
167: * <pre>
168: * getAny().add(newItem);
169: * </pre>
170: * <p/>
171: * Objects of the following type(s) are allowed in the list
172: * {@link Object }
173: * {@link Element }
174: */
175: public List<Object> getAny() {
176: if (any == null) {
177: any = new ArrayList<Object>();
178: }
179: return this .any;
180: }
181:
182: /**
183: * Gets a map that contains attributes that aren't bound to any typed property on this class.
184: * <p/>
185: * the map is keyed by the name of the attribute and
186: * the value is the string value of the attribute.
187: * <p/>
188: * the map returned by this method is live, and you can add new attribute
189: * by updating the map directly. Because of this design, there's no setter.
190: *
191: * @return always non-null
192: */
193: public Map<QName, String> getOtherAttributes() {
194: return otherAttributes;
195: }
196:
197: /**
198: * <p>Java class for anonymous complex type.
199: * <p/>
200: * <p>The following schema fragment specifies the expected content contained within this class.
201: * <p/>
202: * <pre>
203: * <complexType>
204: * <complexContent>
205: * <extension base="{http://schemas.xmlsoap.org/ws/2004/10/wscoor}CoordinationContextType">
206: * <sequence>
207: * <any/>
208: * </sequence>
209: * </extension>
210: * </complexContent>
211: * </complexType>
212: * </pre>
213: */
214: @XmlAccessorType(XmlAccessType.FIELD)
215: @XmlType(name="",propOrder={"any"})
216: public static class CurrentContext extends CoordinationContextType {
217:
218: @XmlAnyElement(lax=true)
219: protected List<Object> any;
220:
221: /**
222: * Gets the value of the any property.
223: * <p/>
224: * This accessor method returns a reference to the live list,
225: * not a snapshot. Therefore any modification you make to the
226: * returned list will be present inside the JAXB object.
227: * This is why there is not a <CODE>set</CODE> method for the any property.
228: * <p/>
229: * For example, to add a new item, do as follows:
230: * <pre>
231: * getAny().add(newItem);
232: * </pre>
233: * <p/>
234: * Objects of the following type(s) are allowed in the list
235: * {@link Object }
236: * {@link Element }
237: */
238: public List<Object> getAny() {
239: if (any == null) {
240: any = new ArrayList<Object>();
241: }
242: return this.any;
243: }
244:
245: }
246:
247: }
|