KickJava   Java API By Example, From Geeks To Geeks.

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


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.XmlMixed;
13 import javax.xml.bind.annotation.XmlType;
14 import org.w3c.dom.Element JavaDoc;
15
16
17 /**
18  * <p>Java class for KeyValueType complex type.
19  *
20  * <p>The following schema fragment specifies the expected content contained within this class.
21  *
22  * <pre>
23  * &lt;complexType name="KeyValueType">
24  * &lt;complexContent>
25  * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26  * &lt;choice>
27  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}DSAKeyValue"/>
28  * &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}RSAKeyValue"/>
29  * &lt;any/>
30  * &lt;/choice>
31  * &lt;/restriction>
32  * &lt;/complexContent>
33  * &lt;/complexType>
34  * </pre>
35  *
36  *
37  */

38 @XmlAccessorType(XmlAccessType.FIELD)
39 @XmlType(name = "KeyValueType", propOrder = {
40     "content"
41 })
42 public class KeyValueType {
43
44     @XmlElementRefs({
45         @XmlElementRef(name = "RSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class),
46         @XmlElementRef(name = "DSAKeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class)
47     })
48     @XmlMixed
49     @XmlAnyElement(lax = true)
50     protected List JavaDoc<Object JavaDoc> content;
51
52     /**
53      * Gets the value of the content property.
54      *
55      * <p>
56      * This accessor method returns a reference to the live list,
57      * not a snapshot. Therefore any modification you make to the
58      * returned list will be present inside the JAXB object.
59      * This is why there is not a <CODE>set</CODE> method for the content property.
60      *
61      * <p>
62      * For example, to add a new item, do as follows:
63      * <pre>
64      * getContent().add(newItem);
65      * </pre>
66      *
67      *
68      * <p>
69      * Objects of the following type(s) are allowed in the list
70      * {@link String }
71      * {@link Element }
72      * {@link JAXBElement }{@code <}{@link RSAKeyValueType }{@code >}
73      * {@link Object }
74      * {@link JAXBElement }{@code <}{@link DSAKeyValueType }{@code >}
75      *
76      *
77      */

78     public List JavaDoc<Object JavaDoc> getContent() {
79         if (content == null) {
80             content = new ArrayList JavaDoc<Object JavaDoc>();
81         }
82         return this.content;
83     }
84
85 }
86
Popular Tags