org.unece.cefact.namespaces.sbdh.DocumentIdentification Maven / Gradle / Ivy
package org.unece.cefact.namespaces.sbdh;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.helger.commons.annotation.CodingStyleguideUnaware;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.datetime.XMLOffsetDateTime;
import com.helger.commons.equals.EqualsHelper;
import com.helger.commons.hashcode.HashCodeGenerator;
import com.helger.commons.lang.IExplicitlyCloneable;
import com.helger.commons.string.ToStringGenerator;
import com.helger.jaxb.adapter.AdapterXMLOffsetDateTime;
/**
* Java class for DocumentIdentification complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DocumentIdentification">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Standard" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="TypeVersion" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="InstanceIdentifier" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="MultipleType" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="CreationDateAndTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
* This class was annotated by ph-jaxb22-plugin -Xph-annotate
* This class contains methods created by ph-jaxb22-plugin -Xph-equalshashcode
* This class contains methods created by ph-jaxb22-plugin -Xph-tostring
* This class contains methods created by ph-jaxb22-plugin -Xph-cloneable2
* This class contains methods created by ph-jaxb22-plugin -Xph-value-extender
* This class contains methods created by ph-jaxb22-plugin -Xph-offset-dt-extension
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DocumentIdentification", propOrder = {
"standard",
"typeVersion",
"instanceIdentifier",
"type",
"multipleType",
"creationDateAndTime"
})
@CodingStyleguideUnaware
public class DocumentIdentification implements Serializable, IExplicitlyCloneable
{
@XmlElement(name = "Standard", required = true)
private String standard;
@XmlElement(name = "TypeVersion", required = true)
private String typeVersion;
@XmlElement(name = "InstanceIdentifier", required = true)
private String instanceIdentifier;
@XmlElement(name = "Type", required = true)
private String type;
@XmlElement(name = "MultipleType")
private Boolean multipleType;
@XmlElement(name = "CreationDateAndTime", required = true, type = String.class)
@XmlJavaTypeAdapter(AdapterXMLOffsetDateTime.class)
@XmlSchemaType(name = "dateTime")
private XMLOffsetDateTime creationDateAndTime;
/**
* Default constructor
* Note: automatically created by ph-jaxb22-plugin -Xph-value-extender
*
*/
public DocumentIdentification() {
}
/**
* Gets the value of the standard property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getStandard() {
return standard;
}
/**
* Sets the value of the standard property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandard(
@Nullable
String value) {
this.standard = value;
}
/**
* Gets the value of the typeVersion property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getTypeVersion() {
return typeVersion;
}
/**
* Sets the value of the typeVersion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTypeVersion(
@Nullable
String value) {
this.typeVersion = value;
}
/**
* Gets the value of the instanceIdentifier property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getInstanceIdentifier() {
return instanceIdentifier;
}
/**
* Sets the value of the instanceIdentifier property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstanceIdentifier(
@Nullable
String value) {
this.instanceIdentifier = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(
@Nullable
String value) {
this.type = value;
}
/**
* Gets the value of the multipleType property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isMultipleType() {
return multipleType;
}
/**
* Sets the value of the multipleType property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setMultipleType(
@Nullable
Boolean value) {
this.multipleType = value;
}
/**
* Gets the value of the creationDateAndTime property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public XMLOffsetDateTime getCreationDateAndTime() {
return creationDateAndTime;
}
/**
* Sets the value of the creationDateAndTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCreationDateAndTime(
@Nullable
XMLOffsetDateTime value) {
this.creationDateAndTime = value;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public boolean equals(final Object o) {
if (o == this) {
return true;
}
if ((o == null)||(!getClass().equals(o.getClass()))) {
return false;
}
final DocumentIdentification rhs = ((DocumentIdentification) o);
if (!EqualsHelper.equals(creationDateAndTime, rhs.creationDateAndTime)) {
return false;
}
if (!EqualsHelper.equals(instanceIdentifier, rhs.instanceIdentifier)) {
return false;
}
if (!EqualsHelper.equals(multipleType, rhs.multipleType)) {
return false;
}
if (!EqualsHelper.equals(standard, rhs.standard)) {
return false;
}
if (!EqualsHelper.equals(type, rhs.type)) {
return false;
}
if (!EqualsHelper.equals(typeVersion, rhs.typeVersion)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(creationDateAndTime).append(instanceIdentifier).append(multipleType).append(standard).append(type).append(typeVersion).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("creationDateAndTime", creationDateAndTime).append("instanceIdentifier", instanceIdentifier).append("multipleType", multipleType).append("standard", standard).append("type", type).append("typeVersion", typeVersion).getToString();
}
/**
* This method clones all values from this
to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2
*
* @param ret
* The target object to clone to. May not be null
.
*/
public void cloneTo(
@Nonnull
DocumentIdentification ret) {
ret.creationDateAndTime = creationDateAndTime;
ret.instanceIdentifier = instanceIdentifier;
ret.multipleType = multipleType;
ret.standard = standard;
ret.type = type;
ret.typeVersion = typeVersion;
}
/**
* Created by ph-jaxb22-plugin -Xph-cloneable2
*
* @return
* The cloned object. Never null
.
*/
@Nonnull
@ReturnsMutableCopy
@Override
public DocumentIdentification clone() {
DocumentIdentification ret = new DocumentIdentification();
cloneTo(ret);
return ret;
}
/**
* Created by ph-jaxb22-plugin -Xph-offset-dt-extension
*
* @return
* The LocalDateTime representation of creationDateAndTime. May be null
.
*/
@Nullable
public LocalDateTime getCreationDateAndTimeLocal() {
return (creationDateAndTime == null)?null:creationDateAndTime.toLocalDateTime();
}
/**
* Created by ph-jaxb22-plugin -Xph-offset-dt-extension
*
* @param aValue
* The LocalDateTime to set. May be null
.
*/
public void setCreationDateAndTime(
@Nullable
final LocalDateTime aValue) {
creationDateAndTime = (aValue == null)?null:XMLOffsetDateTime.of(aValue, null);
}
}