Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TimestampType |
|
| 1.125;1.125 |
1 | ||
2 | package org.kuali.student.security.wssecurity.utility.dto; | |
3 | ||
4 | import java.util.ArrayList; | |
5 | import java.util.HashMap; | |
6 | import java.util.List; | |
7 | import java.util.Map; | |
8 | import javax.xml.bind.annotation.XmlAccessType; | |
9 | import javax.xml.bind.annotation.XmlAccessorType; | |
10 | import javax.xml.bind.annotation.XmlAnyAttribute; | |
11 | import javax.xml.bind.annotation.XmlAnyElement; | |
12 | import javax.xml.bind.annotation.XmlAttribute; | |
13 | import javax.xml.bind.annotation.XmlElement; | |
14 | import javax.xml.bind.annotation.XmlID; | |
15 | import javax.xml.bind.annotation.XmlSchemaType; | |
16 | import javax.xml.bind.annotation.XmlType; | |
17 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | |
18 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
19 | import javax.xml.namespace.QName; | |
20 | import org.w3c.dom.Element; | |
21 | ||
22 | ||
23 | /** | |
24 | * | |
25 | * This complex type ties together the timestamp related elements into a composite type. | |
26 | * | |
27 | * | |
28 | * <p>Java class for TimestampType complex type. | |
29 | * | |
30 | * <p>The following schema fragment specifies the expected content contained within this class. | |
31 | * | |
32 | * <pre> | |
33 | * <complexType name="TimestampType"> | |
34 | * <complexContent> | |
35 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
36 | * <sequence> | |
37 | * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Created" minOccurs="0"/> | |
38 | * <element ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Expires" minOccurs="0"/> | |
39 | * <choice maxOccurs="unbounded" minOccurs="0"> | |
40 | * <any processContents='lax' namespace='##other'/> | |
41 | * </choice> | |
42 | * </sequence> | |
43 | * <attGroup ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}commonAtts"/> | |
44 | * <anyAttribute processContents='lax' namespace='##other'/> | |
45 | * </restriction> | |
46 | * </complexContent> | |
47 | * </complexType> | |
48 | * </pre> | |
49 | * | |
50 | * | |
51 | */ | |
52 | @XmlAccessorType(XmlAccessType.FIELD) | |
53 | @XmlType(name = "TimestampType", propOrder = { | |
54 | "created", | |
55 | "expires", | |
56 | "any" | |
57 | }) | |
58 | 0 | public class TimestampType { |
59 | ||
60 | @XmlElement(name = "Created") | |
61 | protected AttributedDateTime created; | |
62 | @XmlElement(name = "Expires") | |
63 | protected AttributedDateTime expires; | |
64 | @XmlAnyElement(lax = true) | |
65 | protected List<Object> any; | |
66 | @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd") | |
67 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | |
68 | @XmlID | |
69 | @XmlSchemaType(name = "ID") | |
70 | protected String id; | |
71 | 0 | @XmlAnyAttribute |
72 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); | |
73 | ||
74 | /** | |
75 | * Gets the value of the created property. | |
76 | * | |
77 | * @return | |
78 | * possible object is | |
79 | * {@link AttributedDateTime } | |
80 | * | |
81 | */ | |
82 | public AttributedDateTime getCreated() { | |
83 | 0 | return created; |
84 | } | |
85 | ||
86 | /** | |
87 | * Sets the value of the created property. | |
88 | * | |
89 | * @param value | |
90 | * allowed object is | |
91 | * {@link AttributedDateTime } | |
92 | * | |
93 | */ | |
94 | public void setCreated(AttributedDateTime value) { | |
95 | 0 | this.created = value; |
96 | 0 | } |
97 | ||
98 | /** | |
99 | * Gets the value of the expires property. | |
100 | * | |
101 | * @return | |
102 | * possible object is | |
103 | * {@link AttributedDateTime } | |
104 | * | |
105 | */ | |
106 | public AttributedDateTime getExpires() { | |
107 | 0 | return expires; |
108 | } | |
109 | ||
110 | /** | |
111 | * Sets the value of the expires property. | |
112 | * | |
113 | * @param value | |
114 | * allowed object is | |
115 | * {@link AttributedDateTime } | |
116 | * | |
117 | */ | |
118 | public void setExpires(AttributedDateTime value) { | |
119 | 0 | this.expires = value; |
120 | 0 | } |
121 | ||
122 | /** | |
123 | * Gets the value of the any property. | |
124 | * | |
125 | * <p> | |
126 | * This accessor method returns a reference to the live list, | |
127 | * not a snapshot. Therefore any modification you make to the | |
128 | * returned list will be present inside the JAXB object. | |
129 | * This is why there is not a <CODE>set</CODE> method for the any property. | |
130 | * | |
131 | * <p> | |
132 | * For example, to add a new item, do as follows: | |
133 | * <pre> | |
134 | * getAny().add(newItem); | |
135 | * </pre> | |
136 | * | |
137 | * | |
138 | * <p> | |
139 | * Objects of the following type(s) are allowed in the list | |
140 | * {@link Object } | |
141 | * {@link Element } | |
142 | * | |
143 | * | |
144 | */ | |
145 | public List<Object> getAny() { | |
146 | 0 | if (any == null) { |
147 | 0 | any = new ArrayList<Object>(); |
148 | } | |
149 | 0 | return this.any; |
150 | } | |
151 | ||
152 | /** | |
153 | * Gets the value of the id property. | |
154 | * | |
155 | * @return | |
156 | * possible object is | |
157 | * {@link String } | |
158 | * | |
159 | */ | |
160 | public String getId() { | |
161 | 0 | return id; |
162 | } | |
163 | ||
164 | /** | |
165 | * Sets the value of the id property. | |
166 | * | |
167 | * @param value | |
168 | * allowed object is | |
169 | * {@link String } | |
170 | * | |
171 | */ | |
172 | public void setId(String value) { | |
173 | 0 | this.id = value; |
174 | 0 | } |
175 | ||
176 | /** | |
177 | * Gets a map that contains attributes that aren't bound to any typed property on this class. | |
178 | * | |
179 | * <p> | |
180 | * the map is keyed by the name of the attribute and | |
181 | * the value is the string value of the attribute. | |
182 | * | |
183 | * the map returned by this method is live, and you can add new attribute | |
184 | * by updating the map directly. Because of this design, there's no setter. | |
185 | * | |
186 | * | |
187 | * @return | |
188 | * always non-null | |
189 | */ | |
190 | public Map<QName, String> getOtherAttributes() { | |
191 | 0 | return otherAttributes; |
192 | } | |
193 | ||
194 | } |