KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

99     public List JavaDoc<Object JavaDoc> getContent() {
100         if (content == null) {
101             content = new ArrayList JavaDoc<Object JavaDoc>();
102         }
103         return this.content;
104     }
105
106 }
107
Popular Tags