// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.01.26 at 09:19:39 AM CET // package eu.europa.esig.dss.jaxb.diagnostic; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p>Java class for Signature complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Signature"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="SignatureFilename" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="ParentId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="ErrorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="DateTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * <element name="SignatureFormat" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="StructuralValidation" type="{http://dss.esig.europa.eu/validation/diagnostic}StructuralValidation" minOccurs="0"/> * <element name="BasicSignature" type="{http://dss.esig.europa.eu/validation/diagnostic}BasicSignature"/> * <element name="SigningCertificate" type="{http://dss.esig.europa.eu/validation/diagnostic}SigningCertificate" minOccurs="0"/> * <element name="CertificateChain" type="{http://dss.esig.europa.eu/validation/diagnostic}CertificateChain" minOccurs="0"/> * <element name="ContentType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="ContentIdentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="ContentHints" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="SignatureProductionPlace" type="{http://dss.esig.europa.eu/validation/diagnostic}SignatureProductionPlace" minOccurs="0"/> * <element name="CommitmentTypeIndication" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Indication" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="ClaimedRoles" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="ClaimedRoles" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="CertifiedRoles" type="{http://dss.esig.europa.eu/validation/diagnostic}CertifiedRole" maxOccurs="unbounded" minOccurs="0"/> * <element name="Policy" type="{http://dss.esig.europa.eu/validation/diagnostic}Policy" minOccurs="0"/> * <element name="Timestamps" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Timestamp" type="{http://dss.esig.europa.eu/validation/diagnostic}Timestamp" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="SignatureScopes" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="SignatureScope" type="{http://dss.esig.europa.eu/validation/diagnostic}SignatureScope" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * <attribute name="Id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Signature", propOrder = { "signatureFilename", "parentId", "errorMessage", "dateTime", "signatureFormat", "structuralValidation", "basicSignature", "signingCertificate", "certificateChain", "contentType", "contentIdentifier", "contentHints", "signatureProductionPlace", "commitmentTypeIndication", "claimedRoles", "certifiedRoles", "policy", "timestamps", "signatureScopes" }) public class XmlSignature { @XmlElement(name = "SignatureFilename", required = true) protected String signatureFilename; @XmlElement(name = "ParentId") protected String parentId; @XmlElement(name = "ErrorMessage") protected String errorMessage; @XmlElement(name = "DateTime", type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected Date dateTime; @XmlElement(name = "SignatureFormat", required = true) protected String signatureFormat; @XmlElement(name = "StructuralValidation") protected XmlStructuralValidation structuralValidation; @XmlElement(name = "BasicSignature", required = true) protected XmlBasicSignature basicSignature; @XmlElement(name = "SigningCertificate") protected XmlSigningCertificate signingCertificate; @XmlElementWrapper(name = "CertificateChain") @XmlElement(name = "ChainItem", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List<XmlChainItem> certificateChain; @XmlElement(name = "ContentType") protected String contentType; @XmlElement(name = "ContentIdentifier") protected String contentIdentifier; @XmlElement(name = "ContentHints") protected String contentHints; @XmlElement(name = "SignatureProductionPlace") protected XmlSignatureProductionPlace signatureProductionPlace; @XmlElementWrapper(name = "CommitmentTypeIndication") @XmlElement(name = "Indication", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List<String> commitmentTypeIndication; @XmlElementWrapper(name = "ClaimedRoles") @XmlElement(name = "ClaimedRoles", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List<String> claimedRoles; @XmlElement(name = "CertifiedRoles") protected List<XmlCertifiedRole> certifiedRoles; @XmlElement(name = "Policy") protected XmlPolicy policy; @XmlElementWrapper(name = "Timestamps") @XmlElement(name = "Timestamp", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List<XmlTimestamp> timestamps; @XmlElementWrapper(name = "SignatureScopes") @XmlElement(name = "SignatureScope", namespace = "http://dss.esig.europa.eu/validation/diagnostic") protected List<XmlSignatureScope> signatureScopes; @XmlAttribute(name = "Id", required = true) protected String id; @XmlAttribute(name = "Type") protected String type; /** * Gets the value of the signatureFilename property. * * @return * possible object is * {@link String } * */ public String getSignatureFilename() { return signatureFilename; } /** * Sets the value of the signatureFilename property. * * @param value * allowed object is * {@link String } * */ public void setSignatureFilename(String value) { this.signatureFilename = value; } /** * Gets the value of the parentId property. * * @return * possible object is * {@link String } * */ public String getParentId() { return parentId; } /** * Sets the value of the parentId property. * * @param value * allowed object is * {@link String } * */ public void setParentId(String value) { this.parentId = value; } /** * Gets the value of the errorMessage property. * * @return * possible object is * {@link String } * */ public String getErrorMessage() { return errorMessage; } /** * Sets the value of the errorMessage property. * * @param value * allowed object is * {@link String } * */ public void setErrorMessage(String value) { this.errorMessage = value; } /** * Gets the value of the dateTime property. * * @return * possible object is * {@link String } * */ public Date getDateTime() { return dateTime; } /** * Sets the value of the dateTime property. * * @param value * allowed object is * {@link String } * */ public void setDateTime(Date value) { this.dateTime = value; } /** * Gets the value of the signatureFormat property. * * @return * possible object is * {@link String } * */ public String getSignatureFormat() { return signatureFormat; } /** * Sets the value of the signatureFormat property. * * @param value * allowed object is * {@link String } * */ public void setSignatureFormat(String value) { this.signatureFormat = value; } /** * Gets the value of the structuralValidation property. * * @return * possible object is * {@link XmlStructuralValidation } * */ public XmlStructuralValidation getStructuralValidation() { return structuralValidation; } /** * Sets the value of the structuralValidation property. * * @param value * allowed object is * {@link XmlStructuralValidation } * */ public void setStructuralValidation(XmlStructuralValidation value) { this.structuralValidation = value; } /** * Gets the value of the basicSignature property. * * @return * possible object is * {@link XmlBasicSignature } * */ public XmlBasicSignature getBasicSignature() { return basicSignature; } /** * Sets the value of the basicSignature property. * * @param value * allowed object is * {@link XmlBasicSignature } * */ public void setBasicSignature(XmlBasicSignature value) { this.basicSignature = value; } /** * Gets the value of the signingCertificate property. * * @return * possible object is * {@link XmlSigningCertificate } * */ public XmlSigningCertificate getSigningCertificate() { return signingCertificate; } /** * Sets the value of the signingCertificate property. * * @param value * allowed object is * {@link XmlSigningCertificate } * */ public void setSigningCertificate(XmlSigningCertificate value) { this.signingCertificate = value; } /** * Gets the value of the contentType property. * * @return * possible object is * {@link String } * */ public String getContentType() { return contentType; } /** * Sets the value of the contentType property. * * @param value * allowed object is * {@link String } * */ public void setContentType(String value) { this.contentType = value; } /** * Gets the value of the contentIdentifier property. * * @return * possible object is * {@link String } * */ public String getContentIdentifier() { return contentIdentifier; } /** * Sets the value of the contentIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setContentIdentifier(String value) { this.contentIdentifier = value; } /** * Gets the value of the contentHints property. * * @return * possible object is * {@link String } * */ public String getContentHints() { return contentHints; } /** * Sets the value of the contentHints property. * * @param value * allowed object is * {@link String } * */ public void setContentHints(String value) { this.contentHints = value; } /** * Gets the value of the signatureProductionPlace property. * * @return * possible object is * {@link XmlSignatureProductionPlace } * */ public XmlSignatureProductionPlace getSignatureProductionPlace() { return signatureProductionPlace; } /** * Sets the value of the signatureProductionPlace property. * * @param value * allowed object is * {@link XmlSignatureProductionPlace } * */ public void setSignatureProductionPlace(XmlSignatureProductionPlace value) { this.signatureProductionPlace = value; } /** * Gets the value of the certifiedRoles property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the certifiedRoles property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCertifiedRoles().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link XmlCertifiedRole } * * */ public List<XmlCertifiedRole> getCertifiedRoles() { if (certifiedRoles == null) { certifiedRoles = new ArrayList<XmlCertifiedRole>(); } return this.certifiedRoles; } /** * Gets the value of the policy property. * * @return * possible object is * {@link XmlPolicy } * */ public XmlPolicy getPolicy() { return policy; } /** * Sets the value of the policy property. * * @param value * allowed object is * {@link XmlPolicy } * */ public void setPolicy(XmlPolicy value) { this.policy = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } public List<XmlChainItem> getCertificateChain() { if (certificateChain == null) { certificateChain = new ArrayList<XmlChainItem>(); } return certificateChain; } public void setCertificateChain(List<XmlChainItem> certificateChain) { this.certificateChain = certificateChain; } public List<String> getCommitmentTypeIndication() { if (commitmentTypeIndication == null) { commitmentTypeIndication = new ArrayList<String>(); } return commitmentTypeIndication; } public void setCommitmentTypeIndication(List<String> commitmentTypeIndication) { this.commitmentTypeIndication = commitmentTypeIndication; } public List<String> getClaimedRoles() { if (claimedRoles == null) { claimedRoles = new ArrayList<String>(); } return claimedRoles; } public void setClaimedRoles(List<String> claimedRoles) { this.claimedRoles = claimedRoles; } public List<XmlTimestamp> getTimestamps() { if (timestamps == null) { timestamps = new ArrayList<XmlTimestamp>(); } return timestamps; } public void setTimestamps(List<XmlTimestamp> timestamps) { this.timestamps = timestamps; } public List<XmlSignatureScope> getSignatureScopes() { if (signatureScopes == null) { signatureScopes = new ArrayList<XmlSignatureScope>(); } return signatureScopes; } public void setSignatureScopes(List<XmlSignatureScope> signatureScopes) { this.signatureScopes = signatureScopes; } }