Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ClaimsType |
|
| 1.25;1.25 |
1 | ||
2 | package org.kuali.student.security.trust.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.XmlSchemaType; | |
14 | import javax.xml.bind.annotation.XmlType; | |
15 | import javax.xml.namespace.QName; | |
16 | import org.w3c.dom.Element; | |
17 | ||
18 | ||
19 | /** | |
20 | * <p>Java class for ClaimsType complex type. | |
21 | * | |
22 | * <p>The following schema fragment specifies the expected content contained within this class. | |
23 | * | |
24 | * <pre> | |
25 | * <complexType name="ClaimsType"> | |
26 | * <complexContent> | |
27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
28 | * <sequence> | |
29 | * <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/> | |
30 | * </sequence> | |
31 | * <attribute name="Dialect" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
32 | * <anyAttribute processContents='lax' namespace='##other'/> | |
33 | * </restriction> | |
34 | * </complexContent> | |
35 | * </complexType> | |
36 | * </pre> | |
37 | * | |
38 | * | |
39 | */ | |
40 | @XmlAccessorType(XmlAccessType.FIELD) | |
41 | @XmlType(name = "ClaimsType", propOrder = { | |
42 | "any" | |
43 | }) | |
44 | 0 | public class ClaimsType { |
45 | ||
46 | @XmlAnyElement(lax = true) | |
47 | protected List<Object> any; | |
48 | @XmlAttribute(name = "Dialect") | |
49 | @XmlSchemaType(name = "anyURI") | |
50 | protected String dialect; | |
51 | 0 | @XmlAnyAttribute |
52 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); | |
53 | ||
54 | /** | |
55 | * Gets the value of the any property. | |
56 | * | |
57 | * <p> | |
58 | * This accessor method returns a reference to the live list, | |
59 | * not a snapshot. Therefore any modification you make to the | |
60 | * returned list will be present inside the JAXB object. | |
61 | * This is why there is not a <CODE>set</CODE> method for the any property. | |
62 | * | |
63 | * <p> | |
64 | * For example, to add a new item, do as follows: | |
65 | * <pre> | |
66 | * getAny().add(newItem); | |
67 | * </pre> | |
68 | * | |
69 | * | |
70 | * <p> | |
71 | * Objects of the following type(s) are allowed in the list | |
72 | * {@link Object } | |
73 | * {@link Element } | |
74 | * | |
75 | * | |
76 | */ | |
77 | public List<Object> getAny() { | |
78 | 0 | if (any == null) { |
79 | 0 | any = new ArrayList<Object>(); |
80 | } | |
81 | 0 | return this.any; |
82 | } | |
83 | ||
84 | /** | |
85 | * Gets the value of the dialect property. | |
86 | * | |
87 | * @return | |
88 | * possible object is | |
89 | * {@link String } | |
90 | * | |
91 | */ | |
92 | public String getDialect() { | |
93 | 0 | return dialect; |
94 | } | |
95 | ||
96 | /** | |
97 | * Sets the value of the dialect property. | |
98 | * | |
99 | * @param value | |
100 | * allowed object is | |
101 | * {@link String } | |
102 | * | |
103 | */ | |
104 | public void setDialect(String value) { | |
105 | 0 | this.dialect = value; |
106 | 0 | } |
107 | ||
108 | /** | |
109 | * Gets a map that contains attributes that aren't bound to any typed property on this class. | |
110 | * | |
111 | * <p> | |
112 | * the map is keyed by the name of the attribute and | |
113 | * the value is the string value of the attribute. | |
114 | * | |
115 | * the map returned by this method is live, and you can add new attribute | |
116 | * by updating the map directly. Because of this design, there's no setter. | |
117 | * | |
118 | * | |
119 | * @return | |
120 | * always non-null | |
121 | */ | |
122 | public Map<QName, String> getOtherAttributes() { | |
123 | 0 | return otherAttributes; |
124 | } | |
125 | ||
126 | } |