1 /** 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 // 20 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 21 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 22 // Any modifications to this file will be lost upon recompilation of the source schema. 23 // Generated on: 2014.03.27 at 03:31:18 PM GMT 24 // 25 26 27 package org.apache.wss4j.binding.wsu10; 28 29 import java.util.ArrayList; 30 import java.util.HashMap; 31 import java.util.List; 32 import java.util.Map; 33 import jakarta.xml.bind.annotation.XmlAccessType; 34 import jakarta.xml.bind.annotation.XmlAccessorType; 35 import jakarta.xml.bind.annotation.XmlAnyAttribute; 36 import jakarta.xml.bind.annotation.XmlAnyElement; 37 import jakarta.xml.bind.annotation.XmlAttribute; 38 import jakarta.xml.bind.annotation.XmlElement; 39 import jakarta.xml.bind.annotation.XmlID; 40 import jakarta.xml.bind.annotation.XmlSchemaType; 41 import jakarta.xml.bind.annotation.XmlType; 42 import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; 43 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 44 import javax.xml.namespace.QName; 45 import org.w3c.dom.Element; 46 47 48 /** 49 * 50 * This complex type ties together the timestamp related elements into a composite type. 51 * 52 * 53 * <p>Java class for TimestampType complex type. 54 * 55 * <p>The following schema fragment specifies the expected content contained within this class. 56 * 57 * <pre> 58 * <complexType name="TimestampType"> 59 * <complexContent> 60 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 61 * <sequence> 62 * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Created" minOccurs="0"/> 63 * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Expires" minOccurs="0"/> 64 * <choice maxOccurs="unbounded" minOccurs="0"> 65 * <any processContents='lax' namespace='##other'/> 66 * </choice> 67 * </sequence> 68 * <attGroup ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}commonAtts"/> 69 * <anyAttribute processContents='lax' namespace='##other'/> 70 * </restriction> 71 * </complexContent> 72 * </complexType> 73 * </pre> 74 * 75 * 76 */ 77 @XmlAccessorType(XmlAccessType.FIELD) 78 @XmlType(name = "TimestampType", propOrder = { 79 "created", 80 "expires", 81 "any" 82 }) 83 public class TimestampType { 84 85 @XmlElement(name = "Created") 86 private AttributedDateTime created; 87 @XmlElement(name = "Expires") 88 private AttributedDateTime expires; 89 @XmlAnyElement(lax = true) 90 private List<Object> any; 91 @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd") 92 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 93 @XmlID 94 @XmlSchemaType(name = "ID") 95 private String id; 96 @XmlAnyAttribute 97 private Map<QName, String> otherAttributes = new HashMap<>(); 98 99 /** 100 * Gets the value of the created property. 101 * 102 * @return 103 * possible object is 104 * {@link AttributedDateTime } 105 * 106 */ 107 public AttributedDateTime getCreated() { 108 return created; 109 } 110 111 /** 112 * Sets the value of the created property. 113 * 114 * @param value 115 * allowed object is 116 * {@link AttributedDateTime } 117 * 118 */ 119 public void setCreated(AttributedDateTime value) { 120 this.created = value; 121 } 122 123 /** 124 * Gets the value of the expires property. 125 * 126 * @return 127 * possible object is 128 * {@link AttributedDateTime } 129 * 130 */ 131 public AttributedDateTime getExpires() { 132 return expires; 133 } 134 135 /** 136 * Sets the value of the expires property. 137 * 138 * @param value 139 * allowed object is 140 * {@link AttributedDateTime } 141 * 142 */ 143 public void setExpires(AttributedDateTime value) { 144 this.expires = value; 145 } 146 147 /** 148 * Gets the value of the any property. 149 * 150 * <p> 151 * This accessor method returns a reference to the live list, 152 * not a snapshot. Therefore any modification you make to the 153 * returned list will be present inside the JAXB object. 154 * This is why there is not a <CODE>set</CODE> method for the any property. 155 * 156 * <p> 157 * For example, to add a new item, do as follows: 158 * <pre> 159 * getAny().add(newItem); 160 * </pre> 161 * 162 * 163 * <p> 164 * Objects of the following type(s) are allowed in the list 165 * {@link Element } 166 * {@link Object } 167 * 168 * 169 */ 170 public List<Object> getAny() { 171 if (any == null) { 172 any = new ArrayList<>(); 173 } 174 return this.any; 175 } 176 177 /** 178 * Gets the value of the id property. 179 * 180 * @return 181 * possible object is 182 * {@link String } 183 * 184 */ 185 public String getId() { 186 return id; 187 } 188 189 /** 190 * Sets the value of the id property. 191 * 192 * @param value 193 * allowed object is 194 * {@link String } 195 * 196 */ 197 public void setId(String value) { 198 this.id = value; 199 } 200 201 /** 202 * Gets a map that contains attributes that aren't bound to any typed property on this class. 203 * 204 * <p> 205 * the map is keyed by the name of the attribute and 206 * the value is the string value of the attribute. 207 * 208 * the map returned by this method is live, and you can add new attribute 209 * by updating the map directly. Because of this design, there's no setter. 210 * 211 * 212 * @return 213 * always non-null 214 */ 215 public Map<QName, String> getOtherAttributes() { 216 return otherAttributes; 217 } 218 219 }