
org.unece.cefact.namespaces.standardbusinessdocumentheader.DocumentIdentification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// 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.unece.cefact.namespaces.standardbusinessdocumentheader;
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 no.digipost.xsd.jaxb.XSDateTimeAdapter;
import org.joda.time.DateTime;
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 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DocumentIdentification", propOrder = {
"standard",
"typeVersion",
"instanceIdentifier",
"type",
"multipleType",
"creationDateAndTime"
})
public class DocumentIdentification implements Equals, HashCode, ToString
{
@XmlElement(name = "Standard", required = true)
protected String standard;
@XmlElement(name = "TypeVersion", required = true)
protected String typeVersion;
@XmlElement(name = "InstanceIdentifier", required = true)
protected String instanceIdentifier;
@XmlElement(name = "Type", required = true)
protected String type;
@XmlElement(name = "MultipleType")
protected Boolean multipleType;
@XmlElement(name = "CreationDateAndTime", required = true, type = String.class)
@XmlJavaTypeAdapter(XSDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected DateTime creationDateAndTime;
/**
* Default no-arg constructor
*
*/
public DocumentIdentification() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public DocumentIdentification(final String standard, final String typeVersion, final String instanceIdentifier, final String type, final Boolean multipleType, final DateTime creationDateAndTime) {
this.standard = standard;
this.typeVersion = typeVersion;
this.instanceIdentifier = instanceIdentifier;
this.type = type;
this.multipleType = multipleType;
this.creationDateAndTime = creationDateAndTime;
}
/**
* Gets the value of the standard property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStandard() {
return standard;
}
/**
* Sets the value of the standard property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStandard(String value) {
this.standard = value;
}
/**
* Gets the value of the typeVersion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTypeVersion() {
return typeVersion;
}
/**
* Sets the value of the typeVersion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTypeVersion(String value) {
this.typeVersion = value;
}
/**
* Gets the value of the instanceIdentifier property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInstanceIdentifier() {
return instanceIdentifier;
}
/**
* Sets the value of the instanceIdentifier property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstanceIdentifier(String value) {
this.instanceIdentifier = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the multipleType property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getMultipleType() {
return multipleType;
}
/**
* Sets the value of the multipleType property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setMultipleType(Boolean value) {
this.multipleType = value;
}
/**
* Gets the value of the creationDateAndTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public DateTime getCreationDateAndTime() {
return creationDateAndTime;
}
/**
* Sets the value of the creationDateAndTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCreationDateAndTime(DateTime value) {
this.creationDateAndTime = 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) {
{
String theStandard;
theStandard = this.getStandard();
strategy.appendField(locator, this, "standard", buffer, theStandard);
}
{
String theTypeVersion;
theTypeVersion = this.getTypeVersion();
strategy.appendField(locator, this, "typeVersion", buffer, theTypeVersion);
}
{
String theInstanceIdentifier;
theInstanceIdentifier = this.getInstanceIdentifier();
strategy.appendField(locator, this, "instanceIdentifier", buffer, theInstanceIdentifier);
}
{
String theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType);
}
{
Boolean theMultipleType;
theMultipleType = this.getMultipleType();
strategy.appendField(locator, this, "multipleType", buffer, theMultipleType);
}
{
DateTime theCreationDateAndTime;
theCreationDateAndTime = this.getCreationDateAndTime();
strategy.appendField(locator, this, "creationDateAndTime", buffer, theCreationDateAndTime);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof DocumentIdentification)) {
return false;
}
if (this == object) {
return true;
}
final DocumentIdentification that = ((DocumentIdentification) object);
{
String lhsStandard;
lhsStandard = this.getStandard();
String rhsStandard;
rhsStandard = that.getStandard();
if (!strategy.equals(LocatorUtils.property(thisLocator, "standard", lhsStandard), LocatorUtils.property(thatLocator, "standard", rhsStandard), lhsStandard, rhsStandard)) {
return false;
}
}
{
String lhsTypeVersion;
lhsTypeVersion = this.getTypeVersion();
String rhsTypeVersion;
rhsTypeVersion = that.getTypeVersion();
if (!strategy.equals(LocatorUtils.property(thisLocator, "typeVersion", lhsTypeVersion), LocatorUtils.property(thatLocator, "typeVersion", rhsTypeVersion), lhsTypeVersion, rhsTypeVersion)) {
return false;
}
}
{
String lhsInstanceIdentifier;
lhsInstanceIdentifier = this.getInstanceIdentifier();
String rhsInstanceIdentifier;
rhsInstanceIdentifier = that.getInstanceIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "instanceIdentifier", lhsInstanceIdentifier), LocatorUtils.property(thatLocator, "instanceIdentifier", rhsInstanceIdentifier), lhsInstanceIdentifier, rhsInstanceIdentifier)) {
return false;
}
}
{
String lhsType;
lhsType = this.getType();
String rhsType;
rhsType = that.getType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) {
return false;
}
}
{
Boolean lhsMultipleType;
lhsMultipleType = this.getMultipleType();
Boolean rhsMultipleType;
rhsMultipleType = that.getMultipleType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "multipleType", lhsMultipleType), LocatorUtils.property(thatLocator, "multipleType", rhsMultipleType), lhsMultipleType, rhsMultipleType)) {
return false;
}
}
{
DateTime lhsCreationDateAndTime;
lhsCreationDateAndTime = this.getCreationDateAndTime();
DateTime rhsCreationDateAndTime;
rhsCreationDateAndTime = that.getCreationDateAndTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "creationDateAndTime", lhsCreationDateAndTime), LocatorUtils.property(thatLocator, "creationDateAndTime", rhsCreationDateAndTime), lhsCreationDateAndTime, rhsCreationDateAndTime)) {
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;
{
String theStandard;
theStandard = this.getStandard();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "standard", theStandard), currentHashCode, theStandard);
}
{
String theTypeVersion;
theTypeVersion = this.getTypeVersion();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "typeVersion", theTypeVersion), currentHashCode, theTypeVersion);
}
{
String theInstanceIdentifier;
theInstanceIdentifier = this.getInstanceIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "instanceIdentifier", theInstanceIdentifier), currentHashCode, theInstanceIdentifier);
}
{
String theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
}
{
Boolean theMultipleType;
theMultipleType = this.getMultipleType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "multipleType", theMultipleType), currentHashCode, theMultipleType);
}
{
DateTime theCreationDateAndTime;
theCreationDateAndTime = this.getCreationDateAndTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "creationDateAndTime", theCreationDateAndTime), currentHashCode, theCreationDateAndTime);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public DocumentIdentification withStandard(String value) {
setStandard(value);
return this;
}
public DocumentIdentification withTypeVersion(String value) {
setTypeVersion(value);
return this;
}
public DocumentIdentification withInstanceIdentifier(String value) {
setInstanceIdentifier(value);
return this;
}
public DocumentIdentification withType(String value) {
setType(value);
return this;
}
public DocumentIdentification withMultipleType(Boolean value) {
setMultipleType(value);
return this;
}
public DocumentIdentification withCreationDateAndTime(DateTime value) {
setCreationDateAndTime(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy