01: package org.w3._2000._09.xmldsig_;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05: import javax.xml.bind.JAXBElement;
06: import javax.xml.bind.annotation.XmlAccessType;
07: import javax.xml.bind.annotation.XmlAccessorType;
08: import javax.xml.bind.annotation.XmlAnyElement;
09: import javax.xml.bind.annotation.XmlElementRef;
10: import javax.xml.bind.annotation.XmlElementRefs;
11: import javax.xml.bind.annotation.XmlMixed;
12: import javax.xml.bind.annotation.XmlType;
13: import org.w3c.dom.Element;
14:
15: /**
16: * <p>Java class for KeyValueType complex type.
17: *
18: * <p>The following schema fragment specifies the expected content contained within this class.
19: *
20: * <pre>
21: * <complexType name="KeyValueType">
22: * <complexContent>
23: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
24: * <choice>
25: * <element ref="{http://www.w3.org/2000/09/xmldsig#}DSAKeyValue"/>
26: * <element ref="{http://www.w3.org/2000/09/xmldsig#}RSAKeyValue"/>
27: * <any/>
28: * </choice>
29: * </restriction>
30: * </complexContent>
31: * </complexType>
32: * </pre>
33: *
34: *
35: */
36: @XmlAccessorType(XmlAccessType.FIELD)
37: @XmlType(name="KeyValueType",propOrder={"content"})
38: public class KeyValueType {
39:
40: @XmlElementRefs({@XmlElementRef(name="RSAKeyValue",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="DSAKeyValue",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class)})
41: @XmlMixed
42: @XmlAnyElement(lax=true)
43: protected List<Object> content;
44:
45: /**
46: * Gets the value of the content property.
47: *
48: * <p>
49: * This accessor method returns a reference to the live list,
50: * not a snapshot. Therefore any modification you make to the
51: * returned list will be present inside the JAXB object.
52: * This is why there is not a <CODE>set</CODE> method for the content property.
53: *
54: * <p>
55: * For example, to add a new item, do as follows:
56: * <pre>
57: * getContent().add(newItem);
58: * </pre>
59: *
60: *
61: * <p>
62: * Objects of the following type(s) are allowed in the list
63: * {@link String }
64: * {@link Element }
65: * {@link JAXBElement }{@code <}{@link RSAKeyValueType }{@code >}
66: * {@link Object }
67: * {@link JAXBElement }{@code <}{@link DSAKeyValueType }{@code >}
68: *
69: *
70: */
71: public List<Object> getContent() {
72: if (content == null) {
73: content = new ArrayList<Object>();
74: }
75: return this.content;
76: }
77:
78: }
|