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