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.rm.v200602;
038:
039: import com.sun.xml.ws.api.addressing.WSEndpointReference;
040: import org.w3c.dom.Element;
041:
042: import javax.xml.bind.annotation.*;
043: import javax.xml.namespace.QName;
044: import java.util.ArrayList;
045: import java.util.HashMap;
046: import java.util.List;
047: import java.util.Map;
048:
049: /**
050: * <p>Java class for CreateSequenceType complex type.
051: *
052: * <p>The following schema fragment specifies the expected content contained within this class.
053: *
054: * <pre>
055: * <complexType name="CreateSequenceType">
056: * <complexContent>
057: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
058: * <sequence>
059: * <element ref="{http://docs.oasis-open.org/ws-rx/wsrm/200602}AcksTo"/>
060: * <element ref="{http://docs.oasis-open.org/ws-rx/wsrm/200602}Expires" minOccurs="0"/>
061: * <element name="Offer" type="{http://docs.oasis-open.org/ws-rx/wsrm/200602}OfferType" minOccurs="0"/>
062: * <any/>
063: * </sequence>
064: * </restriction>
065: * </complexContent>
066: * </complexType>
067: * </pre>
068: *
069: *
070: */
071: @XmlAccessorType(XmlAccessType.FIELD)
072: @XmlType(name="CreateSequenceType",propOrder={"acksTo","expires","offer","any"})
073: @XmlRootElement(name="CreateSequence",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602")
074: public class CreateSequenceElement {
075:
076: @XmlElement(name="AcksTo",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602",required=true)
077: protected WSEndpointReference acksTo;
078: @XmlElement(name="Expires",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602")
079: protected Expires expires;
080: @XmlElement(name="Offer",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602")
081: protected OfferType offer;
082: @XmlAnyElement(lax=true)
083: protected List<Object> any;
084: @XmlAnyAttribute
085: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
086:
087: /**
088: * Gets the value of the acksTo property.
089: *
090: * @return
091: * possible object is
092: * {@link WSEndpointReference }
093: *
094: */
095: public WSEndpointReference getAcksTo() {
096: return acksTo;
097: }
098:
099: /**
100: * Sets the value of the acksTo property.
101: *
102: * @param value
103: * allowed object is
104: * {@link WSEndpointReference }
105: *
106: */
107: public void setAcksTo(WSEndpointReference value) {
108: this .acksTo = value;
109: }
110:
111: /**
112: * Gets the value of the expires property.
113: *
114: * @return
115: * possible object is
116: * {@link Expires }
117: *
118: */
119: public Expires getExpires() {
120: return expires;
121: }
122:
123: /**
124: * Sets the value of the expires property.
125: *
126: * @param value
127: * allowed object is
128: * {@link Expires }
129: *
130: */
131: public void setExpires(Expires value) {
132: this .expires = value;
133: }
134:
135: /**
136: * Gets the value of the offer property.
137: *
138: * @return
139: * possible object is
140: * {@link OfferType }
141: *
142: */
143: public OfferType getOffer() {
144: return offer;
145: }
146:
147: /**
148: * Sets the value of the offer property.
149: *
150: * @param value
151: * allowed object is
152: * {@link OfferType }
153: *
154: */
155: public void setOffer(OfferType value) {
156: this .offer = value;
157: }
158:
159: /**
160: * Gets the value of the any property.
161: *
162: * <p>
163: * This accessor method returns a reference to the live list,
164: * not a snapshot. Therefore any modification you make to the
165: * returned list will be present inside the JAXB object.
166: * This is why there is not a <CODE>set</CODE> method for the any property.
167: *
168: * <p>
169: * For example, to add a new item, do as follows:
170: * <pre>
171: * getAny().add(newItem);
172: * </pre>
173: *
174: *
175: * <p>
176: * Objects of the following type(s) are allowed in the list
177: * {@link Element }
178: * {@link Object }
179: *
180: *
181: */
182: public List<Object> getAny() {
183: if (any == null) {
184: any = new ArrayList<Object>();
185: }
186: return this .any;
187: }
188:
189: /**
190: * Gets a map that contains attributes that aren't bound to any typed property on this class.
191: *
192: * <p>
193: * the map is keyed by the name of the attribute and
194: * the value is the string value of the attribute.
195: *
196: * the map returned by this method is live, and you can add new attribute
197: * by updating the map directly. Because of this design, there's no setter.
198: *
199: *
200: * @return
201: * always non-null
202: */
203: public Map<QName, String> getOtherAttributes() {
204: return otherAttributes;
205: }
206:
207: }
|