1 8 9 package com.sun.xml.ws.security.wsu; 10 11 import java.util.ArrayList ; 12 import java.util.HashMap ; 13 import java.util.List ; 14 import java.util.Map ; 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 ; 26 import com.sun.xml.ws.security.wsu.AttributedDateTime; 27 import com.sun.xml.ws.security.wsu.TimestampType; 28 import org.w3c.dom.Element ; 29 30 31 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 <Object > 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 id; 77 @XmlAnyAttribute 78 private Map <QName , String > otherAttributes = new HashMap <QName , String >(); 79 80 88 public AttributedDateTime getCreated() { 89 return created; 90 } 91 92 100 public void setCreated(AttributedDateTime value) { 101 this.created = value; 102 } 103 104 112 public AttributedDateTime getExpires() { 113 return expires; 114 } 115 116 124 public void setExpires(AttributedDateTime value) { 125 this.expires = value; 126 } 127 128 151 public List <Object > getAny() { 152 if (any == null) { 153 any = new ArrayList <Object >(); 154 } 155 return this.any; 156 } 157 158 166 public String getId() { 167 return id; 168 } 169 170 178 public void setId(String value) { 179 this.id = value; 180 } 181 182 196 public Map <QName , String > getOtherAttributes() { 197 return otherAttributes; 198 } 199 200 } 201 | Popular Tags |