1 2 package org.w3._2000._09.xmldsig_; 3 4 import java.util.ArrayList ; 5 import java.util.List ; 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.XmlAttribute; 11 import javax.xml.bind.annotation.XmlElementRef; 12 import javax.xml.bind.annotation.XmlElementRefs; 13 import javax.xml.bind.annotation.XmlID; 14 import javax.xml.bind.annotation.XmlMixed; 15 import javax.xml.bind.annotation.XmlSchemaType; 16 import javax.xml.bind.annotation.XmlType; 17 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 18 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 19 import org.w3c.dom.Element ; 20 21 22 49 @XmlAccessorType(XmlAccessType.FIELD) 50 @XmlType(name = "KeyInfoType", propOrder = { 51 "content" 52 }) 53 public class KeyInfoType { 54 55 @XmlElementRefs({ 56 @XmlElementRef(name = "X509Data", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 57 @XmlElementRef(name = "RetrievalMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 58 @XmlElementRef(name = "KeyValue", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 59 @XmlElementRef(name = "SPKIData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 60 @XmlElementRef(name = "KeyName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 61 @XmlElementRef(name = "PGPData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), 62 @XmlElementRef(name = "MgmtData", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) 63 }) 64 @XmlMixed 65 @XmlAnyElement(lax = true) 66 protected List <Object > content; 67 @XmlAttribute(name = "Id") 68 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 69 @XmlID 70 @XmlSchemaType(name = "ID") 71 protected String id; 72 73 104 public List <Object > getContent() { 105 if (content == null) { 106 content = new ArrayList <Object >(); 107 } 108 return this.content; 109 } 110 111 119 public String getId() { 120 return id; 121 } 122 123 131 public void setId(String value) { 132 this.id = value; 133 } 134 135 } 136 | Popular Tags |