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

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

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.11.16 at 09:22:53 AM 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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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 CommitmentTypeIndicationType complex type. * *

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

 * <complexType name="CommitmentTypeIndicationType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="CommitmentTypeId" type="{http://uri.etsi.org/01903/v1.3.2#}ObjectIdentifierType"/>
 *         <choice>
 *           <element name="ObjectReference" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded"/>
 *           <element name="AllSignedDataObjects" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
 *         </choice>
 *         <element name="CommitmentTypeQualifiers" type="{http://uri.etsi.org/01903/v1.3.2#}CommitmentTypeQualifiersListType" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CommitmentTypeIndicationType", propOrder = { "commitmentTypeId", "allSignedDataObjects", "objectReferences", "commitmentTypeQualifiers" }) @XmlRootElement(name = "CommitmentTypeIndication") public class CommitmentTypeIndication implements Equals2, HashCode2, ToString2 { @XmlElement(name = "CommitmentTypeId", required = true) protected ObjectIdentifier commitmentTypeId; @XmlElement(name = "AllSignedDataObjects") protected Object allSignedDataObjects; @XmlElement(name = "ObjectReference") @XmlSchemaType(name = "anyURI") protected List objectReferences; @XmlElement(name = "CommitmentTypeQualifiers") protected CommitmentTypeQualifiersListType commitmentTypeQualifiers; /** * Default no-arg constructor * */ public CommitmentTypeIndication() { super(); } /** * Fully-initialising value constructor * */ public CommitmentTypeIndication(final ObjectIdentifier commitmentTypeId, final Object allSignedDataObjects, final List objectReferences, final CommitmentTypeQualifiersListType commitmentTypeQualifiers) { this.commitmentTypeId = commitmentTypeId; this.allSignedDataObjects = allSignedDataObjects; this.objectReferences = objectReferences; this.commitmentTypeQualifiers = commitmentTypeQualifiers; } /** * Gets the value of the commitmentTypeId property. * * @return * possible object is * {@link ObjectIdentifier } * */ public ObjectIdentifier getCommitmentTypeId() { return commitmentTypeId; } /** * Sets the value of the commitmentTypeId property. * * @param value * allowed object is * {@link ObjectIdentifier } * */ public void setCommitmentTypeId(ObjectIdentifier value) { this.commitmentTypeId = value; } /** * Gets the value of the allSignedDataObjects property. * * @return * possible object is * {@link Object } * */ public Object getAllSignedDataObjects() { return allSignedDataObjects; } /** * Sets the value of the allSignedDataObjects property. * * @param value * allowed object is * {@link Object } * */ public void setAllSignedDataObjects(Object value) { this.allSignedDataObjects = value; } /** * Gets the value of the objectReferences 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 objectReferences property. * *

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

     *    getObjectReferences().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getObjectReferences() { if (objectReferences == null) { objectReferences = new ArrayList(); } return this.objectReferences; } /** * Gets the value of the commitmentTypeQualifiers property. * * @return * possible object is * {@link CommitmentTypeQualifiersListType } * */ public CommitmentTypeQualifiersListType getCommitmentTypeQualifiers() { return commitmentTypeQualifiers; } /** * Sets the value of the commitmentTypeQualifiers property. * * @param value * allowed object is * {@link CommitmentTypeQualifiersListType } * */ public void setCommitmentTypeQualifiers(CommitmentTypeQualifiersListType value) { this.commitmentTypeQualifiers = value; } public void setObjectReferences(List value) { this.objectReferences = null; if (value!= null) { List draftl = this.getObjectReferences(); draftl.addAll(value); } } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; 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) { { ObjectIdentifier theCommitmentTypeId; theCommitmentTypeId = this.getCommitmentTypeId(); strategy.appendField(locator, this, "commitmentTypeId", buffer, theCommitmentTypeId, (this.commitmentTypeId!= null)); } { Object theAllSignedDataObjects; theAllSignedDataObjects = this.getAllSignedDataObjects(); strategy.appendField(locator, this, "allSignedDataObjects", buffer, theAllSignedDataObjects, (this.allSignedDataObjects!= null)); } { List theObjectReferences; theObjectReferences = (((this.objectReferences!= null)&&(!this.objectReferences.isEmpty()))?this.getObjectReferences():null); strategy.appendField(locator, this, "objectReferences", buffer, theObjectReferences, ((this.objectReferences!= null)&&(!this.objectReferences.isEmpty()))); } { CommitmentTypeQualifiersListType theCommitmentTypeQualifiers; theCommitmentTypeQualifiers = this.getCommitmentTypeQualifiers(); strategy.appendField(locator, this, "commitmentTypeQualifiers", buffer, theCommitmentTypeQualifiers, (this.commitmentTypeQualifiers!= 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 CommitmentTypeIndication that = ((CommitmentTypeIndication) object); { ObjectIdentifier lhsCommitmentTypeId; lhsCommitmentTypeId = this.getCommitmentTypeId(); ObjectIdentifier rhsCommitmentTypeId; rhsCommitmentTypeId = that.getCommitmentTypeId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "commitmentTypeId", lhsCommitmentTypeId), LocatorUtils.property(thatLocator, "commitmentTypeId", rhsCommitmentTypeId), lhsCommitmentTypeId, rhsCommitmentTypeId, (this.commitmentTypeId!= null), (that.commitmentTypeId!= null))) { return false; } } { Object lhsAllSignedDataObjects; lhsAllSignedDataObjects = this.getAllSignedDataObjects(); Object rhsAllSignedDataObjects; rhsAllSignedDataObjects = that.getAllSignedDataObjects(); if (!strategy.equals(LocatorUtils.property(thisLocator, "allSignedDataObjects", lhsAllSignedDataObjects), LocatorUtils.property(thatLocator, "allSignedDataObjects", rhsAllSignedDataObjects), lhsAllSignedDataObjects, rhsAllSignedDataObjects, (this.allSignedDataObjects!= null), (that.allSignedDataObjects!= null))) { return false; } } { List lhsObjectReferences; lhsObjectReferences = (((this.objectReferences!= null)&&(!this.objectReferences.isEmpty()))?this.getObjectReferences():null); List rhsObjectReferences; rhsObjectReferences = (((that.objectReferences!= null)&&(!that.objectReferences.isEmpty()))?that.getObjectReferences():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "objectReferences", lhsObjectReferences), LocatorUtils.property(thatLocator, "objectReferences", rhsObjectReferences), lhsObjectReferences, rhsObjectReferences, ((this.objectReferences!= null)&&(!this.objectReferences.isEmpty())), ((that.objectReferences!= null)&&(!that.objectReferences.isEmpty())))) { return false; } } { CommitmentTypeQualifiersListType lhsCommitmentTypeQualifiers; lhsCommitmentTypeQualifiers = this.getCommitmentTypeQualifiers(); CommitmentTypeQualifiersListType rhsCommitmentTypeQualifiers; rhsCommitmentTypeQualifiers = that.getCommitmentTypeQualifiers(); if (!strategy.equals(LocatorUtils.property(thisLocator, "commitmentTypeQualifiers", lhsCommitmentTypeQualifiers), LocatorUtils.property(thatLocator, "commitmentTypeQualifiers", rhsCommitmentTypeQualifiers), lhsCommitmentTypeQualifiers, rhsCommitmentTypeQualifiers, (this.commitmentTypeQualifiers!= null), (that.commitmentTypeQualifiers!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { ObjectIdentifier theCommitmentTypeId; theCommitmentTypeId = this.getCommitmentTypeId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "commitmentTypeId", theCommitmentTypeId), currentHashCode, theCommitmentTypeId, (this.commitmentTypeId!= null)); } { Object theAllSignedDataObjects; theAllSignedDataObjects = this.getAllSignedDataObjects(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allSignedDataObjects", theAllSignedDataObjects), currentHashCode, theAllSignedDataObjects, (this.allSignedDataObjects!= null)); } { List theObjectReferences; theObjectReferences = (((this.objectReferences!= null)&&(!this.objectReferences.isEmpty()))?this.getObjectReferences():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "objectReferences", theObjectReferences), currentHashCode, theObjectReferences, ((this.objectReferences!= null)&&(!this.objectReferences.isEmpty()))); } { CommitmentTypeQualifiersListType theCommitmentTypeQualifiers; theCommitmentTypeQualifiers = this.getCommitmentTypeQualifiers(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "commitmentTypeQualifiers", theCommitmentTypeQualifiers), currentHashCode, theCommitmentTypeQualifiers, (this.commitmentTypeQualifiers!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public CommitmentTypeIndication withCommitmentTypeId(ObjectIdentifier value) { setCommitmentTypeId(value); return this; } public CommitmentTypeIndication withAllSignedDataObjects(Object value) { setAllSignedDataObjects(value); return this; } public CommitmentTypeIndication withObjectReferences(String... values) { if (values!= null) { for (String value: values) { getObjectReferences().add(value); } } return this; } public CommitmentTypeIndication withObjectReferences(Collection values) { if (values!= null) { getObjectReferences().addAll(values); } return this; } public CommitmentTypeIndication withCommitmentTypeQualifiers(CommitmentTypeQualifiersListType value) { setCommitmentTypeQualifiers(value); return this; } public CommitmentTypeIndication withObjectReferences(List value) { setObjectReferences(value); return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy