KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > xml > ws > policy > impl > bindings > PolicyAttachment


1 //
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b26-ea3
3
// See <a HREF="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4
// Any modifications to this file will be lost upon recompilation of the source schema.
5
// Generated on: 2006.02.24 at 05:55:09 PM PST
6
//
7

8
9 package com.sun.xml.ws.policy.impl.bindings;
10
11 import java.util.ArrayList JavaDoc;
12 import java.util.HashMap JavaDoc;
13 import java.util.List JavaDoc;
14 import java.util.Map JavaDoc;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlAnyAttribute;
18 import javax.xml.bind.annotation.XmlAnyElement;
19 import javax.xml.bind.annotation.XmlElement;
20 import javax.xml.bind.annotation.XmlElements;
21 import javax.xml.bind.annotation.XmlRootElement;
22 import javax.xml.bind.annotation.XmlType;
23 import javax.xml.namespace.QName JavaDoc;
24 import com.sun.xml.ws.policy.impl.bindings.AppliesTo;
25 import com.sun.xml.ws.policy.impl.bindings.Policy;
26 import com.sun.xml.ws.policy.impl.bindings.PolicyAttachment;
27 import com.sun.xml.ws.policy.impl.bindings.PolicyReference;
28 import org.w3c.dom.Element JavaDoc;
29
30
31 /**
32  * <p>Java class for PolicyAttachment element declaration.
33  *
34  * <p>The following schema fragment specifies the expected content contained within this class.
35  *
36  * <pre>
37  * &lt;element name="PolicyAttachment">
38  * &lt;complexType>
39  * &lt;complexContent>
40  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41  * &lt;sequence>
42  * &lt;element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}AppliesTo"/>
43  * &lt;choice maxOccurs="unbounded">
44  * &lt;element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy"/>
45  * &lt;element ref="{http://schemas.xmlsoap.org/ws/2004/09/policy}PolicyReference"/>
46  * &lt;/choice>
47  * &lt;any/>
48  * &lt;/sequence>
49  * &lt;/restriction>
50  * &lt;/complexContent>
51  * &lt;/complexType>
52  * &lt;/element>
53  * </pre>
54  *
55  *
56  */

57 @XmlAccessorType(XmlAccessType.FIELD)
58 @XmlType(name = "", propOrder = {
59     "appliesTo",
60     "policyOrPolicyReference",
61     "any"
62 })
63 @XmlRootElement(name = "PolicyAttachment")
64 public class PolicyAttachment {
65
66     @XmlElement(name = "AppliesTo", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy")
67     protected AppliesTo appliesTo;
68     @XmlElements({
69         @XmlElement(name = "Policy", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = Policy.class),
70         @XmlElement(name = "PolicyReference", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = PolicyReference.class)
71     })
72     protected List JavaDoc<Object JavaDoc> policyOrPolicyReference;
73     @XmlAnyElement(lax = true)
74     protected List JavaDoc<Object JavaDoc> any;
75     @XmlAnyAttribute
76     private Map JavaDoc<QName JavaDoc, String JavaDoc> otherAttributes = new HashMap JavaDoc<QName JavaDoc, String JavaDoc>();
77
78     /**
79      * Gets the value of the appliesTo property.
80      *
81      * @return
82      * possible object is
83      * {@link AppliesTo }
84      *
85      */

86     public AppliesTo getAppliesTo() {
87         return appliesTo;
88     }
89
90     /**
91      * Sets the value of the appliesTo property.
92      *
93      * @param value
94      * allowed object is
95      * {@link AppliesTo }
96      *
97      */

98     public void setAppliesTo(AppliesTo value) {
99         this.appliesTo = value;
100     }
101
102     /**
103      * Gets the value of the policyOrPolicyReference property.
104      *
105      * <p>
106      * This accessor method returns a reference to the live list,
107      * not a snapshot. Therefore any modification you make to the
108      * returned list will be present inside the JAXB object.
109      * This is why there is not a <CODE>set</CODE> method for the policyOrPolicyReference property.
110      *
111      * <p>
112      * For example, to add a new item, do as follows:
113      * <pre>
114      * getPolicyOrPolicyReference().add(newItem);
115      * </pre>
116      *
117      *
118      * <p>
119      * Objects of the following type(s) are allowed in the list
120      * {@link Policy }
121      * {@link PolicyReference }
122      *
123      *
124      */

125     public List JavaDoc<Object JavaDoc> getPolicyOrPolicyReference() {
126         if (policyOrPolicyReference == null) {
127             policyOrPolicyReference = new ArrayList JavaDoc<Object JavaDoc>();
128         }
129         return this.policyOrPolicyReference;
130     }
131
132     /**
133      * Gets the value of the any property.
134      *
135      * <p>
136      * This accessor method returns a reference to the live list,
137      * not a snapshot. Therefore any modification you make to the
138      * returned list will be present inside the JAXB object.
139      * This is why there is not a <CODE>set</CODE> method for the any property.
140      *
141      * <p>
142      * For example, to add a new item, do as follows:
143      * <pre>
144      * getAny().add(newItem);
145      * </pre>
146      *
147      *
148      * <p>
149      * Objects of the following type(s) are allowed in the list
150      * {@link Element }
151      * {@link Object }
152      *
153      *
154      */

155     public List JavaDoc<Object JavaDoc> getAny() {
156         if (any == null) {
157             any = new ArrayList JavaDoc<Object JavaDoc>();
158         }
159         return this.any;
160     }
161
162     /**
163      * Gets a map that contains attributes that aren't bound to any typed property on this class.
164      *
165      * <p>
166      * the map is keyed by the name of the attribute and
167      * the value is the string value of the attribute.
168      *
169      * the map returned by this method is live, and you can add new attribute
170      * by updating the map directly. Because of this design, there's no setter.
171      *
172      *
173      * @return
174      * always non-null
175      */

176     public Map JavaDoc<QName JavaDoc, String JavaDoc> getOtherAttributes() {
177         return otherAttributes;
178     }
179
180 }
181
Popular Tags