Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ObjectType |
|
| 1.1428571428571428;1.143 |
1 | ||
2 | package org.kuali.student.security.xmldsig.dto; | |
3 | ||
4 | import java.util.ArrayList; | |
5 | import java.util.List; | |
6 | import javax.xml.bind.annotation.XmlAccessType; | |
7 | import javax.xml.bind.annotation.XmlAccessorType; | |
8 | import javax.xml.bind.annotation.XmlAnyElement; | |
9 | import javax.xml.bind.annotation.XmlAttribute; | |
10 | import javax.xml.bind.annotation.XmlID; | |
11 | import javax.xml.bind.annotation.XmlMixed; | |
12 | import javax.xml.bind.annotation.XmlSchemaType; | |
13 | import javax.xml.bind.annotation.XmlType; | |
14 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | |
15 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
16 | import org.w3c.dom.Element; | |
17 | ||
18 | ||
19 | /** | |
20 | * <p>Java class for ObjectType complex type. | |
21 | * | |
22 | * <p>The following schema fragment specifies the expected content contained within this class. | |
23 | * | |
24 | * <pre> | |
25 | * <complexType name="ObjectType"> | |
26 | * <complexContent> | |
27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
28 | * <sequence maxOccurs="unbounded" minOccurs="0"> | |
29 | * <any processContents='lax'/> | |
30 | * </sequence> | |
31 | * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> | |
32 | * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" /> | |
33 | * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> | |
34 | * </restriction> | |
35 | * </complexContent> | |
36 | * </complexType> | |
37 | * </pre> | |
38 | * | |
39 | * | |
40 | */ | |
41 | @XmlAccessorType(XmlAccessType.FIELD) | |
42 | @XmlType(name = "ObjectType", propOrder = { | |
43 | "content" | |
44 | }) | |
45 | 0 | public class ObjectType { |
46 | ||
47 | @XmlMixed | |
48 | @XmlAnyElement(lax = true) | |
49 | protected List<Object> content; | |
50 | @XmlAttribute(name = "Id") | |
51 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | |
52 | @XmlID | |
53 | @XmlSchemaType(name = "ID") | |
54 | protected String id; | |
55 | @XmlAttribute(name = "MimeType") | |
56 | protected String mimeType; | |
57 | @XmlAttribute(name = "Encoding") | |
58 | @XmlSchemaType(name = "anyURI") | |
59 | protected String encoding; | |
60 | ||
61 | /** | |
62 | * Gets the value of the content property. | |
63 | * | |
64 | * <p> | |
65 | * This accessor method returns a reference to the live list, | |
66 | * not a snapshot. Therefore any modification you make to the | |
67 | * returned list will be present inside the JAXB object. | |
68 | * This is why there is not a <CODE>set</CODE> method for the content property. | |
69 | * | |
70 | * <p> | |
71 | * For example, to add a new item, do as follows: | |
72 | * <pre> | |
73 | * getContent().add(newItem); | |
74 | * </pre> | |
75 | * | |
76 | * | |
77 | * <p> | |
78 | * Objects of the following type(s) are allowed in the list | |
79 | * {@link Object } | |
80 | * {@link String } | |
81 | * {@link Element } | |
82 | * | |
83 | * | |
84 | */ | |
85 | public List<Object> getContent() { | |
86 | 0 | if (content == null) { |
87 | 0 | content = new ArrayList<Object>(); |
88 | } | |
89 | 0 | return this.content; |
90 | } | |
91 | ||
92 | /** | |
93 | * Gets the value of the id property. | |
94 | * | |
95 | * @return | |
96 | * possible object is | |
97 | * {@link String } | |
98 | * | |
99 | */ | |
100 | public String getId() { | |
101 | 0 | return id; |
102 | } | |
103 | ||
104 | /** | |
105 | * Sets the value of the id property. | |
106 | * | |
107 | * @param value | |
108 | * allowed object is | |
109 | * {@link String } | |
110 | * | |
111 | */ | |
112 | public void setId(String value) { | |
113 | 0 | this.id = value; |
114 | 0 | } |
115 | ||
116 | /** | |
117 | * Gets the value of the mimeType property. | |
118 | * | |
119 | * @return | |
120 | * possible object is | |
121 | * {@link String } | |
122 | * | |
123 | */ | |
124 | public String getMimeType() { | |
125 | 0 | return mimeType; |
126 | } | |
127 | ||
128 | /** | |
129 | * Sets the value of the mimeType property. | |
130 | * | |
131 | * @param value | |
132 | * allowed object is | |
133 | * {@link String } | |
134 | * | |
135 | */ | |
136 | public void setMimeType(String value) { | |
137 | 0 | this.mimeType = value; |
138 | 0 | } |
139 | ||
140 | /** | |
141 | * Gets the value of the encoding property. | |
142 | * | |
143 | * @return | |
144 | * possible object is | |
145 | * {@link String } | |
146 | * | |
147 | */ | |
148 | public String getEncoding() { | |
149 | 0 | return encoding; |
150 | } | |
151 | ||
152 | /** | |
153 | * Sets the value of the encoding property. | |
154 | * | |
155 | * @param value | |
156 | * allowed object is | |
157 | * {@link String } | |
158 | * | |
159 | */ | |
160 | public void setEncoding(String value) { | |
161 | 0 | this.encoding = value; |
162 | 0 | } |
163 | ||
164 | } |