KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3 > _2000 > _09 > xmldsig_ > KeyInfoType


1
2 package org.w3._2000._09.xmldsig_;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.List JavaDoc;
6 import javax.xml.bind.JAXBElement;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlAnyElement;
10 import javax.xml.bind.annotation.XmlAttribute;
11 import javax.xml.bind.annotation.XmlElementRef;
12 import javax.xml.bind.annotation.XmlElementRefs;
13 import javax.xml.bind.annotation.XmlID;
14 import javax.xml.bind.annotation.XmlMixed;
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 org.w3c.dom.Element JavaDoc;
20
21
22 /**
23  * <p>Java class for KeyInfoType complex type.
24  *
25  * <p>The following schema fragment specifies the expected content contained within this class.
26  *
27  * <pre>
28  * &lt;complexType name="KeyInfoType">
29  * &lt;complexContent>
30  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31  * &lt;choice maxOccurs="unbounded">
32  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyName"/>
33  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyValue"/>
34  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}RetrievalMethod"/>
35  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}X509Data"/>
36  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}PGPData"/>
37  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SPKIData"/>
38  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}MgmtData"/>
39  * &lt;any/>
40  * &lt;/choice>
41  * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
42  * &lt;/restriction>
43  * &lt;/complexContent>
44  * &lt;/complexType>
45  * </pre>
46  *
47  *
48  */

49 @XmlAccessorType(XmlAccessType.FIELD)
50 @XmlType(name = "KeyInfoType", propOrder = {
51     "content"
52 })
53 public class KeyInfoType {
54
55     @XmlElementRefs({
56         @XmlElementRef(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
57         @XmlElementRef(name = "RetrievalMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
58         @XmlElementRef(name = "KeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
59         @XmlElementRef(name = "SPKIData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
60         @XmlElementRef(name = "KeyName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
61         @XmlElementRef(name = "PGPData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
62         @XmlElementRef(name = "MgmtData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
63     })
64     @XmlMixed
65     @XmlAnyElement(lax = true)
66     protected List JavaDoc<Object JavaDoc> content;
67     @XmlAttribute(name = "Id")
68     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
69     @XmlID
70     @XmlSchemaType(name = "ID")
71     protected String JavaDoc id;
72
73     /**
74      * Gets the value of the content property.
75      *
76      * <p>
77      * This accessor method returns a reference to the live list,
78      * not a snapshot. Therefore any modification you make to the
79      * returned list will be present inside the JAXB object.
80      * This is why there is not a <CODE>set</CODE> method for the content property.
81      *
82      * <p>
83      * For example, to add a new item, do as follows:
84      * <pre>
85      * getContent().add(newItem);
86      * </pre>
87      *
88      *
89      * <p>
90      * Objects of the following type(s) are allowed in the list
91      * {@link Element }
92      * {@link JAXBElement }{@code <}{@link X509DataType }{@code >}
93      * {@link JAXBElement }{@code <}{@link RetrievalMethodType }{@code >}
94      * {@link String }
95      * {@link JAXBElement }{@code <}{@link KeyValueType }{@code >}
96      * {@link JAXBElement }{@code <}{@link SPKIDataType }{@code >}
97      * {@link JAXBElement }{@code <}{@link String }{@code >}
98      * {@link Object }
99      * {@link JAXBElement }{@code <}{@link PGPDataType }{@code >}
100      * {@link JAXBElement }{@code <}{@link String }{@code >}
101      *
102      *
103      */

104     public List JavaDoc<Object JavaDoc> getContent() {
105         if (content == null) {
106             content = new ArrayList JavaDoc<Object JavaDoc>();
107         }
108         return this.content;
109     }
110
111     /**
112      * Gets the value of the id property.
113      *
114      * @return
115      * possible object is
116      * {@link String }
117      *
118      */

119     public String JavaDoc getId() {
120         return id;
121     }
122
123     /**
124      * Sets the value of the id property.
125      *
126      * @param value
127      * allowed object is
128      * {@link String }
129      *
130      */

131     public void setId(String JavaDoc value) {
132         this.id = value;
133     }
134
135 }
136
Popular Tags