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.AbstractSequence;
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.util.ArrayList;
018: import java.util.HashMap;
019: import java.util.List;
020: import java.util.Map;
021:
022: /**
023: * <p>Java class for SequenceType complex type.
024: *
025: * <p>The following schema fragment specifies the expected content contained within this class.
026: *
027: * <pre>
028: * <complexType name="SequenceType">
029: * <complexContent>
030: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
031: * <sequence>
032: * <element ref="{http://docs.oasis-open.org/ws-rx/wsrm/200702}Identifier"/>
033: * <element name="MessageNumber" type="{http://docs.oasis-open.org/ws-rx/wsrm/200702}MessageNumberType"/>
034: * <any/>
035: * </sequence>
036: * </restriction>
037: * </complexContent>
038: * </complexType>
039: * </pre>
040: *
041: *
042: */
043: @XmlAccessorType(XmlAccessType.FIELD)
044: @XmlType(name="SequenceType",propOrder={"identifier","messageNumber","any"})
045: @XmlRootElement(name="Sequence",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
046: public class SequenceElement extends AbstractSequence {
047:
048: @XmlElement(name="Identifier",required=true,namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
049: protected Identifier identifier;
050: @XmlElement(name="MessageNumber",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
051: protected Integer messageNumber;
052: @XmlAnyElement(lax=true)
053: protected List<Object> any;
054: @XmlAnyAttribute
055: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
056:
057: /**
058: * Gets the value of the identifier property.
059: *
060: * @return
061: * possible object is
062: * {@link Identifier }
063: *
064: */
065: public Identifier getIdentifier() {
066: return identifier;
067: }
068:
069: /**
070: * Sets the value of the identifier property.
071: *
072: * @param value
073: * allowed object is
074: * {@link Identifier }
075: *
076: */
077: public void setIdentifier(Identifier value) {
078: this .identifier = value;
079: }
080:
081: /**
082: * Gets the value of the messageNumber property.
083: *
084: */
085: public Integer getMessageNumber() {
086: return messageNumber;
087: }
088:
089: /**
090: * Sets the value of the messageNumber property.
091: *
092: */
093: public void setMessageNumber(Integer value) {
094: this .messageNumber = value;
095: }
096:
097: /**
098: * Gets the value of the any property.
099: *
100: * <p>
101: * This accessor method returns a reference to the live list,
102: * not a snapshot. Therefore any modification you make to the
103: * returned list will be present inside the JAXB object.
104: * This is why there is not a <CODE>set</CODE> method for the any property.
105: *
106: * <p>
107: * For example, to add a new item, do as follows:
108: * <pre>
109: * getAny().add(newItem);
110: * </pre>
111: *
112: *
113: * <p>
114: * Objects of the following type(s) are allowed in the list
115: * {@link Object }
116: * {@link Element }
117: *
118: *
119: */
120: public List<Object> getAny() {
121: if (any == null) {
122: any = new ArrayList<Object>();
123: }
124: return this .any;
125: }
126:
127: /**
128: * Gets a map that contains attributes that aren't bound to any typed property on this class.
129: *
130: * <p>
131: * the map is keyed by the name of the attribute and
132: * the value is the string value of the attribute.
133: *
134: * the map returned by this method is live, and you can add new attribute
135: * by updating the map directly. Because of this design, there's no setter.
136: *
137: *
138: * @return
139: * always non-null
140: */
141: public Map<QName, String> getOtherAttributes() {
142: return otherAttributes;
143: }
144:
145: /**
146: * Mutator for the Id property. Maps to the Identifier property in the underlying
147: * JAXB class.
148: *
149: * @param id The new value.
150: */
151: public void setId(String id) {
152: Identifier identifier = new Identifier();
153: identifier.setValue(id);
154: setIdentifier(identifier);
155: }
156:
157: /**
158: * Accessor for the Id property. Maps to the Identifier property in the underlying
159: * JAXB class
160: * @return The sequence id
161: */
162: public String getId() {
163: return getIdentifier().getValue();
164: }
165:
166: /**
167: * Accessor for the Number property which maps to the MessageNumber property in
168: * the underlying JAXB class.
169: *
170: * @return The Message number.
171: */
172: public int getNumber() {
173: return getMessageNumber();
174: }
175:
176: public String toString() {
177:
178: return Messages.SEQUENCE_TOSTRING_STRING.format(getId(),
179: getNumber());
180: }
181:
182: }
|