com.helger.genericode.v04.InputCodeList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ph-genericode Show documentation
Show all versions of ph-genericode Show documentation
Library to read and write OASIS GeneriCode and CVA documents
package com.helger.genericode.v04;
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.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;
/**
* Input code list for a code list filter or union.
*
* Java class for InputCodeList complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="InputCodeList">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <group ref="{http://genericode.org/2006/ns/CodeList/0.4/}InnerCodeListChoice"/>
* </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 = "InputCodeList", propOrder = {
"simpleCodeList",
"derivedCodeList",
"codeListRef"
})
@CodingStyleguideUnaware
public class InputCodeList implements Serializable, Cloneable
{
@XmlElement(name = "SimpleCodeList")
private SimpleCodeList simpleCodeList;
@XmlElement(name = "DerivedCodeList")
private DerivedCodeList derivedCodeList;
@XmlElement(name = "CodeListRef")
private CodeListRef codeListRef;
/**
* Gets the value of the simpleCodeList property.
*
* @return
* possible object is
* {@link SimpleCodeList }
*
*/
@Nullable
public SimpleCodeList getSimpleCodeList() {
return simpleCodeList;
}
/**
* Sets the value of the simpleCodeList property.
*
* @param value
* allowed object is
* {@link SimpleCodeList }
*
*/
public void setSimpleCodeList(
@Nullable
SimpleCodeList value) {
this.simpleCodeList = value;
}
/**
* Gets the value of the derivedCodeList property.
*
* @return
* possible object is
* {@link DerivedCodeList }
*
*/
@Nullable
public DerivedCodeList getDerivedCodeList() {
return derivedCodeList;
}
/**
* Sets the value of the derivedCodeList property.
*
* @param value
* allowed object is
* {@link DerivedCodeList }
*
*/
public void setDerivedCodeList(
@Nullable
DerivedCodeList value) {
this.derivedCodeList = value;
}
/**
* Gets the value of the codeListRef property.
*
* @return
* possible object is
* {@link CodeListRef }
*
*/
@Nullable
public CodeListRef getCodeListRef() {
return codeListRef;
}
/**
* Sets the value of the codeListRef property.
*
* @param value
* allowed object is
* {@link CodeListRef }
*
*/
public void setCodeListRef(
@Nullable
CodeListRef value) {
this.codeListRef = 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 InputCodeList rhs = ((InputCodeList) o);
if (!EqualsHelper.equals(simpleCodeList, rhs.simpleCodeList)) {
return false;
}
if (!EqualsHelper.equals(derivedCodeList, rhs.derivedCodeList)) {
return false;
}
if (!EqualsHelper.equals(codeListRef, rhs.codeListRef)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(simpleCodeList).append(derivedCodeList).append(codeListRef).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("simpleCodeList", simpleCodeList).append("derivedCodeList", derivedCodeList).append("codeListRef", codeListRef).toString();
}
/**
* 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
InputCodeList ret) {
ret.codeListRef = ((codeListRef == null)?null:codeListRef.clone());
ret.derivedCodeList = ((derivedCodeList == null)?null:derivedCodeList.clone());
ret.simpleCodeList = ((simpleCodeList == null)?null:simpleCodeList.clone());
}
/**
* Created by ph-jaxb22-plugin -Xph-cloneable
*
* @return
* The cloned object. Never null
.
*/
@Nonnull
@ReturnsMutableCopy
@Override
public InputCodeList clone() {
InputCodeList ret = new InputCodeList();
cloneTo(ret);
return ret;
}
}