KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > xml > ws > security > wsu > TimestampType


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.wsu;
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.wsu.AttributedDateTime;
27 import com.sun.xml.ws.security.wsu.TimestampType;
28 import org.w3c.dom.Element JavaDoc;
29
30
31 /**
32  *
33  * This complex type ties together the timestamp related elements into a composite type.
34  *
35  *
36  * <p>Java class for TimestampType complex type.
37  *
38  * <p>The following schema fragment specifies the expected content contained within this class.
39  *
40  * <pre>
41  * &lt;complexType name="TimestampType">
42  * &lt;complexContent>
43  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44  * &lt;sequence>
45  * &lt;element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Created" minOccurs="0"/>
46  * &lt;element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Expires" minOccurs="0"/>
47  * &lt;choice maxOccurs="unbounded" minOccurs="0">
48  * &lt;any/>
49  * &lt;/choice>
50  * &lt;/sequence>
51  * &lt;attGroup ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}commonAtts"/>
52  * &lt;/restriction>
53  * &lt;/complexContent>
54  * &lt;/complexType>
55  * </pre>
56  *
57  *
58  */

59 @XmlAccessorType(XmlAccessType.FIELD)
60 @XmlType(name = "TimestampType", propOrder = {
61     "created",
62     "expires",
63     "any"
64 })
65 public class TimestampType {
66
67     @XmlElement(name = "Created", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
68     protected AttributedDateTime created;
69     @XmlElement(name = "Expires", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
70     protected AttributedDateTime expires;
71     @XmlAnyElement(lax = true)
72     protected List JavaDoc<Object JavaDoc> any;
73     @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
74     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
75     @XmlID
76     protected String JavaDoc id;
77     @XmlAnyAttribute
78     private Map JavaDoc<QName JavaDoc, String JavaDoc> otherAttributes = new HashMap JavaDoc<QName JavaDoc, String JavaDoc>();
79
80     /**
81      * Gets the value of the created property.
82      *
83      * @return
84      * possible object is
85      * {@link AttributedDateTime }
86      *
87      */

88     public AttributedDateTime getCreated() {
89         return created;
90     }
91
92     /**
93      * Sets the value of the created property.
94      *
95      * @param value
96      * allowed object is
97      * {@link AttributedDateTime }
98      *
99      */

100     public void setCreated(AttributedDateTime value) {
101         this.created = value;
102     }
103
104     /**
105      * Gets the value of the expires property.
106      *
107      * @return
108      * possible object is
109      * {@link AttributedDateTime }
110      *
111      */

112     public AttributedDateTime getExpires() {
113         return expires;
114     }
115
116     /**
117      * Sets the value of the expires property.
118      *
119      * @param value
120      * allowed object is
121      * {@link AttributedDateTime }
122      *
123      */

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

151     public List JavaDoc<Object JavaDoc> getAny() {
152         if (any == null) {
153             any = new ArrayList JavaDoc<Object JavaDoc>();
154         }
155         return this.any;
156     }
157
158     /**
159      * Gets the value of the id property.
160      *
161      * @return
162      * possible object is
163      * {@link String }
164      *
165      */

166     public String JavaDoc getId() {
167         return id;
168     }
169
170     /**
171      * Sets the value of the id property.
172      *
173      * @param value
174      * allowed object is
175      * {@link String }
176      *
177      */

178     public void setId(String JavaDoc value) {
179         this.id = value;
180     }
181
182     /**
183      * Gets a map that contains attributes that aren't bound to any typed property on this class.
184      *
185      * <p>
186      * the map is keyed by the name of the attribute and
187      * the value is the string value of the attribute.
188      *
189      * the map returned by this method is live, and you can add new attribute
190      * by updating the map directly. Because of this design, there's no setter.
191      *
192      *
193      * @return
194      * always non-null
195      */

196     public Map JavaDoc<QName JavaDoc, String JavaDoc> getOtherAttributes() {
197         return otherAttributes;
198     }
199
200 }
201
Popular Tags