KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2001 > _04 > xmlenc_ > EncryptionPropertyType


1
2 package org.w3._2001._04.xmlenc_;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.HashMap JavaDoc;
6 import java.util.List JavaDoc;
7 import java.util.Map JavaDoc;
8 import javax.xml.bind.annotation.XmlAccessType;
9 import javax.xml.bind.annotation.XmlAccessorType;
10 import javax.xml.bind.annotation.XmlAnyAttribute;
11 import javax.xml.bind.annotation.XmlAnyElement;
12 import javax.xml.bind.annotation.XmlAttribute;
13 import javax.xml.bind.annotation.XmlID;
14 import javax.xml.bind.annotation.XmlMixed;
15 import javax.xml.bind.annotation.XmlSchemaType;
16 import javax.xml.bind.annotation.XmlType;
17 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
18 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
19 import javax.xml.namespace.QName JavaDoc;
20 import org.w3c.dom.Element JavaDoc;
21
22
23 /**
24  * <p>Java class for EncryptionPropertyType complex type.
25  *
26  * <p>The following schema fragment specifies the expected content contained within this class.
27  *
28  * <pre>
29  * &lt;complexType name="EncryptionPropertyType">
30  * &lt;complexContent>
31  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32  * &lt;choice maxOccurs="unbounded">
33  * &lt;any/>
34  * &lt;/choice>
35  * &lt;attribute name="Target" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
36  * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
37  * &lt;/restriction>
38  * &lt;/complexContent>
39  * &lt;/complexType>
40  * </pre>
41  *
42  *
43  */

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

88     public List JavaDoc<Object JavaDoc> getContent() {
89         if (content == null) {
90             content = new ArrayList JavaDoc<Object JavaDoc>();
91         }
92         return this.content;
93     }
94
95     /**
96      * Gets the value of the target property.
97      *
98      * @return
99      * possible object is
100      * {@link String }
101      *
102      */

103     public String JavaDoc getTarget() {
104         return target;
105     }
106
107     /**
108      * Sets the value of the target property.
109      *
110      * @param value
111      * allowed object is
112      * {@link String }
113      *
114      */

115     public void setTarget(String JavaDoc value) {
116         this.target = value;
117     }
118
119     /**
120      * Gets the value of the id property.
121      *
122      * @return
123      * possible object is
124      * {@link String }
125      *
126      */

127     public String JavaDoc getId() {
128         return id;
129     }
130
131     /**
132      * Sets the value of the id property.
133      *
134      * @param value
135      * allowed object is
136      * {@link String }
137      *
138      */

139     public void setId(String JavaDoc value) {
140         this.id = value;
141     }
142
143     /**
144      * Gets a map that contains attributes that aren't bound to any typed property on this class.
145      *
146      * <p>
147      * the map is keyed by the name of the attribute and
148      * the value is the string value of the attribute.
149      *
150      * the map returned by this method is live, and you can add new attribute
151      * by updating the map directly. Because of this design, there's no setter.
152      *
153      *
154      * @return
155      * always non-null
156      */

157     public Map JavaDoc<QName JavaDoc, String JavaDoc> getOtherAttributes() {
158         return otherAttributes;
159     }
160
161 }
162
Popular Tags