001: package org.w3._2000._09.xmldsig_;
002:
003: import java.util.ArrayList;
004: import java.util.List;
005: import javax.xml.bind.JAXBElement;
006: import javax.xml.bind.annotation.XmlAccessType;
007: import javax.xml.bind.annotation.XmlAccessorType;
008: import javax.xml.bind.annotation.XmlAnyElement;
009: import javax.xml.bind.annotation.XmlAttribute;
010: import javax.xml.bind.annotation.XmlElementRef;
011: import javax.xml.bind.annotation.XmlElementRefs;
012: import javax.xml.bind.annotation.XmlID;
013: import javax.xml.bind.annotation.XmlMixed;
014: import javax.xml.bind.annotation.XmlSchemaType;
015: import javax.xml.bind.annotation.XmlType;
016: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
017: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
018: import org.w3c.dom.Element;
019:
020: /**
021: * <p>Java class for KeyInfoType complex type.
022: *
023: * <p>The following schema fragment specifies the expected content contained within this class.
024: *
025: * <pre>
026: * <complexType name="KeyInfoType">
027: * <complexContent>
028: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
029: * <choice maxOccurs="unbounded">
030: * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyName"/>
031: * <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyValue"/>
032: * <element ref="{http://www.w3.org/2000/09/xmldsig#}RetrievalMethod"/>
033: * <element ref="{http://www.w3.org/2000/09/xmldsig#}X509Data"/>
034: * <element ref="{http://www.w3.org/2000/09/xmldsig#}PGPData"/>
035: * <element ref="{http://www.w3.org/2000/09/xmldsig#}SPKIData"/>
036: * <element ref="{http://www.w3.org/2000/09/xmldsig#}MgmtData"/>
037: * <any/>
038: * </choice>
039: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
040: * </restriction>
041: * </complexContent>
042: * </complexType>
043: * </pre>
044: *
045: *
046: */
047: @XmlAccessorType(XmlAccessType.FIELD)
048: @XmlType(name="KeyInfoType",propOrder={"content"})
049: public class KeyInfoType {
050:
051: @XmlElementRefs({@XmlElementRef(name="X509Data",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="RetrievalMethod",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="KeyValue",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="SPKIData",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="KeyName",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="PGPData",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class),@XmlElementRef(name="MgmtData",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class)})
052: @XmlMixed
053: @XmlAnyElement(lax=true)
054: protected List<Object> content;
055: @XmlAttribute(name="Id")
056: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
057: @XmlID
058: @XmlSchemaType(name="ID")
059: protected String id;
060:
061: /**
062: * Gets the value of the content property.
063: *
064: * <p>
065: * This accessor method returns a reference to the live list,
066: * not a snapshot. Therefore any modification you make to the
067: * returned list will be present inside the JAXB object.
068: * This is why there is not a <CODE>set</CODE> method for the content property.
069: *
070: * <p>
071: * For example, to add a new item, do as follows:
072: * <pre>
073: * getContent().add(newItem);
074: * </pre>
075: *
076: *
077: * <p>
078: * Objects of the following type(s) are allowed in the list
079: * {@link Element }
080: * {@link JAXBElement }{@code <}{@link X509DataType }{@code >}
081: * {@link JAXBElement }{@code <}{@link RetrievalMethodType }{@code >}
082: * {@link String }
083: * {@link JAXBElement }{@code <}{@link KeyValueType }{@code >}
084: * {@link JAXBElement }{@code <}{@link SPKIDataType }{@code >}
085: * {@link JAXBElement }{@code <}{@link String }{@code >}
086: * {@link Object }
087: * {@link JAXBElement }{@code <}{@link PGPDataType }{@code >}
088: * {@link JAXBElement }{@code <}{@link String }{@code >}
089: *
090: *
091: */
092: public List<Object> getContent() {
093: if (content == null) {
094: content = new ArrayList<Object>();
095: }
096: return this .content;
097: }
098:
099: /**
100: * Gets the value of the id property.
101: *
102: * @return
103: * possible object is
104: * {@link String }
105: *
106: */
107: public String getId() {
108: return id;
109: }
110:
111: /**
112: * Sets the value of the id property.
113: *
114: * @param value
115: * allowed object is
116: * {@link String }
117: *
118: */
119: public void setId(String value) {
120: this.id = value;
121: }
122:
123: }
|