Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ManifestType |
|
| 1.3333333333333333;1.333 |
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.XmlAttribute; | |
9 | import javax.xml.bind.annotation.XmlElement; | |
10 | import javax.xml.bind.annotation.XmlID; | |
11 | import javax.xml.bind.annotation.XmlSchemaType; | |
12 | import javax.xml.bind.annotation.XmlType; | |
13 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | |
14 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
15 | ||
16 | ||
17 | /** | |
18 | * <p>Java class for ManifestType complex type. | |
19 | * | |
20 | * <p>The following schema fragment specifies the expected content contained within this class. | |
21 | * | |
22 | * <pre> | |
23 | * <complexType name="ManifestType"> | |
24 | * <complexContent> | |
25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
26 | * <sequence> | |
27 | * <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/> | |
28 | * </sequence> | |
29 | * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> | |
30 | * </restriction> | |
31 | * </complexContent> | |
32 | * </complexType> | |
33 | * </pre> | |
34 | * | |
35 | * | |
36 | */ | |
37 | @XmlAccessorType(XmlAccessType.FIELD) | |
38 | @XmlType(name = "ManifestType", propOrder = { | |
39 | "reference" | |
40 | }) | |
41 | 0 | public class ManifestType { |
42 | ||
43 | @XmlElement(name = "Reference", required = true) | |
44 | protected List<ReferenceType> reference; | |
45 | @XmlAttribute(name = "Id") | |
46 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | |
47 | @XmlID | |
48 | @XmlSchemaType(name = "ID") | |
49 | protected String id; | |
50 | ||
51 | /** | |
52 | * Gets the value of the reference property. | |
53 | * | |
54 | * <p> | |
55 | * This accessor method returns a reference to the live list, | |
56 | * not a snapshot. Therefore any modification you make to the | |
57 | * returned list will be present inside the JAXB object. | |
58 | * This is why there is not a <CODE>set</CODE> method for the reference property. | |
59 | * | |
60 | * <p> | |
61 | * For example, to add a new item, do as follows: | |
62 | * <pre> | |
63 | * getReference().add(newItem); | |
64 | * </pre> | |
65 | * | |
66 | * | |
67 | * <p> | |
68 | * Objects of the following type(s) are allowed in the list | |
69 | * {@link ReferenceType } | |
70 | * | |
71 | * | |
72 | */ | |
73 | public List<ReferenceType> getReference() { | |
74 | 0 | if (reference == null) { |
75 | 0 | reference = new ArrayList<ReferenceType>(); |
76 | } | |
77 | 0 | return this.reference; |
78 | } | |
79 | ||
80 | /** | |
81 | * Gets the value of the id property. | |
82 | * | |
83 | * @return | |
84 | * possible object is | |
85 | * {@link String } | |
86 | * | |
87 | */ | |
88 | public String getId() { | |
89 | 0 | return id; |
90 | } | |
91 | ||
92 | /** | |
93 | * Sets the value of the id property. | |
94 | * | |
95 | * @param value | |
96 | * allowed object is | |
97 | * {@link String } | |
98 | * | |
99 | */ | |
100 | public void setId(String value) { | |
101 | 0 | this.id = value; |
102 | 0 | } |
103 | ||
104 | } |