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