KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > xml > ws > security > impl > bindings > UsernameTokenType


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.security.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.XmlAttribute;
20 import javax.xml.bind.annotation.XmlElement;
21 import javax.xml.bind.annotation.XmlID;
22 import javax.xml.bind.annotation.XmlType;
23 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
24 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
25 import javax.xml.namespace.QName JavaDoc;
26 import com.sun.xml.ws.security.impl.bindings.AttributedString;
27 import com.sun.xml.ws.security.impl.bindings.UsernameTokenType;
28 import org.w3c.dom.Element JavaDoc;
29
30
31 /**
32  * This type represents a username token per Section 4.1
33  *
34  * <p>Java class for UsernameTokenType complex type.
35  *
36  * <p>The following schema fragment specifies the expected content contained within this class.
37  *
38  * <pre>
39  * &lt;complexType name="UsernameTokenType">
40  * &lt;complexContent>
41  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42  * &lt;sequence>
43  * &lt;element name="Username" type="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}AttributedString"/>
44  * &lt;any/>
45  * &lt;/sequence>
46  * &lt;attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
47  * &lt;/restriction>
48  * &lt;/complexContent>
49  * &lt;/complexType>
50  * </pre>
51  *
52  *
53  */

54 @XmlAccessorType(XmlAccessType.FIELD)
55 @XmlType(name = "UsernameTokenType", propOrder = {
56     "username",
57     "any"
58 })
59 public class UsernameTokenType {
60
61     @XmlElement(name = "Username", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd")
62     protected AttributedString username;
63     @XmlAnyElement(lax = true)
64     protected List JavaDoc<Object JavaDoc> any;
65     @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
66     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
67     @XmlID
68     protected String JavaDoc id;
69     @XmlAnyAttribute
70     private Map JavaDoc<QName JavaDoc, String JavaDoc> otherAttributes = new HashMap JavaDoc<QName JavaDoc, String JavaDoc>();
71
72     /**
73      * Gets the value of the username property.
74      *
75      * @return
76      * possible object is
77      * {@link AttributedString }
78      *
79      */

80     public AttributedString getUsername() {
81         return username;
82     }
83
84     /**
85      * Sets the value of the username property.
86      *
87      * @param value
88      * allowed object is
89      * {@link AttributedString }
90      *
91      */

92     public void setUsername(AttributedString value) {
93         this.username = value;
94     }
95
96     /**
97      * Gets the value of the any property.
98      *
99      * <p>
100      * This accessor method returns a reference to the live list,
101      * not a snapshot. Therefore any modification you make to the
102      * returned list will be present inside the JAXB object.
103      * This is why there is not a <CODE>set</CODE> method for the any property.
104      *
105      * <p>
106      * For example, to add a new item, do as follows:
107      * <pre>
108      * getAny().add(newItem);
109      * </pre>
110      *
111      *
112      * <p>
113      * Objects of the following type(s) are allowed in the list
114      * {@link Element }
115      * {@link Object }
116      *
117      *
118      */

119     public List JavaDoc<Object JavaDoc> getAny() {
120         if (any == null) {
121             any = new ArrayList JavaDoc<Object JavaDoc>();
122         }
123         return this.any;
124     }
125
126     /**
127      * Gets the value of the id property.
128      *
129      * @return
130      * possible object is
131      * {@link String }
132      *
133      */

134     public String JavaDoc getId() {
135         return id;
136     }
137
138     /**
139      * Sets the value of the id property.
140      *
141      * @param value
142      * allowed object is
143      * {@link String }
144      *
145      */

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

164     public Map JavaDoc<QName JavaDoc, String JavaDoc> getOtherAttributes() {
165         return otherAttributes;
166     }
167
168 }
169
Popular Tags