KickJava   Java API By Example, From Geeks To Geeks.

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


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.XmlElementRef;
11 import javax.xml.bind.annotation.XmlElementRefs;
12 import javax.xml.bind.annotation.XmlType;
13 import org.w3c.dom.Element JavaDoc;
14
15
16 /**
17  * <p>Java class for PGPDataType complex type.
18  *
19  * <p>The following schema fragment specifies the expected content contained within this class.
20  *
21  * <pre>
22  * &lt;complexType name="PGPDataType">
23  * &lt;complexContent>
24  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25  * &lt;choice>
26  * &lt;sequence>
27  * &lt;element name="PGPKeyID" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
28  * &lt;element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
29  * &lt;any/>
30  * &lt;/sequence>
31  * &lt;sequence>
32  * &lt;element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
33  * &lt;any/>
34  * &lt;/sequence>
35  * &lt;/choice>
36  * &lt;/restriction>
37  * &lt;/complexContent>
38  * &lt;/complexType>
39  * </pre>
40  *
41  *
42  */

43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "PGPDataType", propOrder = {
45     "content"
46 })
47 public class PGPDataType {
48
49     @XmlElementRefs({
50         @XmlElementRef(name = "PGPKeyPacket", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
51         @XmlElementRef(name = "PGPKeyID", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
52     })
53     @XmlAnyElement(lax = true)
54     protected List JavaDoc<Object JavaDoc> content;
55
56     /**
57      * Gets the rest of the content model.
58      *
59      * <p>
60      * You are getting this "catch-all" property because of the following reason:
61      * The field name "PGPKeyPacket" is used by two different parts of a schema. See:
62      * line 166 of http://www.w3.org/TR/xkms2/Schemas/xmldsig-core-schema.xsd
63      * line 162 of http://www.w3.org/TR/xkms2/Schemas/xmldsig-core-schema.xsd
64      * <p>
65      * To get rid of this property, apply a property customization to one
66      * of both of the following declarations to change their names:
67      * Gets the value of the content property.
68      *
69      * <p>
70      * This accessor method returns a reference to the live list,
71      * not a snapshot. Therefore any modification you make to the
72      * returned list will be present inside the JAXB object.
73      * This is why there is not a <CODE>set</CODE> method for the content property.
74      *
75      * <p>
76      * For example, to add a new item, do as follows:
77      * <pre>
78      * getContent().add(newItem);
79      * </pre>
80      *
81      *
82      * <p>
83      * Objects of the following type(s) are allowed in the list
84      * {@link Element }
85      * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
86      * {@link Object }
87      * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
88      *
89      *
90      */

91     public List JavaDoc<Object JavaDoc> getContent() {
92         if (content == null) {
93             content = new ArrayList JavaDoc<Object JavaDoc>();
94         }
95         return this.content;
96     }
97
98 }
99
Popular Tags