
org.etsi.uri._01903.v1_3.SignedDataObjectProperties Maven / Gradle / Ivy
Show all versions of sdp-xsd Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
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.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString
{
@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;
List draftl = this.getDataObjectFormats();
draftl.addAll(value);
}
public void setCommitmentTypeIndications(List value) {
this.commitmentTypeIndications = null;
List draftl = this.getCommitmentTypeIndications();
draftl.addAll(value);
}
public void setAllDataObjectsTimeStamps(List value) {
this.allDataObjectsTimeStamps = null;
List draftl = this.getAllDataObjectsTimeStamps();
draftl.addAll(value);
}
public void setIndividualDataObjectsTimeStamps(List value) {
this.individualDataObjectsTimeStamps = null;
List draftl = this.getIndividualDataObjectsTimeStamps();
draftl.addAll(value);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
List theDataObjectFormats;
theDataObjectFormats = (((this.dataObjectFormats!= null)&&(!this.dataObjectFormats.isEmpty()))?this.getDataObjectFormats():null);
strategy.appendField(locator, this, "dataObjectFormats", buffer, theDataObjectFormats);
}
{
List theCommitmentTypeIndications;
theCommitmentTypeIndications = (((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))?this.getCommitmentTypeIndications():null);
strategy.appendField(locator, this, "commitmentTypeIndications", buffer, theCommitmentTypeIndications);
}
{
List theAllDataObjectsTimeStamps;
theAllDataObjectsTimeStamps = (((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))?this.getAllDataObjectsTimeStamps():null);
strategy.appendField(locator, this, "allDataObjectsTimeStamps", buffer, theAllDataObjectsTimeStamps);
}
{
List theIndividualDataObjectsTimeStamps;
theIndividualDataObjectsTimeStamps = (((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))?this.getIndividualDataObjectsTimeStamps():null);
strategy.appendField(locator, this, "individualDataObjectsTimeStamps", buffer, theIndividualDataObjectsTimeStamps);
}
{
String theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SignedDataObjectProperties)) {
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)) {
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)) {
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)) {
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)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy 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);
}
{
List theCommitmentTypeIndications;
theCommitmentTypeIndications = (((this.commitmentTypeIndications!= null)&&(!this.commitmentTypeIndications.isEmpty()))?this.getCommitmentTypeIndications():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "commitmentTypeIndications", theCommitmentTypeIndications), currentHashCode, theCommitmentTypeIndications);
}
{
List theAllDataObjectsTimeStamps;
theAllDataObjectsTimeStamps = (((this.allDataObjectsTimeStamps!= null)&&(!this.allDataObjectsTimeStamps.isEmpty()))?this.getAllDataObjectsTimeStamps():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allDataObjectsTimeStamps", theAllDataObjectsTimeStamps), currentHashCode, theAllDataObjectsTimeStamps);
}
{
List theIndividualDataObjectsTimeStamps;
theIndividualDataObjectsTimeStamps = (((this.individualDataObjectsTimeStamps!= null)&&(!this.individualDataObjectsTimeStamps.isEmpty()))?this.getIndividualDataObjectsTimeStamps():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "individualDataObjectsTimeStamps", theIndividualDataObjectsTimeStamps), currentHashCode, theIndividualDataObjectsTimeStamps);
}
{
String theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
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;
}
}