001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022:
023: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.08.10 at 02:34:36 PM IST
028: //
029:
030: package com.sun.xml.ws.security.wsu10;
031:
032: import java.util.ArrayList;
033: import java.util.HashMap;
034: import java.util.List;
035: import java.util.Map;
036: import javax.xml.bind.annotation.XmlAccessType;
037: import javax.xml.bind.annotation.XmlAccessorType;
038: import javax.xml.bind.annotation.XmlAnyAttribute;
039: import javax.xml.bind.annotation.XmlAnyElement;
040: import javax.xml.bind.annotation.XmlAttribute;
041: import javax.xml.bind.annotation.XmlElement;
042: import javax.xml.bind.annotation.XmlID;
043: import javax.xml.bind.annotation.XmlType;
044: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
045: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
046: import javax.xml.namespace.QName;
047:
048: /**
049: *
050: * This complex type ties together the timestamp related elements into a composite type.
051: *
052: *
053: * <p>Java class for TimestampType complex type.
054: *
055: * <p>The following schema fragment specifies the expected content contained within this class.
056: *
057: * <pre>
058: * <complexType name="TimestampType">
059: * <complexContent>
060: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
061: * <sequence>
062: * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Created" minOccurs="0"/>
063: * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Expires" minOccurs="0"/>
064: * <choice maxOccurs="unbounded" minOccurs="0">
065: * <any/>
066: * </choice>
067: * </sequence>
068: * <attGroup ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}commonAtts"/>
069: * </restriction>
070: * </complexContent>
071: * </complexType>
072: * </pre>
073: *
074: *
075: */
076: @XmlAccessorType(XmlAccessType.FIELD)
077: @XmlType(name="TimestampType",propOrder={"created","expires","any"})
078: public class TimestampType {
079:
080: @XmlElement(name="Created")
081: protected AttributedDateTime created;
082: @XmlElement(name="Expires")
083: protected AttributedDateTime expires;
084: @XmlAnyElement(lax=true)
085: protected List<Object> any;
086: @XmlAttribute(name="Id",namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
087: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
088: @XmlID
089: protected String id;
090: @XmlAnyAttribute
091: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
092:
093: /**
094: * Gets the value of the created property.
095: *
096: * @return
097: * possible object is
098: * {@link AttributedDateTime }
099: *
100: */
101: public AttributedDateTime getCreated() {
102: return created;
103: }
104:
105: /**
106: * Sets the value of the created property.
107: *
108: * @param value
109: * allowed object is
110: * {@link AttributedDateTime }
111: *
112: */
113: public void setCreated(AttributedDateTime value) {
114: this .created = value;
115: }
116:
117: /**
118: * Gets the value of the expires property.
119: *
120: * @return
121: * possible object is
122: * {@link AttributedDateTime }
123: *
124: */
125: public AttributedDateTime getExpires() {
126: return expires;
127: }
128:
129: /**
130: * Sets the value of the expires property.
131: *
132: * @param value
133: * allowed object is
134: * {@link AttributedDateTime }
135: *
136: */
137: public void setExpires(AttributedDateTime value) {
138: this .expires = value;
139: }
140:
141: /**
142: * Gets the value of the any property.
143: *
144: * <p>
145: * This accessor method returns a reference to the live list,
146: * not a snapshot. Therefore any modification you make to the
147: * returned list will be present inside the JAXB object.
148: * This is why there is not a <CODE>set</CODE> method for the any property.
149: *
150: * <p>
151: * For example, to add a new item, do as follows:
152: * <pre>
153: * getAny().add(newItem);
154: * </pre>
155: *
156: *
157: * <p>
158: * Objects of the following type(s) are allowed in the list
159: * {@link Element }
160: * {@link Object }
161: *
162: *
163: */
164: public List<Object> getAny() {
165: if (any == null) {
166: any = new ArrayList<Object>();
167: }
168: return this .any;
169: }
170:
171: /**
172: * Gets the value of the id property.
173: *
174: * @return
175: * possible object is
176: * {@link String }
177: *
178: */
179: public String getId() {
180: return id;
181: }
182:
183: /**
184: * Sets the value of the id property.
185: *
186: * @param value
187: * allowed object is
188: * {@link String }
189: *
190: */
191: public void setId(String value) {
192: this .id = value;
193: }
194:
195: /**
196: * Gets a map that contains attributes that aren't bound to any typed property on this class.
197: *
198: * <p>
199: * the map is keyed by the name of the attribute and
200: * the value is the string value of the attribute.
201: *
202: * the map returned by this method is live, and you can add new attribute
203: * by updating the map directly. Because of this design, there's no setter.
204: *
205: *
206: * @return
207: * always non-null
208: */
209: public Map<QName, String> getOtherAttributes() {
210: return otherAttributes;
211: }
212:
213: }
|