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 org.w3c.dom.Element;
040:
041: import javax.xml.bind.annotation.*;
042: import javax.xml.namespace.QName;
043: import java.math.BigInteger;
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 SequenceAcknowledgement element declaration.
051: *
052: * <p>The following schema fragment specifies the expected content contained within this class.
053: *
054: * <pre>
055: * <element name="SequenceAcknowledgement">
056: * <complexType>
057: * <complexContent>
058: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
059: * <sequence>
060: * <element ref="{http://docs.oasis-open.org/ws-rx/wsrm/200602}Identifier"/>
061: * <choice>
062: * <sequence>
063: * <choice>
064: * <element name="AcknowledgementRange" maxOccurs="unbounded">
065: * <complexType>
066: * <complexContent>
067: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
068: * <sequence>
069: * </sequence>
070: * <attribute name="Lower" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
071: * <attribute name="Upper" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
072: * </restriction>
073: * </complexContent>
074: * </complexType>
075: * </element>
076: * <element name="None" minOccurs="0">
077: * <complexType>
078: * <complexContent>
079: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
080: * <sequence>
081: * </sequence>
082: * </restriction>
083: * </complexContent>
084: * </complexType>
085: * </element>
086: * </choice>
087: * <element name="Final" minOccurs="0">
088: * <complexType>
089: * <complexContent>
090: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
091: * <sequence>
092: * </sequence>
093: * </restriction>
094: * </complexContent>
095: * </complexType>
096: * </element>
097: * </sequence>
098: * <element name="Nack" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" maxOccurs="unbounded"/>
099: * </choice>
100: * <any/>
101: * </sequence>
102: * </restriction>
103: * </complexContent>
104: * </complexType>
105: * </element>
106: * </pre>
107: *
108: *
109: */
110: @XmlAccessorType(XmlAccessType.FIELD)
111: @XmlType(name="",propOrder={"identifier","acknowledgementRange","none","_final","nack","any"})
112: @XmlRootElement(name="SequenceAcknowledgement")
113: public class SequenceAcknowledgement {
114:
115: @XmlElement(name="Identifier",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602",required=true)
116: protected Identifier identifier;
117: @XmlElement(name="AcknowledgementRange",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602",required=true)
118: protected List<AcknowledgementRange> acknowledgementRange;
119: @XmlElement(name="None",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602")
120: protected None none;
121: @XmlElement(name="Final",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602")
122: protected Final _final;
123: @XmlElement(name="Nack",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200602",required=true)
124: protected List<BigInteger> nack;
125: @XmlAnyElement(lax=true)
126: protected List<Object> any;
127: @XmlAnyAttribute
128: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
129:
130: /**
131: * Gets the value of the identifier property.
132: *
133: * @return
134: * possible object is
135: * {@link Identifier }
136: *
137: */
138: public Identifier getIdentifier() {
139: return identifier;
140: }
141:
142: /**
143: * Sets the value of the identifier property.
144: *
145: * @param value
146: * allowed object is
147: * {@link Identifier }
148: *
149: */
150: public void setIdentifier(Identifier value) {
151: this .identifier = value;
152: }
153:
154: /**
155: * Gets the value of the acknowledgementRange property.
156: *
157: * <p>
158: * This accessor method returns a reference to the live list,
159: * not a snapshot. Therefore any modification you make to the
160: * returned list will be present inside the JAXB object.
161: * This is why there is not a <CODE>set</CODE> method for the acknowledgementRange property.
162: *
163: * <p>
164: * For example, to add a new item, do as follows:
165: * <pre>
166: * getAcknowledgementRange().add(newItem);
167: * </pre>
168: *
169: *
170: * <p>
171: * Objects of the following type(s) are allowed in the list
172: * {@link AcknowledgementRange }
173: *
174: *
175: */
176: public List<AcknowledgementRange> getAcknowledgementRange() {
177: if (acknowledgementRange == null) {
178: acknowledgementRange = new ArrayList<AcknowledgementRange>();
179: }
180: return this .acknowledgementRange;
181: }
182:
183: /**
184: * Gets the value of the none property.
185: *
186: * @return
187: * possible object is
188: * {@link None }
189: *
190: */
191: public None getNone() {
192: return none;
193: }
194:
195: /**
196: * Sets the value of the none property.
197: *
198: * @param value
199: * allowed object is
200: * {@link None }
201: *
202: */
203: public void setNone(None value) {
204: this .none = value;
205: }
206:
207: /**
208: * Gets the value of the final property.
209: *
210: * @return
211: * possible object is
212: * {@link Final }
213: *
214: */
215: public Final getFinal() {
216: return _final;
217: }
218:
219: /**
220: * Sets the value of the final property.
221: *
222: * @param value
223: * allowed object is
224: * {@link Final }
225: *
226: */
227: public void setFinal(Final value) {
228: this ._final = value;
229: }
230:
231: /**
232: * Gets the value of the nack property.
233: *
234: * <p>
235: * This accessor method returns a reference to the live list,
236: * not a snapshot. Therefore any modification you make to the
237: * returned list will be present inside the JAXB object.
238: * This is why there is not a <CODE>set</CODE> method for the nack property.
239: *
240: * <p>
241: * For example, to add a new item, do as follows:
242: * <pre>
243: * getNack().add(newItem);
244: * </pre>
245: *
246: *
247: * <p>
248: * Objects of the following type(s) are allowed in the list
249: * {@link BigInteger }
250: *
251: *
252: */
253: public List<BigInteger> getNack() {
254: if (nack == null) {
255: nack = new ArrayList<BigInteger>();
256: }
257: return this .nack;
258: }
259:
260: /**
261: * Gets the value of the any property.
262: *
263: * <p>
264: * This accessor method returns a reference to the live list,
265: * not a snapshot. Therefore any modification you make to the
266: * returned list will be present inside the JAXB object.
267: * This is why there is not a <CODE>set</CODE> method for the any property.
268: *
269: * <p>
270: * For example, to add a new item, do as follows:
271: * <pre>
272: * getAny().add(newItem);
273: * </pre>
274: *
275: *
276: * <p>
277: * Objects of the following type(s) are allowed in the list
278: * {@link Element }
279: * {@link Object }
280: *
281: *
282: */
283: public List<Object> getAny() {
284: if (any == null) {
285: any = new ArrayList<Object>();
286: }
287: return this .any;
288: }
289:
290: /**
291: * Gets a map that contains attributes that aren't bound to any typed property on this class.
292: *
293: * <p>
294: * the map is keyed by the name of the attribute and
295: * the value is the string value of the attribute.
296: *
297: * the map returned by this method is live, and you can add new attribute
298: * by updating the map directly. Because of this design, there's no setter.
299: *
300: *
301: * @return
302: * always non-null
303: */
304: public Map<QName, String> getOtherAttributes() {
305: return otherAttributes;
306: }
307:
308: /**
309: * <p>Java class for anonymous complex type.
310: *
311: * <p>The following schema fragment specifies the expected content contained within this class.
312: *
313: * <pre>
314: * <complexType>
315: * <complexContent>
316: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
317: * <sequence>
318: * </sequence>
319: * <attribute name="Lower" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
320: * <attribute name="Upper" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
321: * </restriction>
322: * </complexContent>
323: * </complexType>
324: * </pre>
325: *
326: *
327: */
328: @XmlAccessorType(XmlAccessType.FIELD)
329: @XmlType(name="")
330: public static class AcknowledgementRange {
331:
332: @XmlAttribute(name="Lower",required=true)
333: protected BigInteger lower;
334: @XmlAttribute(name="Upper",required=true)
335: protected BigInteger upper;
336: @XmlAnyAttribute
337: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
338:
339: /**
340: * Gets the value of the lower property.
341: *
342: * @return
343: * possible object is
344: * {@link BigInteger }
345: *
346: */
347: public BigInteger getLower() {
348: return lower;
349: }
350:
351: /**
352: * Sets the value of the lower property.
353: *
354: * @param value
355: * allowed object is
356: * {@link BigInteger }
357: *
358: */
359: public void setLower(BigInteger value) {
360: this .lower = value;
361: }
362:
363: /**
364: * Gets the value of the upper property.
365: *
366: * @return
367: * possible object is
368: * {@link BigInteger }
369: *
370: */
371: public BigInteger getUpper() {
372: return upper;
373: }
374:
375: /**
376: * Sets the value of the upper property.
377: *
378: * @param value
379: * allowed object is
380: * {@link BigInteger }
381: *
382: */
383: public void setUpper(BigInteger value) {
384: this .upper = value;
385: }
386:
387: /**
388: * Gets a map that contains attributes that aren't bound to any typed property on this class.
389: *
390: * <p>
391: * the map is keyed by the name of the attribute and
392: * the value is the string value of the attribute.
393: *
394: * the map returned by this method is live, and you can add new attribute
395: * by updating the map directly. Because of this design, there's no setter.
396: *
397: *
398: * @return
399: * always non-null
400: */
401: public Map<QName, String> getOtherAttributes() {
402: return otherAttributes;
403: }
404:
405: }
406:
407: /**
408: * <p>Java class for anonymous complex type.
409: *
410: * <p>The following schema fragment specifies the expected content contained within this class.
411: *
412: * <pre>
413: * <complexType>
414: * <complexContent>
415: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
416: * <sequence>
417: * </sequence>
418: * </restriction>
419: * </complexContent>
420: * </complexType>
421: * </pre>
422: *
423: *
424: */
425: @XmlAccessorType(XmlAccessType.FIELD)
426: @XmlType(name="")
427: public static class Final {
428:
429: }
430:
431: /**
432: * <p>Java class for anonymous complex type.
433: *
434: * <p>The following schema fragment specifies the expected content contained within this class.
435: *
436: * <pre>
437: * <complexType>
438: * <complexContent>
439: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
440: * <sequence>
441: * </sequence>
442: * </restriction>
443: * </complexContent>
444: * </complexType>
445: * </pre>
446: *
447: *
448: */
449: @XmlAccessorType(XmlAccessType.FIELD)
450: @XmlType(name="")
451: public static class None {
452:
453: }
454:
455: }
|