View Javadoc
1   /*
2    * Copyright 2001-2008 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  
18  
19  package org.w3._2000._09.xmldsig_;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  import javax.xml.bind.JAXBElement;
24  import javax.xml.bind.annotation.XmlAccessType;
25  import javax.xml.bind.annotation.XmlAccessorType;
26  import javax.xml.bind.annotation.XmlAnyElement;
27  import javax.xml.bind.annotation.XmlElementRef;
28  import javax.xml.bind.annotation.XmlElementRefs;
29  import javax.xml.bind.annotation.XmlType;
30  import org.w3c.dom.Element;
31  
32  
33  /**
34   * <p>Java class for PGPDataType complex type.
35   * 
36   * <p>The following schema fragment specifies the expected content contained within this class.
37   * 
38   * <pre>
39   * &lt;complexType name="PGPDataType">
40   *   &lt;complexContent>
41   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42   *       &lt;choice>
43   *         &lt;sequence>
44   *           &lt;element name="PGPKeyID" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
45   *           &lt;element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
46   *           &lt;any/>
47   *         &lt;/sequence>
48   *         &lt;sequence>
49   *           &lt;element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
50   *           &lt;any/>
51   *         &lt;/sequence>
52   *       &lt;/choice>
53   *     &lt;/restriction>
54   *   &lt;/complexContent>
55   * &lt;/complexType>
56   * </pre>
57   * 
58   * 
59   */
60  @XmlAccessorType(XmlAccessType.FIELD)
61  @XmlType(name = "PGPDataType", propOrder = {
62      "content"
63  })
64  public class PGPDataType {
65  
66      @XmlElementRefs({
67          @XmlElementRef(name = "PGPKeyID", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
68          @XmlElementRef(name = "PGPKeyPacket", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
69      })
70      @XmlAnyElement(lax = true)
71      protected List<Object> content;
72  
73      /**
74       * Gets the rest of the content model. 
75       * 
76       * <p>
77       * You are getting this "catch-all" property because of the following reason: 
78       * The field name "PGPKeyPacket" is used by two different parts of a schema. See: 
79       * line 218 of http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
80       * line 213 of http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
81       * <p>
82       * To get rid of this property, apply a property customization to one 
83       * of both of the following declarations to change their names: 
84       * Gets the value of the content property.
85       * 
86       * <p>
87       * This accessor method returns a reference to the live list,
88       * not a snapshot. Therefore any modification you make to the
89       * returned list will be present inside the JAXB object.
90       * This is why there is not a <CODE>set</CODE> method for the content property.
91       * 
92       * <p>
93       * For example, to add a new item, do as follows:
94       * <pre>
95       *    getContent().add(newItem);
96       * </pre>
97       * 
98       * 
99       * <p>
100      * Objects of the following type(s) are allowed in the list
101      * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
102      * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
103      * {@link Object }
104      * {@link Element }
105      * 
106      * 
107      */
108     public List<Object> getContent() {
109         if (content == null) {
110             content = new ArrayList<Object>();
111         }
112         return this.content;
113     }
114 
115 }