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.AbstractAckRequested;
011: import org.w3c.dom.Element;
012:
013: import javax.xml.bind.annotation.*;
014: import javax.xml.namespace.QName;
015: import java.util.ArrayList;
016: import java.util.HashMap;
017: import java.util.List;
018: import java.util.Map;
019:
020: /**
021: * <p>Java class for AckRequestedType complex type.
022: *
023: * <p>The following schema fragment specifies the expected content contained within this class.
024: *
025: * <pre>
026: * <complexType name="AckRequestedType">
027: * <complexContent>
028: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
029: * <sequence>
030: * <element ref="{http://docs.oasis-open.org/ws-rx/wsrm/200702}Identifier"/>
031: * <any/>
032: * </sequence>
033: * </restriction>
034: * </complexContent>
035: * </complexType>
036: * </pre>
037: *
038: *
039: */
040: @XmlAccessorType(XmlAccessType.FIELD)
041: @XmlType(name="AckRequestedType",propOrder={"identifier","any"})
042: @XmlRootElement(name="AckRequested",namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
043: public class AckRequestedElement extends AbstractAckRequested {
044:
045: @XmlElement(name="Identifier",required=true,namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702")
046: protected Identifier identifier;
047: @XmlAnyElement(lax=true)
048: protected List<Object> any;
049: @XmlAnyAttribute
050: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
051:
052: /**
053: * Gets the value of the identifier property.
054: *
055: * @return
056: * possible object is
057: * {@link Identifier }
058: *
059: */
060: public Identifier getIdentifier() {
061: return identifier;
062: }
063:
064: /**
065: * Sets the value of the identifier property.
066: *
067: * @param value
068: * allowed object is
069: * {@link Identifier }
070: *
071: */
072: public void setIdentifier(Identifier value) {
073: this .identifier = value;
074: }
075:
076: /**
077: * Gets the value of the any property.
078: *
079: * <p>
080: * This accessor method returns a reference to the live list,
081: * not a snapshot. Therefore any modification you make to the
082: * returned list will be present inside the JAXB object.
083: * This is why there is not a <CODE>set</CODE> method for the any property.
084: *
085: * <p>
086: * For example, to add a new item, do as follows:
087: * <pre>
088: * getAny().add(newItem);
089: * </pre>
090: *
091: *
092: * <p>
093: * Objects of the following type(s) are allowed in the list
094: * {@link Object }
095: * {@link Element }
096: *
097: *
098: */
099: public List<Object> getAny() {
100: if (any == null) {
101: any = new ArrayList<Object>();
102: }
103: return this .any;
104: }
105:
106: /**
107: * Gets a map that contains attributes that aren't bound to any typed property on this class.
108: *
109: * <p>
110: * the map is keyed by the name of the attribute and
111: * the value is the string value of the attribute.
112: *
113: * the map returned by this method is live, and you can add new attribute
114: * by updating the map directly. Because of this design, there's no setter.
115: *
116: *
117: * @return
118: * always non-null
119: */
120: public Map<QName, String> getOtherAttributes() {
121: return otherAttributes;
122: }
123:
124: public void setId(String id) {
125: com.sun.xml.ws.rm.v200702.Identifier idType = new com.sun.xml.ws.rm.v200702.Identifier();
126: idType.setValue(id);
127: setIdentifier(idType);
128: }
129:
130: public String getId() {
131: return getIdentifier().getValue();
132: }
133:
134: }
|