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.XmlElement;
019: import javax.xml.bind.annotation.XmlElements;
020: import javax.xml.bind.annotation.XmlRootElement;
021: import javax.xml.bind.annotation.XmlType;
022: import javax.xml.namespace.QName;
023: import com.sun.xml.ws.policy.impl.bindings.AppliesTo;
024: import com.sun.xml.ws.policy.impl.bindings.Policy;
025: import com.sun.xml.ws.policy.impl.bindings.PolicyAttachment;
026: import com.sun.xml.ws.policy.impl.bindings.PolicyReference;
027: import org.w3c.dom.Element;
028:
029: /**
030: * <p>Java class for PolicyAttachment element declaration.
031: *
032: * <p>The following schema fragment specifies the expected content contained within this class.
033: *
034: * <pre>
035: * <element name="PolicyAttachment">
036: * <complexType>
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}AppliesTo"/>
041: * <choice maxOccurs="unbounded">
042: * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy"/>
043: * <element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}PolicyReference"/>
044: * </choice>
045: * <any/>
046: * </sequence>
047: * </restriction>
048: * </complexContent>
049: * </complexType>
050: * </element>
051: * </pre>
052: *
053: *
054: */
055: @XmlAccessorType(XmlAccessType.FIELD)
056: @XmlType(name="",propOrder={"appliesTo","policyOrPolicyReference","any"})
057: @XmlRootElement(name="PolicyAttachment")
058: public class PolicyAttachment {
059:
060: @XmlElement(name="AppliesTo",namespace="http://schemas.xmlsoap.org/ws/2004/09/policy")
061: protected AppliesTo appliesTo;
062: @XmlElements({@XmlElement(name="Policy",namespace="http://schemas.xmlsoap.org/ws/2004/09/policy",type=Policy.class),@XmlElement(name="PolicyReference",namespace="http://schemas.xmlsoap.org/ws/2004/09/policy",type=PolicyReference.class)})
063: protected List<Object> policyOrPolicyReference;
064: @XmlAnyElement(lax=true)
065: protected List<Object> any;
066: @XmlAnyAttribute
067: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
068:
069: /**
070: * Gets the value of the appliesTo property.
071: *
072: * @return
073: * possible object is
074: * {@link AppliesTo }
075: *
076: */
077: public AppliesTo getAppliesTo() {
078: return appliesTo;
079: }
080:
081: /**
082: * Sets the value of the appliesTo property.
083: *
084: * @param value
085: * allowed object is
086: * {@link AppliesTo }
087: *
088: */
089: public void setAppliesTo(AppliesTo value) {
090: this .appliesTo = value;
091: }
092:
093: /**
094: * Gets the value of the policyOrPolicyReference property.
095: *
096: * <p>
097: * This accessor method returns a reference to the live list,
098: * not a snapshot. Therefore any modification you make to the
099: * returned list will be present inside the JAXB object.
100: * This is why there is not a <CODE>set</CODE> method for the policyOrPolicyReference property.
101: *
102: * <p>
103: * For example, to add a new item, do as follows:
104: * <pre>
105: * getPolicyOrPolicyReference().add(newItem);
106: * </pre>
107: *
108: *
109: * <p>
110: * Objects of the following type(s) are allowed in the list
111: * {@link Policy }
112: * {@link PolicyReference }
113: *
114: *
115: */
116: public List<Object> getPolicyOrPolicyReference() {
117: if (policyOrPolicyReference == null) {
118: policyOrPolicyReference = new ArrayList<Object>();
119: }
120: return this .policyOrPolicyReference;
121: }
122:
123: /**
124: * Gets the value of the any property.
125: *
126: * <p>
127: * This accessor method returns a reference to the live list,
128: * not a snapshot. Therefore any modification you make to the
129: * returned list will be present inside the JAXB object.
130: * This is why there is not a <CODE>set</CODE> method for the any property.
131: *
132: * <p>
133: * For example, to add a new item, do as follows:
134: * <pre>
135: * getAny().add(newItem);
136: * </pre>
137: *
138: *
139: * <p>
140: * Objects of the following type(s) are allowed in the list
141: * {@link Element }
142: * {@link Object }
143: *
144: *
145: */
146: public List<Object> getAny() {
147: if (any == null) {
148: any = new ArrayList<Object>();
149: }
150: return this .any;
151: }
152:
153: /**
154: * Gets a map that contains attributes that aren't bound to any typed property on this class.
155: *
156: * <p>
157: * the map is keyed by the name of the attribute and
158: * the value is the string value of the attribute.
159: *
160: * the map returned by this method is live, and you can add new attribute
161: * by updating the map directly. Because of this design, there's no setter.
162: *
163: *
164: * @return
165: * always non-null
166: */
167: public Map<QName, String> getOtherAttributes() {
168: return otherAttributes;
169: }
170:
171: }
|