KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > xml > dsig > core > KeyInfoType


1 //
2
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b26-ea3
3
// See <a HREF="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4
// Any modifications to this file will be lost upon recompilation of the source schema.
5
// Generated on: 2006.02.24 at 05:55:09 PM PST
6
//
7

8
9 package com.sun.xml.dsig.core;
10
11 import java.util.ArrayList JavaDoc;
12 import java.util.List JavaDoc;
13 import javax.xml.bind.JAXBElement;
14 import javax.xml.bind.annotation.XmlAccessType;
15 import javax.xml.bind.annotation.XmlAccessorType;
16 import javax.xml.bind.annotation.XmlAnyElement;
17 import javax.xml.bind.annotation.XmlAttribute;
18 import javax.xml.bind.annotation.XmlElementRef;
19 import javax.xml.bind.annotation.XmlElementRefs;
20 import javax.xml.bind.annotation.XmlID;
21 import javax.xml.bind.annotation.XmlMixed;
22 import javax.xml.bind.annotation.XmlType;
23 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
24 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
25 import com.sun.xml.dsig.core.KeyInfoType;
26 import com.sun.xml.dsig.core.KeyValueType;
27 import com.sun.xml.dsig.core.PGPDataType;
28 import com.sun.xml.dsig.core.RetrievalMethodType;
29 import com.sun.xml.dsig.core.SPKIDataType;
30 import com.sun.xml.dsig.core.X509DataType;
31 import org.w3c.dom.Element JavaDoc;
32
33
34 /**
35  * <p>Java class for KeyInfoType complex type.
36  *
37  * <p>The following schema fragment specifies the expected content contained within this class.
38  *
39  * <pre>
40  * &lt;complexType name="KeyInfoType">
41  * &lt;complexContent>
42  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43  * &lt;choice maxOccurs="unbounded">
44  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyName"/>
45  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}KeyValue"/>
46  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}RetrievalMethod"/>
47  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}X509Data"/>
48  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}PGPData"/>
49  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}SPKIData"/>
50  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}MgmtData"/>
51  * &lt;any/>
52  * &lt;/choice>
53  * &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
54  * &lt;/restriction>
55  * &lt;/complexContent>
56  * &lt;/complexType>
57  * </pre>
58  *
59  *
60  */

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

115     public List JavaDoc<Object JavaDoc> getContent() {
116         if (content == null) {
117             content = new ArrayList JavaDoc<Object JavaDoc>();
118         }
119         return this.content;
120     }
121
122     /**
123      * Gets the value of the id property.
124      *
125      * @return
126      * possible object is
127      * {@link String }
128      *
129      */

130     public String JavaDoc getId() {
131         return id;
132     }
133
134     /**
135      * Sets the value of the id property.
136      *
137      * @param value
138      * allowed object is
139      * {@link String }
140      *
141      */

142     public void setId(String JavaDoc value) {
143         this.id = value;
144     }
145
146 }
147
Popular Tags