Source Code Cross Referenced for SequenceAcknowledgementElement.java in  » 6.0-JDK-Modules-com.sun » wsit » com » sun » xml » ws » rm » v200702 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » wsit » com.sun.xml.ws.rm.v200702 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        //
002:        // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-422 
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: 2007.07.10 at 02:10:42 PM PDT 
006:        //
007:
008:        package com.sun.xml.ws.rm.v200702;
009:
010:        import com.sun.xml.ws.rm.protocol.AbstractSequenceAcknowledgement;
011:        import com.sun.xml.ws.rm.protocol.Messages;
012:
013:        import org.w3c.dom.Element;
014:
015:        import javax.xml.bind.annotation.*;
016:        import javax.xml.namespace.QName;
017:        import java.math.BigInteger;
018:        import java.util.ArrayList;
019:        import java.util.HashMap;
020:        import java.util.List;
021:        import java.util.Map;
022:
023:        /**
024:         * <p>Java class for anonymous complex type.
025:         * 
026:         * <p>The following schema fragment specifies the expected content contained within this class.
027:         * 
028:         * <pre>
029:         * &lt;complexType>
030:         *   &lt;complexContent>
031:         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
032:         *       &lt;sequence>
033:         *         &lt;element ref="{http://docs.oasis-open.org/ws-rx/wsrm/200702}Identifier"/>
034:         *         &lt;choice>
035:         *           &lt;sequence>
036:         *             &lt;choice>
037:         *               &lt;element name="AcknowledgementRange" maxOccurs="unbounded">
038:         *                 &lt;complexType>
039:         *                   &lt;complexContent>
040:         *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
041:         *                       &lt;sequence>
042:         *                       &lt;/sequence>
043:         *                       &lt;attribute name="Upper" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
044:         *                       &lt;attribute name="Lower" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
045:         *                     &lt;/restriction>
046:         *                   &lt;/complexContent>
047:         *                 &lt;/complexType>
048:         *               &lt;/element>
049:         *               &lt;element name="None">
050:         *                 &lt;complexType>
051:         *                   &lt;complexContent>
052:         *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
053:         *                       &lt;sequence>
054:         *                       &lt;/sequence>
055:         *                     &lt;/restriction>
056:         *                   &lt;/complexContent>
057:         *                 &lt;/complexType>
058:         *               &lt;/element>
059:         *             &lt;/choice>
060:         *             &lt;element name="Final" minOccurs="0">
061:         *               &lt;complexType>
062:         *                 &lt;complexContent>
063:         *                   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
064:         *                     &lt;sequence>
065:         *                     &lt;/sequence>
066:         *                   &lt;/restriction>
067:         *                 &lt;/complexContent>
068:         *               &lt;/complexType>
069:         *             &lt;/element>
070:         *           &lt;/sequence>
071:         *           &lt;element name="Nack" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" maxOccurs="unbounded"/>
072:         *         &lt;/choice>
073:         *         &lt;any/>
074:         *       &lt;/sequence>
075:         *     &lt;/restriction>
076:         *   &lt;/complexContent>
077:         * &lt;/complexType>
078:         * </pre>
079:         * 
080:         * 
081:         */
082:        @XmlAccessorType(XmlAccessType.FIELD)
083:        @XmlType(name="",propOrder={"identifier","acknowledgementRange","none","_final","bufferRemaining","nack","any"})
084:        @XmlRootElement(name="SequenceAcknowledgement",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
085:        public class SequenceAcknowledgementElement extends
086:                AbstractSequenceAcknowledgement {
087:
088:            @XmlElement(name="Identifier",required=true,namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
089:            protected Identifier identifier;
090:            @XmlElement(name="AcknowledgementRange",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
091:            protected List<SequenceAcknowledgementElement.AcknowledgementRange> acknowledgementRange;
092:            @XmlElement(name="None",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
093:            protected SequenceAcknowledgementElement.None none;
094:            @XmlElement(name="Final",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
095:            protected SequenceAcknowledgementElement.Final _final;
096:            @XmlElement(name="BufferRemaining",namespace="http://schemas.microsoft.com/ws/2006/05/rm")
097:            public Integer bufferRemaining;
098:
099:            @XmlElement(name="Nack",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
100:            @XmlSchemaType(name="unsignedLong")
101:            protected List<BigInteger> nack;
102:            @XmlAnyElement(lax=true)
103:            protected List<Object> any;
104:            @XmlAnyAttribute
105:            private Map<QName, String> otherAttributes = new HashMap<QName, String>();
106:
107:            /**
108:             * Gets the value of the identifier property.
109:             * 
110:             * @return
111:             *     possible object is
112:             *     {@link Identifier }
113:             *     
114:             */
115:            public Identifier getIdentifier() {
116:                return identifier;
117:            }
118:
119:            /**
120:             * Sets the value of the identifier property.
121:             * 
122:             * @param value
123:             *     allowed object is
124:             *     {@link Identifier }
125:             *     
126:             */
127:            public void setIdentifier(Identifier value) {
128:                this .identifier = value;
129:            }
130:
131:            /**
132:             * Gets the value of the acknowledgementRange property.
133:             * 
134:             * <p>
135:             * This accessor method returns a reference to the live list,
136:             * not a snapshot. Therefore any modification you make to the
137:             * returned list will be present inside the JAXB object.
138:             * This is why there is not a <CODE>set</CODE> method for the acknowledgementRange property.
139:             * 
140:             * <p>
141:             * For example, to add a new item, do as follows:
142:             * <pre>
143:             *    getAcknowledgementRange().add(newItem);
144:             * </pre>
145:             * 
146:             * 
147:             * <p>
148:             * Objects of the following type(s) are allowed in the list
149:             * {@link SequenceAcknowledgement.AcknowledgementRange }
150:             * 
151:             * 
152:             */
153:            public List<SequenceAcknowledgementElement.AcknowledgementRange> getAcknowledgementRange() {
154:                if (acknowledgementRange == null) {
155:                    acknowledgementRange = new ArrayList<SequenceAcknowledgementElement.AcknowledgementRange>();
156:                }
157:                return this .acknowledgementRange;
158:            }
159:
160:            /**
161:             * Gets the value of the none property.
162:             * 
163:             * @return
164:             *     possible object is
165:             *     {@link SequenceAcknowledgementElement.None }
166:             *     
167:             */
168:            public SequenceAcknowledgementElement.None getNone() {
169:                return none;
170:            }
171:
172:            /**
173:             * Sets the value of the none property.
174:             * 
175:             * @param value
176:             *     allowed object is
177:             *     {@link SequenceAcknowledgementElement.None }
178:             *     
179:             */
180:            public void setNone(SequenceAcknowledgementElement.None value) {
181:                this .none = value;
182:            }
183:
184:            /**
185:             * Gets the value of the final property.
186:             * 
187:             * @return
188:             *     possible object is
189:             *     {@link SequenceAcknowledgement.Final }
190:             *     
191:             */
192:            public SequenceAcknowledgementElement.Final getFinal() {
193:                return _final;
194:            }
195:
196:            /**
197:             * Sets the value of the final property.
198:             * 
199:             * @param value
200:             *     allowed object is
201:             *     {@link SequenceAcknowledgementElement.Final }
202:             *     
203:             */
204:            public void setFinal(SequenceAcknowledgementElement.Final value) {
205:                this ._final = value;
206:            }
207:
208:            /**
209:             * Gets the value of the nack property.
210:             * 
211:             * <p>
212:             * This accessor method returns a reference to the live list,
213:             * not a snapshot. Therefore any modification you make to the
214:             * returned list will be present inside the JAXB object.
215:             * This is why there is not a <CODE>set</CODE> method for the nack property.
216:             * 
217:             * <p>
218:             * For example, to add a new item, do as follows:
219:             * <pre>
220:             *    getNack().add(newItem);
221:             * </pre>
222:             * 
223:             * 
224:             * <p>
225:             * Objects of the following type(s) are allowed in the list
226:             * {@link BigInteger }
227:             * 
228:             * 
229:             */
230:            public List<BigInteger> getNack() {
231:                if (nack == null) {
232:                    nack = new ArrayList<BigInteger>();
233:                }
234:                return this .nack;
235:            }
236:
237:            /**
238:             * Gets the value of the any property.
239:             * 
240:             * <p>
241:             * This accessor method returns a reference to the live list,
242:             * not a snapshot. Therefore any modification you make to the
243:             * returned list will be present inside the JAXB object.
244:             * This is why there is not a <CODE>set</CODE> method for the any property.
245:             * 
246:             * <p>
247:             * For example, to add a new item, do as follows:
248:             * <pre>
249:             *    getAny().add(newItem);
250:             * </pre>
251:             * 
252:             * 
253:             * <p>
254:             * Objects of the following type(s) are allowed in the list
255:             * {@link Object }
256:             * {@link Element }
257:             * 
258:             * 
259:             */
260:            public List<Object> getAny() {
261:                if (any == null) {
262:                    any = new ArrayList<Object>();
263:                }
264:                return this .any;
265:            }
266:
267:            /**
268:             * Gets a map that contains attributes that aren't bound to any typed property on this class.
269:             * 
270:             * <p>
271:             * the map is keyed by the name of the attribute and 
272:             * the value is the string value of the attribute.
273:             * 
274:             * the map returned by this method is live, and you can add new attribute
275:             * by updating the map directly. Because of this design, there's no setter.
276:             * 
277:             * 
278:             * @return
279:             *     always non-null
280:             */
281:            public Map<QName, String> getOtherAttributes() {
282:                return otherAttributes;
283:            }
284:
285:            /**
286:             * <p>Java class for anonymous complex type.
287:             * 
288:             * <p>The following schema fragment specifies the expected content contained within this class.
289:             * 
290:             * <pre>
291:             * &lt;complexType>
292:             *   &lt;complexContent>
293:             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
294:             *       &lt;sequence>
295:             *       &lt;/sequence>
296:             *       &lt;attribute name="Upper" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
297:             *       &lt;attribute name="Lower" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
298:             *     &lt;/restriction>
299:             *   &lt;/complexContent>
300:             * &lt;/complexType>
301:             * </pre>
302:             * 
303:             * 
304:             */
305:            @XmlAccessorType(XmlAccessType.FIELD)
306:            @XmlType(name="")
307:            public static class AcknowledgementRange {
308:
309:                @XmlAttribute(name="Upper",required=true)
310:                @XmlSchemaType(name="unsignedLong")
311:                protected BigInteger upper;
312:                @XmlAttribute(name="Lower",required=true)
313:                @XmlSchemaType(name="unsignedLong")
314:                protected BigInteger lower;
315:                @XmlAnyAttribute
316:                private Map<QName, String> otherAttributes = new HashMap<QName, String>();
317:
318:                /**
319:                 * Gets the value of the upper property.
320:                 * 
321:                 * @return
322:                 *     possible object is
323:                 *     {@link BigInteger }
324:                 *     
325:                 */
326:                public BigInteger getUpper() {
327:                    return upper;
328:                }
329:
330:                /**
331:                 * Sets the value of the upper property.
332:                 * 
333:                 * @param value
334:                 *     allowed object is
335:                 *     {@link BigInteger }
336:                 *     
337:                 */
338:                public void setUpper(BigInteger value) {
339:                    this .upper = value;
340:                }
341:
342:                /**
343:                 * Gets the value of the lower property.
344:                 * 
345:                 * @return
346:                 *     possible object is
347:                 *     {@link BigInteger }
348:                 *     
349:                 */
350:                public BigInteger getLower() {
351:                    return lower;
352:                }
353:
354:                /**
355:                 * Sets the value of the lower property.
356:                 * 
357:                 * @param value
358:                 *     allowed object is
359:                 *     {@link BigInteger }
360:                 *     
361:                 */
362:                public void setLower(BigInteger value) {
363:                    this .lower = value;
364:                }
365:
366:                /**
367:                 * Gets a map that contains attributes that aren't bound to any typed property on this class.
368:                 * 
369:                 * <p>
370:                 * the map is keyed by the name of the attribute and 
371:                 * the value is the string value of the attribute.
372:                 * 
373:                 * the map returned by this method is live, and you can add new attribute
374:                 * by updating the map directly. Because of this design, there's no setter.
375:                 * 
376:                 * 
377:                 * @return
378:                 *     always non-null
379:                 */
380:                public Map<QName, String> getOtherAttributes() {
381:                    return otherAttributes;
382:                }
383:
384:            }
385:
386:            /**
387:             * <p>Java class for anonymous complex type.
388:             * 
389:             * <p>The following schema fragment specifies the expected content contained within this class.
390:             * 
391:             * <pre>
392:             * &lt;complexType>
393:             *   &lt;complexContent>
394:             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
395:             *       &lt;sequence>
396:             *       &lt;/sequence>
397:             *     &lt;/restriction>
398:             *   &lt;/complexContent>
399:             * &lt;/complexType>
400:             * </pre>
401:             * 
402:             * 
403:             */
404:            @XmlAccessorType(XmlAccessType.FIELD)
405:            @XmlType(name="")
406:            public static class Final {
407:
408:            }
409:
410:            /**
411:             * <p>Java class for anonymous complex type.
412:             * 
413:             * <p>The following schema fragment specifies the expected content contained within this class.
414:             * 
415:             * <pre>
416:             * &lt;complexType>
417:             *   &lt;complexContent>
418:             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
419:             *       &lt;sequence>
420:             *       &lt;/sequence>
421:             *     &lt;/restriction>
422:             *   &lt;/complexContent>
423:             * &lt;/complexType>
424:             * </pre>
425:             * 
426:             * 
427:             */
428:            @XmlAccessorType(XmlAccessType.FIELD)
429:            @XmlType(name="")
430:            public static class None {
431:
432:            }
433:
434:            public void setId(String id) {
435:                com.sun.xml.ws.rm.v200702.Identifier identifier = new Identifier();
436:                identifier.setValue(id);
437:                setIdentifier(identifier);
438:            }
439:
440:            public String getId() {
441:                return getIdentifier().getValue();
442:            }
443:
444:            public int getBufferRemaining() {
445:                if (bufferRemaining == null) {
446:                    return -1;
447:                }
448:                return bufferRemaining;
449:            }
450:
451:            public void setBufferRemaining(int value) {
452:                bufferRemaining = value;
453:            }
454:
455:            public void addAckRange(long lower, long upper) {
456:                if (nack != null) {
457:                    throw new IllegalArgumentException(
458:                            Messages.BOTH_ACKS_AND_NACKS_MESSAGE.format());
459:                }
460:                //check validity of indices
461:                if (lower > upper) {
462:                    throw new IllegalArgumentException(
463:                            Messages.UPPERBOUND_LESSTHAN_LOWERBOUND_MESSAGE
464:                                    .format());
465:                }
466:
467:                //TODO Further validity checking
468:                SequenceAcknowledgementElement.AcknowledgementRange range = new SequenceAcknowledgementElement.AcknowledgementRange();
469:                range.setLower(BigInteger.valueOf(lower));
470:                range.setUpper(BigInteger.valueOf(upper));
471:                getAcknowledgementRange().add(range);
472:
473:            }
474:
475:            public void addNack(long index) {
476:                if (acknowledgementRange != null) {
477:                    throw new IllegalArgumentException(
478:                            Messages.BOTH_ACKS_AND_NACKS_MESSAGE.format());
479:                }
480:
481:                getNack().add(BigInteger.valueOf(index));
482:            }
483:
484:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.