001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b26-ea3
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: 2006.02.24 at 05:55:09 PM PST
006: //
007:
008: package com.sun.xml.ws.policy.impl.bindings;
009:
010: import java.util.ArrayList;
011: import java.util.HashMap;
012: import java.util.List;
013: import java.util.Map;
014: import javax.xml.bind.annotation.XmlAccessType;
015: import javax.xml.bind.annotation.XmlAccessorType;
016: import javax.xml.bind.annotation.XmlAnyAttribute;
017: import javax.xml.bind.annotation.XmlAnyElement;
018: import javax.xml.bind.annotation.XmlRootElement;
019: import javax.xml.bind.annotation.XmlType;
020: import javax.xml.namespace.QName;
021: import com.sun.xml.ws.policy.impl.bindings.AppliesTo;
022: import org.w3c.dom.Element;
023:
024: /**
025: * <p>Java class for AppliesTo element declaration.
026: *
027: * <p>The following schema fragment specifies the expected content contained within this class.
028: *
029: * <pre>
030: * <element name="AppliesTo">
031: * <complexType>
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <any/>
036: * </sequence>
037: * </restriction>
038: * </complexContent>
039: * </complexType>
040: * </element>
041: * </pre>
042: *
043: *
044: */
045: @XmlAccessorType(XmlAccessType.FIELD)
046: @XmlType(name="",propOrder={"any"})
047: @XmlRootElement(name="AppliesTo")
048: public class AppliesTo {
049:
050: @XmlAnyElement(lax=true)
051: protected List<Object> any;
052: @XmlAnyAttribute
053: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
054:
055: /**
056: * Gets the value of the any property.
057: *
058: * <p>
059: * This accessor method returns a reference to the live list,
060: * not a snapshot. Therefore any modification you make to the
061: * returned list will be present inside the JAXB object.
062: * This is why there is not a <CODE>set</CODE> method for the any property.
063: *
064: * <p>
065: * For example, to add a new item, do as follows:
066: * <pre>
067: * getAny().add(newItem);
068: * </pre>
069: *
070: *
071: * <p>
072: * Objects of the following type(s) are allowed in the list
073: * {@link Element }
074: * {@link Object }
075: *
076: *
077: */
078: public List<Object> getAny() {
079: if (any == null) {
080: any = new ArrayList<Object>();
081: }
082: return this .any;
083: }
084:
085: /**
086: * Gets a map that contains attributes that aren't bound to any typed property on this class.
087: *
088: * <p>
089: * the map is keyed by the name of the attribute and
090: * the value is the string value of the attribute.
091: *
092: * the map returned by this method is live, and you can add new attribute
093: * by updating the map directly. Because of this design, there's no setter.
094: *
095: *
096: * @return
097: * always non-null
098: */
099: public Map<QName, String> getOtherAttributes() {
100: return otherAttributes;
101: }
102:
103: }
|