All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.etsi.uri._01903.v1_3.SignedDataObjectPropertiesType Maven / Gradle / Ivy

//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.11 
// Visite http://java.sun.com/xml/jaxb 
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen. 
// Generado el: 2021.03.22 a las 07:02:09 PM CET 
//


package org.etsi.uri._01903.v1_3;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Clase Java para SignedDataObjectPropertiesType complex type. * *

El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase. * *

 * <complexType name="SignedDataObjectPropertiesType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{http://uri.etsi.org/01903/v1.3.2#}DataObjectFormat" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{http://uri.etsi.org/01903/v1.3.2#}CommitmentTypeIndication" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{http://uri.etsi.org/01903/v1.3.2#}AllDataObjectsTimeStamp" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{http://uri.etsi.org/01903/v1.3.2#}IndividualDataObjectsTimeStamp" maxOccurs="unbounded" minOccurs="0"/>
 *         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SignedDataObjectPropertiesType", propOrder = { "dataObjectFormat", "commitmentTypeIndication", "allDataObjectsTimeStamp", "individualDataObjectsTimeStamp", "any" }) public class SignedDataObjectPropertiesType implements Serializable, Equals2, HashCode2, ToString2 { private final static long serialVersionUID = 100L; @XmlElement(name = "DataObjectFormat") protected List dataObjectFormat; @XmlElement(name = "CommitmentTypeIndication") protected List commitmentTypeIndication; @XmlElement(name = "AllDataObjectsTimeStamp") protected List allDataObjectsTimeStamp; @XmlElement(name = "IndividualDataObjectsTimeStamp") protected List individualDataObjectsTimeStamp; @XmlAnyElement(lax = true) protected List any; @XmlAttribute(name = "Id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; /** * Gets the value of the dataObjectFormat property. * *

* 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 set method for the dataObjectFormat property. * *

* For example, to add a new item, do as follows: *

     *    getDataObjectFormat().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DataObjectFormatType } * * */ public List getDataObjectFormat() { if (dataObjectFormat == null) { dataObjectFormat = new ArrayList(); } return this.dataObjectFormat; } /** * Gets the value of the commitmentTypeIndication property. * *

* 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 set method for the commitmentTypeIndication property. * *

* For example, to add a new item, do as follows: *

     *    getCommitmentTypeIndication().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CommitmentTypeIndicationType } * * */ public List getCommitmentTypeIndication() { if (commitmentTypeIndication == null) { commitmentTypeIndication = new ArrayList(); } return this.commitmentTypeIndication; } /** * Gets the value of the allDataObjectsTimeStamp property. * *

* 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 set method for the allDataObjectsTimeStamp property. * *

* For example, to add a new item, do as follows: *

     *    getAllDataObjectsTimeStamp().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link XAdESTimeStampType } * * */ public List getAllDataObjectsTimeStamp() { if (allDataObjectsTimeStamp == null) { allDataObjectsTimeStamp = new ArrayList(); } return this.allDataObjectsTimeStamp; } /** * Gets the value of the individualDataObjectsTimeStamp property. * *

* 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 set method for the individualDataObjectsTimeStamp property. * *

* For example, to add a new item, do as follows: *

     *    getIndividualDataObjectsTimeStamp().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link XAdESTimeStampType } * * */ public List getIndividualDataObjectsTimeStamp() { if (individualDataObjectsTimeStamp == null) { individualDataObjectsTimeStamp = new ArrayList(); } return this.individualDataObjectsTimeStamp; } /** * Gets the value of the any property. * *

* 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 set method for the any property. * *

* For example, to add a new item, do as follows: *

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } /** * Obtiene el valor de la propiedad id. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Define el valor de la propiedad id. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List theDataObjectFormat; theDataObjectFormat = (((this.dataObjectFormat!= null)&&(!this.dataObjectFormat.isEmpty()))?this.getDataObjectFormat():null); strategy.appendField(locator, this, "dataObjectFormat", buffer, theDataObjectFormat, ((this.dataObjectFormat!= null)&&(!this.dataObjectFormat.isEmpty()))); } { List theCommitmentTypeIndication; theCommitmentTypeIndication = (((this.commitmentTypeIndication!= null)&&(!this.commitmentTypeIndication.isEmpty()))?this.getCommitmentTypeIndication():null); strategy.appendField(locator, this, "commitmentTypeIndication", buffer, theCommitmentTypeIndication, ((this.commitmentTypeIndication!= null)&&(!this.commitmentTypeIndication.isEmpty()))); } { List theAllDataObjectsTimeStamp; theAllDataObjectsTimeStamp = (((this.allDataObjectsTimeStamp!= null)&&(!this.allDataObjectsTimeStamp.isEmpty()))?this.getAllDataObjectsTimeStamp():null); strategy.appendField(locator, this, "allDataObjectsTimeStamp", buffer, theAllDataObjectsTimeStamp, ((this.allDataObjectsTimeStamp!= null)&&(!this.allDataObjectsTimeStamp.isEmpty()))); } { List theIndividualDataObjectsTimeStamp; theIndividualDataObjectsTimeStamp = (((this.individualDataObjectsTimeStamp!= null)&&(!this.individualDataObjectsTimeStamp.isEmpty()))?this.getIndividualDataObjectsTimeStamp():null); strategy.appendField(locator, this, "individualDataObjectsTimeStamp", buffer, theIndividualDataObjectsTimeStamp, ((this.individualDataObjectsTimeStamp!= null)&&(!this.individualDataObjectsTimeStamp.isEmpty()))); } { List theAny; theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); strategy.appendField(locator, this, "any", buffer, theAny, ((this.any!= null)&&(!this.any.isEmpty()))); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SignedDataObjectPropertiesType that = ((SignedDataObjectPropertiesType) object); { List lhsDataObjectFormat; lhsDataObjectFormat = (((this.dataObjectFormat!= null)&&(!this.dataObjectFormat.isEmpty()))?this.getDataObjectFormat():null); List rhsDataObjectFormat; rhsDataObjectFormat = (((that.dataObjectFormat!= null)&&(!that.dataObjectFormat.isEmpty()))?that.getDataObjectFormat():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dataObjectFormat", lhsDataObjectFormat), LocatorUtils.property(thatLocator, "dataObjectFormat", rhsDataObjectFormat), lhsDataObjectFormat, rhsDataObjectFormat, ((this.dataObjectFormat!= null)&&(!this.dataObjectFormat.isEmpty())), ((that.dataObjectFormat!= null)&&(!that.dataObjectFormat.isEmpty())))) { return false; } } { List lhsCommitmentTypeIndication; lhsCommitmentTypeIndication = (((this.commitmentTypeIndication!= null)&&(!this.commitmentTypeIndication.isEmpty()))?this.getCommitmentTypeIndication():null); List rhsCommitmentTypeIndication; rhsCommitmentTypeIndication = (((that.commitmentTypeIndication!= null)&&(!that.commitmentTypeIndication.isEmpty()))?that.getCommitmentTypeIndication():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "commitmentTypeIndication", lhsCommitmentTypeIndication), LocatorUtils.property(thatLocator, "commitmentTypeIndication", rhsCommitmentTypeIndication), lhsCommitmentTypeIndication, rhsCommitmentTypeIndication, ((this.commitmentTypeIndication!= null)&&(!this.commitmentTypeIndication.isEmpty())), ((that.commitmentTypeIndication!= null)&&(!that.commitmentTypeIndication.isEmpty())))) { return false; } } { List lhsAllDataObjectsTimeStamp; lhsAllDataObjectsTimeStamp = (((this.allDataObjectsTimeStamp!= null)&&(!this.allDataObjectsTimeStamp.isEmpty()))?this.getAllDataObjectsTimeStamp():null); List rhsAllDataObjectsTimeStamp; rhsAllDataObjectsTimeStamp = (((that.allDataObjectsTimeStamp!= null)&&(!that.allDataObjectsTimeStamp.isEmpty()))?that.getAllDataObjectsTimeStamp():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "allDataObjectsTimeStamp", lhsAllDataObjectsTimeStamp), LocatorUtils.property(thatLocator, "allDataObjectsTimeStamp", rhsAllDataObjectsTimeStamp), lhsAllDataObjectsTimeStamp, rhsAllDataObjectsTimeStamp, ((this.allDataObjectsTimeStamp!= null)&&(!this.allDataObjectsTimeStamp.isEmpty())), ((that.allDataObjectsTimeStamp!= null)&&(!that.allDataObjectsTimeStamp.isEmpty())))) { return false; } } { List lhsIndividualDataObjectsTimeStamp; lhsIndividualDataObjectsTimeStamp = (((this.individualDataObjectsTimeStamp!= null)&&(!this.individualDataObjectsTimeStamp.isEmpty()))?this.getIndividualDataObjectsTimeStamp():null); List rhsIndividualDataObjectsTimeStamp; rhsIndividualDataObjectsTimeStamp = (((that.individualDataObjectsTimeStamp!= null)&&(!that.individualDataObjectsTimeStamp.isEmpty()))?that.getIndividualDataObjectsTimeStamp():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "individualDataObjectsTimeStamp", lhsIndividualDataObjectsTimeStamp), LocatorUtils.property(thatLocator, "individualDataObjectsTimeStamp", rhsIndividualDataObjectsTimeStamp), lhsIndividualDataObjectsTimeStamp, rhsIndividualDataObjectsTimeStamp, ((this.individualDataObjectsTimeStamp!= null)&&(!this.individualDataObjectsTimeStamp.isEmpty())), ((that.individualDataObjectsTimeStamp!= null)&&(!that.individualDataObjectsTimeStamp.isEmpty())))) { return false; } } { List lhsAny; lhsAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); List rhsAny; rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "any", lhsAny), LocatorUtils.property(thatLocator, "any", rhsAny), lhsAny, rhsAny, ((this.any!= null)&&(!this.any.isEmpty())), ((that.any!= null)&&(!that.any.isEmpty())))) { return false; } } { String lhsId; lhsId = this.getId(); String rhsId; rhsId = that.getId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theDataObjectFormat; theDataObjectFormat = (((this.dataObjectFormat!= null)&&(!this.dataObjectFormat.isEmpty()))?this.getDataObjectFormat():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataObjectFormat", theDataObjectFormat), currentHashCode, theDataObjectFormat, ((this.dataObjectFormat!= null)&&(!this.dataObjectFormat.isEmpty()))); } { List theCommitmentTypeIndication; theCommitmentTypeIndication = (((this.commitmentTypeIndication!= null)&&(!this.commitmentTypeIndication.isEmpty()))?this.getCommitmentTypeIndication():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "commitmentTypeIndication", theCommitmentTypeIndication), currentHashCode, theCommitmentTypeIndication, ((this.commitmentTypeIndication!= null)&&(!this.commitmentTypeIndication.isEmpty()))); } { List theAllDataObjectsTimeStamp; theAllDataObjectsTimeStamp = (((this.allDataObjectsTimeStamp!= null)&&(!this.allDataObjectsTimeStamp.isEmpty()))?this.getAllDataObjectsTimeStamp():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allDataObjectsTimeStamp", theAllDataObjectsTimeStamp), currentHashCode, theAllDataObjectsTimeStamp, ((this.allDataObjectsTimeStamp!= null)&&(!this.allDataObjectsTimeStamp.isEmpty()))); } { List theIndividualDataObjectsTimeStamp; theIndividualDataObjectsTimeStamp = (((this.individualDataObjectsTimeStamp!= null)&&(!this.individualDataObjectsTimeStamp.isEmpty()))?this.getIndividualDataObjectsTimeStamp():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "individualDataObjectsTimeStamp", theIndividualDataObjectsTimeStamp), currentHashCode, theIndividualDataObjectsTimeStamp, ((this.individualDataObjectsTimeStamp!= null)&&(!this.individualDataObjectsTimeStamp.isEmpty()))); } { List theAny; theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "any", theAny), currentHashCode, theAny, ((this.any!= null)&&(!this.any.isEmpty()))); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }