KickJava   Java API By Example, From Geeks To Geeks.

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


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.XmlRootElement;
20 import javax.xml.bind.annotation.XmlType;
21 import javax.xml.namespace.QName JavaDoc;
22 import com.sun.xml.ws.policy.impl.bindings.AppliesTo;
23 import org.w3c.dom.Element JavaDoc;
24
25
26 /**
27  * <p>Java class for AppliesTo element declaration.
28  *
29  * <p>The following schema fragment specifies the expected content contained within this class.
30  *
31  * <pre>
32  * &lt;element name="AppliesTo">
33  * &lt;complexType>
34  * &lt;complexContent>
35  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
36  * &lt;sequence>
37  * &lt;any/>
38  * &lt;/sequence>
39  * &lt;/restriction>
40  * &lt;/complexContent>
41  * &lt;/complexType>
42  * &lt;/element>
43  * </pre>
44  *
45  *
46  */

47 @XmlAccessorType(XmlAccessType.FIELD)
48 @XmlType(name = "", propOrder = {
49     "any"
50 })
51 @XmlRootElement(name = "AppliesTo")
52 public class AppliesTo {
53
54     @XmlAnyElement(lax = true)
55     protected List JavaDoc<Object JavaDoc> any;
56     @XmlAnyAttribute
57     private Map JavaDoc<QName JavaDoc, String JavaDoc> otherAttributes = new HashMap JavaDoc<QName JavaDoc, String JavaDoc>();
58
59     /**
60      * Gets the value of the any property.
61      *
62      * <p>
63      * This accessor method returns a reference to the live list,
64      * not a snapshot. Therefore any modification you make to the
65      * returned list will be present inside the JAXB object.
66      * This is why there is not a <CODE>set</CODE> method for the any property.
67      *
68      * <p>
69      * For example, to add a new item, do as follows:
70      * <pre>
71      * getAny().add(newItem);
72      * </pre>
73      *
74      *
75      * <p>
76      * Objects of the following type(s) are allowed in the list
77      * {@link Element }
78      * {@link Object }
79      *
80      *
81      */

82     public List JavaDoc<Object JavaDoc> getAny() {
83         if (any == null) {
84             any = new ArrayList JavaDoc<Object JavaDoc>();
85         }
86         return this.any;
87     }
88
89     /**
90      * Gets a map that contains attributes that aren't bound to any typed property on this class.
91      *
92      * <p>
93      * the map is keyed by the name of the attribute and
94      * the value is the string value of the attribute.
95      *
96      * the map returned by this method is live, and you can add new attribute
97      * by updating the map directly. Because of this design, there's no setter.
98      *
99      *
100      * @return
101      * always non-null
102      */

103     public Map JavaDoc<QName JavaDoc, String JavaDoc> getOtherAttributes() {
104         return otherAttributes;
105     }
106
107 }
108
Popular Tags