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

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

//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.11.06 at 01:54:33 PM UTC 
//


package org.etsi.uri._01903.v1_3;

import java.util.ArrayList;
import java.util.Collection;
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.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
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;


/**
 * 

Java class for SignedDataObjectPropertiesType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="SignedDataObjectPropertiesType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="DataObjectFormat" type="{http://uri.etsi.org/01903/v1.3.2#}DataObjectFormatType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="CommitmentTypeIndication" type="{http://uri.etsi.org/01903/v1.3.2#}CommitmentTypeIndicationType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="AllDataObjectsTimeStamp" type="{http://uri.etsi.org/01903/v1.3.2#}XAdESTimeStampType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="IndividualDataObjectsTimeStamp" type="{http://uri.etsi.org/01903/v1.3.2#}XAdESTimeStampType" 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 = { "dataObjectFormats", "commitmentTypeIndications", "allDataObjectsTimeStamps", "individualDataObjectsTimeStamps" }) @XmlRootElement(name = "SignedDataObjectProperties") public class SignedDataObjectProperties implements Equals2, HashCode2, ToString2 { @XmlElement(name = "DataObjectFormat") protected List dataObjectFormats; @XmlElement(name = "CommitmentTypeIndication") protected List commitmentTypeIndications; @XmlElement(name = "AllDataObjectsTimeStamp") protected List allDataObjectsTimeStamps; @XmlElement(name = "IndividualDataObjectsTimeStamp") protected List individualDataObjectsTimeStamps; @XmlAttribute(name = "Id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; /** * Default no-arg constructor * */ public SignedDataObjectProperties() { super(); } /** * Fully-initialising value constructor * */ public SignedDataObjectProperties(final List dataObjectFormats, final List commitmentTypeIndications, final List allDataObjectsTimeStamps, final List individualDataObjectsTimeStamps, final String id) { this.dataObjectFormats = dataObjectFormats; this.commitmentTypeIndications = commitmentTypeIndications; this.allDataObjectsTimeStamps = allDataObjectsTimeStamps; this.individualDataObjectsTimeStamps = individualDataObjectsTimeStamps; this.id = id; } /** * Gets the value of the dataObjectFormats 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 dataObjectFormats property. * *

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

     *    getDataObjectFormats().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DataObjectFormat } * * */ public List getDataObjectFormats() { if (dataObjectFormats == null) { dataObjectFormats = new ArrayList(); } return this.dataObjectFormats; } /** * Gets the value of the commitmentTypeIndications 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 commitmentTypeIndications property. * *

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

     *    getCommitmentTypeIndications().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CommitmentTypeIndication } * * */ public List getCommitmentTypeIndications() { if (commitmentTypeIndications == null) { commitmentTypeIndications = new ArrayList(); } return this.commitmentTypeIndications; } /** * Gets the value of the allDataObjectsTimeStamps 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 allDataObjectsTimeStamps property. * *

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

     *    getAllDataObjectsTimeStamps().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link XAdESTimeStampType } * * */ public List getAllDataObjectsTimeStamps() { if (allDataObjectsTimeStamps == null) { allDataObjectsTimeStamps = new ArrayList(); } return this.allDataObjectsTimeStamps; } /** * Gets the value of the individualDataObjectsTimeStamps 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 individualDataObjectsTimeStamps property. * *

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

     *    getIndividualDataObjectsTimeStamps().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link XAdESTimeStampType } * * */ public List getIndividualDataObjectsTimeStamps() { if (individualDataObjectsTimeStamps == null) { individualDataObjectsTimeStamps = new ArrayList(); } return this.individualDataObjectsTimeStamps; } /** * 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; } public void setDataObjectFormats(List value) { this.dataObjectFormats = null; if (value!= null) { List draftl = this.getDataObjectFormats(); draftl.addAll(value); } } public void setCommitmentTypeIndications(List value) { this.commitmentTypeIndications = null; if (value!= null) { List draftl = this.getCommitmentTypeIndications(); draftl.addAll(value); } } public void setAllDataObjectsTimeStamps(List value) { this.allDataObjectsTimeStamps = null; if (value!= null) { List draftl = this.getAllDataObjectsTimeStamps(); draftl.addAll(value); } } public void setIndividualDataObjectsTimeStamps(List value) { this.individualDataObjectsTimeStamps = null; if (value!= null) { List draftl = this.getIndividualDataObjectsTimeStamps(); draftl.addAll(value); } } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override 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; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List theDataObjectFormats; theDataObjectFormats = (((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty()))?this.getDataObjectFormats():null); strategy.appendField(locator, this, "dataObjectFormats", buffer, theDataObjectFormats, ((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty()))); } { List theCommitmentTypeIndications; theCommitmentTypeIndications = (((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))?this.getCommitmentTypeIndications():null); strategy.appendField(locator, this, "commitmentTypeIndications", buffer, theCommitmentTypeIndications, ((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))); } { List theAllDataObjectsTimeStamps; theAllDataObjectsTimeStamps = (((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))?this.getAllDataObjectsTimeStamps():null); strategy.appendField(locator, this, "allDataObjectsTimeStamps", buffer, theAllDataObjectsTimeStamps, ((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))); } { List theIndividualDataObjectsTimeStamps; theIndividualDataObjectsTimeStamps = (((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))?this.getIndividualDataObjectsTimeStamps():null); strategy.appendField(locator, this, "individualDataObjectsTimeStamps", buffer, theIndividualDataObjectsTimeStamps, ((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } return buffer; } @Override 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 SignedDataObjectProperties that = ((SignedDataObjectProperties) object); { List lhsDataObjectFormats; lhsDataObjectFormats = (((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty()))?this.getDataObjectFormats():null); List rhsDataObjectFormats; rhsDataObjectFormats = (((that.dataObjectFormats!= null)&&(!that.dataObjectFormats.isEmpty()))?that.getDataObjectFormats():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dataObjectFormats", lhsDataObjectFormats), LocatorUtils.property(thatLocator, "dataObjectFormats", rhsDataObjectFormats), lhsDataObjectFormats, rhsDataObjectFormats, ((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty())), ((that.dataObjectFormats!= null)&&(!that.dataObjectFormats.isEmpty())))) { return false; } } { List lhsCommitmentTypeIndications; lhsCommitmentTypeIndications = (((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))?this.getCommitmentTypeIndications():null); List rhsCommitmentTypeIndications; rhsCommitmentTypeIndications = (((that.commitmentTypeIndications!= null)&&(!that.commitmentTypeIndications.isEmpty()))?that.getCommitmentTypeIndications():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "commitmentTypeIndications", lhsCommitmentTypeIndications), LocatorUtils.property(thatLocator, "commitmentTypeIndications", rhsCommitmentTypeIndications), lhsCommitmentTypeIndications, rhsCommitmentTypeIndications, ((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty())), ((that.commitmentTypeIndications!= null)&&(!that.commitmentTypeIndications.isEmpty())))) { return false; } } { List lhsAllDataObjectsTimeStamps; lhsAllDataObjectsTimeStamps = (((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))?this.getAllDataObjectsTimeStamps():null); List rhsAllDataObjectsTimeStamps; rhsAllDataObjectsTimeStamps = (((that.allDataObjectsTimeStamps!= null)&&(!that.allDataObjectsTimeStamps.isEmpty()))?that.getAllDataObjectsTimeStamps():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "allDataObjectsTimeStamps", lhsAllDataObjectsTimeStamps), LocatorUtils.property(thatLocator, "allDataObjectsTimeStamps", rhsAllDataObjectsTimeStamps), lhsAllDataObjectsTimeStamps, rhsAllDataObjectsTimeStamps, ((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty())), ((that.allDataObjectsTimeStamps!= null)&&(!that.allDataObjectsTimeStamps.isEmpty())))) { return false; } } { List lhsIndividualDataObjectsTimeStamps; lhsIndividualDataObjectsTimeStamps = (((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))?this.getIndividualDataObjectsTimeStamps():null); List rhsIndividualDataObjectsTimeStamps; rhsIndividualDataObjectsTimeStamps = (((that.individualDataObjectsTimeStamps!= null)&&(!that.individualDataObjectsTimeStamps.isEmpty()))?that.getIndividualDataObjectsTimeStamps():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "individualDataObjectsTimeStamps", lhsIndividualDataObjectsTimeStamps), LocatorUtils.property(thatLocator, "individualDataObjectsTimeStamps", rhsIndividualDataObjectsTimeStamps), lhsIndividualDataObjectsTimeStamps, rhsIndividualDataObjectsTimeStamps, ((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty())), ((that.individualDataObjectsTimeStamps!= null)&&(!that.individualDataObjectsTimeStamps.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; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theDataObjectFormats; theDataObjectFormats = (((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty()))?this.getDataObjectFormats():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataObjectFormats", theDataObjectFormats), currentHashCode, theDataObjectFormats, ((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty()))); } { List theCommitmentTypeIndications; theCommitmentTypeIndications = (((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))?this.getCommitmentTypeIndications():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "commitmentTypeIndications", theCommitmentTypeIndications), currentHashCode, theCommitmentTypeIndications, ((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))); } { List theAllDataObjectsTimeStamps; theAllDataObjectsTimeStamps = (((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))?this.getAllDataObjectsTimeStamps():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allDataObjectsTimeStamps", theAllDataObjectsTimeStamps), currentHashCode, theAllDataObjectsTimeStamps, ((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))); } { List theIndividualDataObjectsTimeStamps; theIndividualDataObjectsTimeStamps = (((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))?this.getIndividualDataObjectsTimeStamps():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "individualDataObjectsTimeStamps", theIndividualDataObjectsTimeStamps), currentHashCode, theIndividualDataObjectsTimeStamps, ((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SignedDataObjectProperties withDataObjectFormats(DataObjectFormat... values) { if (values!= null) { for (DataObjectFormat value: values) { getDataObjectFormats().add(value); } } return this; } public SignedDataObjectProperties withDataObjectFormats(Collection values) { if (values!= null) { getDataObjectFormats().addAll(values); } return this; } public SignedDataObjectProperties withCommitmentTypeIndications(CommitmentTypeIndication... values) { if (values!= null) { for (CommitmentTypeIndication value: values) { getCommitmentTypeIndications().add(value); } } return this; } public SignedDataObjectProperties withCommitmentTypeIndications(Collection values) { if (values!= null) { getCommitmentTypeIndications().addAll(values); } return this; } public SignedDataObjectProperties withAllDataObjectsTimeStamps(XAdESTimeStampType... values) { if (values!= null) { for (XAdESTimeStampType value: values) { getAllDataObjectsTimeStamps().add(value); } } return this; } public SignedDataObjectProperties withAllDataObjectsTimeStamps(Collection values) { if (values!= null) { getAllDataObjectsTimeStamps().addAll(values); } return this; } public SignedDataObjectProperties withIndividualDataObjectsTimeStamps(XAdESTimeStampType... values) { if (values!= null) { for (XAdESTimeStampType value: values) { getIndividualDataObjectsTimeStamps().add(value); } } return this; } public SignedDataObjectProperties withIndividualDataObjectsTimeStamps(Collection values) { if (values!= null) { getIndividualDataObjectsTimeStamps().addAll(values); } return this; } public SignedDataObjectProperties withId(String value) { setId(value); return this; } public SignedDataObjectProperties withDataObjectFormats(List value) { setDataObjectFormats(value); return this; } public SignedDataObjectProperties withCommitmentTypeIndications(List value) { setCommitmentTypeIndications(value); return this; } public SignedDataObjectProperties withAllDataObjectsTimeStamps(List value) { setAllDataObjectsTimeStamps(value); return this; } public SignedDataObjectProperties withIndividualDataObjectsTimeStamps(List value) { setIndividualDataObjectsTimeStamps(value); return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy