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

org.unece.cefact.namespaces.sbdh.StandardBusinessDocument Maven / Gradle / Ivy


package org.unece.cefact.namespaces.sbdh;

import java.io.Serializable;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.helger.commons.annotation.CodingStyleguideUnaware;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.equals.EqualsHelper;
import com.helger.commons.hashcode.HashCodeGenerator;
import com.helger.commons.string.ToStringGenerator;
import org.w3c.dom.Element;


/**
 * 

Java class for StandardBusinessDocument complex type. * *

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

 * <complexType name="StandardBusinessDocument">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}StandardBusinessDocumentHeader" minOccurs="0"/>
 *         <any processContents='lax' namespace='##other'/>
 *       </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-cloneable

* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StandardBusinessDocument", propOrder = { "standardBusinessDocumentHeader", "any" }) @CodingStyleguideUnaware public class StandardBusinessDocument implements Serializable, Cloneable { @XmlElement(name = "StandardBusinessDocumentHeader") private StandardBusinessDocumentHeader standardBusinessDocumentHeader; @XmlAnyElement(lax = true) private Object any; /** * Gets the value of the standardBusinessDocumentHeader property. * * @return * possible object is * {@link StandardBusinessDocumentHeader } * */ @Nullable public StandardBusinessDocumentHeader getStandardBusinessDocumentHeader() { return standardBusinessDocumentHeader; } /** * Sets the value of the standardBusinessDocumentHeader property. * * @param value * allowed object is * {@link StandardBusinessDocumentHeader } * */ public void setStandardBusinessDocumentHeader( @Nullable StandardBusinessDocumentHeader value) { this.standardBusinessDocumentHeader = value; } /** * Gets the value of the any property. * * @return * possible object is * {@link Object } * {@link Element } * */ @Nullable public Object getAny() { return any; } /** * Sets the value of the any property. * * @param value * allowed object is * {@link Object } * {@link Element } * */ public void setAny( @Nullable Object value) { this.any = 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 StandardBusinessDocument rhs = ((StandardBusinessDocument) o); if (!EqualsHelper.equals(standardBusinessDocumentHeader, rhs.standardBusinessDocumentHeader)) { return false; } if (!EqualsHelper.equals(any, rhs.any)) { return false; } return true; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(standardBusinessDocumentHeader).append(any).getHashCode(); } /** * Created by ph-jaxb22-plugin -Xph-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("standardBusinessDocumentHeader", standardBusinessDocumentHeader).append("any", any).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-cloneable * * @param ret * The target object to clone to. May not be null. */ public void cloneTo( @Nonnull StandardBusinessDocument ret) { ret.any = any; ret.standardBusinessDocumentHeader = ((standardBusinessDocumentHeader == null)?null:standardBusinessDocumentHeader.clone()); } /** * Created by ph-jaxb22-plugin -Xph-cloneable * * @return * The cloned object. Never null. */ @Nonnull @ReturnsMutableCopy @Override public StandardBusinessDocument clone() { StandardBusinessDocument ret = new StandardBusinessDocument(); cloneTo(ret); return ret; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy