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

un.unece.uncefact.data.specification.corecomponenttypeschemamodule._2.CodeType Maven / Gradle / Ivy


package un.unece.uncefact.data.specification.corecomponenttypeschemamodule._2;

import java.io.Serializable;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;


/**
 * 
 * 
 * <?xml version="1.0" encoding="UTF-8"?><ccts:UniqueID xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">UNDT000007</ccts:UniqueID>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:CategoryCode xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">CCT</ccts:CategoryCode>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:DictionaryEntryName xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Code. Type</ccts:DictionaryEntryName>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:VersionID xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">1.0</ccts:VersionID>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:Definition xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">A character string (letters, figures, or symbols) that for brevity and/or languange independence may be used to represent or replace a definitive value or text of an attribute together with relevant supplementary information.</ccts:Definition>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:RepresentationTermName xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Code</ccts:RepresentationTermName>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:PrimitiveType xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">string</ccts:PrimitiveType>
 * 
* *
 * <?xml version="1.0" encoding="UTF-8"?><ccts:UsageRule xmlns:ccts="urn:un:unece:uncefact:documentation:2" xmlns:cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">Should not be used if the character string identifies an instance of an object class or an object in the real world, in which case the Identifier. Type should be used.</ccts:UsageRule>
 * 
* * *

Java class for CodeType complex type. * *

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

 * <complexType name="CodeType">
 *   <simpleContent>
 *     <extension base="<http://www.w3.org/2001/XMLSchema>normalizedString">
 *       <attribute name="listID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
 *       <attribute name="listAgencyID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
 *       <attribute name="listAgencyName" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="listName" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="listVersionID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
 *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="languageID" type="{http://www.w3.org/2001/XMLSchema}language" />
 *       <attribute name="listURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="listSchemeURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CodeType", propOrder = { "value" }) public class CodeType implements Serializable { @XmlValue @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") private String value; @XmlAttribute(name = "listID") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") private String listID; @XmlAttribute(name = "listAgencyID") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") private String listAgencyID; @XmlAttribute(name = "listAgencyName") private String listAgencyName; @XmlAttribute(name = "listName") private String listName; @XmlAttribute(name = "listVersionID") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") private String listVersionID; @XmlAttribute(name = "name") private String name; @XmlAttribute(name = "languageID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") private String languageID; @XmlAttribute(name = "listURI") @XmlSchemaType(name = "anyURI") private String listURI; @XmlAttribute(name = "listSchemeURI") @XmlSchemaType(name = "anyURI") private String listSchemeURI; /** * Default constructor * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * */ public CodeType() { } /** * Constructor for value of type String * Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value * * @param valueParam * The value to be set. May be null. */ public CodeType( @Nullable final String valueParam) { setValue(valueParam); } /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ @Nullable public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue( @Nullable String valueParam) { this.value = valueParam; } /** * Gets the value of the listID property. * * @return * possible object is * {@link String } * */ @Nullable public String getListID() { return listID; } /** * Sets the value of the listID property. * * @param value * allowed object is * {@link String } * */ public void setListID( @Nullable String valueParam) { this.listID = valueParam; } /** * Gets the value of the listAgencyID property. * * @return * possible object is * {@link String } * */ @Nullable public String getListAgencyID() { return listAgencyID; } /** * Sets the value of the listAgencyID property. * * @param value * allowed object is * {@link String } * */ public void setListAgencyID( @Nullable String valueParam) { this.listAgencyID = valueParam; } /** * Gets the value of the listAgencyName property. * * @return * possible object is * {@link String } * */ @Nullable public String getListAgencyName() { return listAgencyName; } /** * Sets the value of the listAgencyName property. * * @param value * allowed object is * {@link String } * */ public void setListAgencyName( @Nullable String valueParam) { this.listAgencyName = valueParam; } /** * Gets the value of the listName property. * * @return * possible object is * {@link String } * */ @Nullable public String getListName() { return listName; } /** * Sets the value of the listName property. * * @param value * allowed object is * {@link String } * */ public void setListName( @Nullable String valueParam) { this.listName = valueParam; } /** * Gets the value of the listVersionID property. * * @return * possible object is * {@link String } * */ @Nullable public String getListVersionID() { return listVersionID; } /** * Sets the value of the listVersionID property. * * @param value * allowed object is * {@link String } * */ public void setListVersionID( @Nullable String valueParam) { this.listVersionID = valueParam; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ @Nullable public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName( @Nullable String valueParam) { this.name = valueParam; } /** * Gets the value of the languageID property. * * @return * possible object is * {@link String } * */ @Nullable public String getLanguageID() { return languageID; } /** * Sets the value of the languageID property. * * @param value * allowed object is * {@link String } * */ public void setLanguageID( @Nullable String valueParam) { this.languageID = valueParam; } /** * Gets the value of the listURI property. * * @return * possible object is * {@link String } * */ @Nullable public String getListURI() { return listURI; } /** * Sets the value of the listURI property. * * @param value * allowed object is * {@link String } * */ public void setListURI( @Nullable String valueParam) { this.listURI = valueParam; } /** * Gets the value of the listSchemeURI property. * * @return * possible object is * {@link String } * */ @Nullable public String getListSchemeURI() { return listSchemeURI; } /** * Sets the value of the listSchemeURI property. * * @param value * allowed object is * {@link String } * */ public void setListSchemeURI( @Nullable String valueParam) { this.listSchemeURI = valueParam; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public boolean equals(final Object o) { if (o == this) { return true; } if ((o == null)||(!getClass().equals(o.getClass()))) { return false; } final CodeType rhs = ((CodeType) o); if (!EqualsUtils.equals(value, rhs.value)) { return false; } if (!EqualsUtils.equals(listID, rhs.listID)) { return false; } if (!EqualsUtils.equals(listAgencyID, rhs.listAgencyID)) { return false; } if (!EqualsUtils.equals(listAgencyName, rhs.listAgencyName)) { return false; } if (!EqualsUtils.equals(listName, rhs.listName)) { return false; } if (!EqualsUtils.equals(listVersionID, rhs.listVersionID)) { return false; } if (!EqualsUtils.equals(name, rhs.name)) { return false; } if (!EqualsUtils.equals(languageID, rhs.languageID)) { return false; } if (!EqualsUtils.equals(listURI, rhs.listURI)) { return false; } if (!EqualsUtils.equals(listSchemeURI, rhs.listSchemeURI)) { return false; } return true; } /** * Created by phloc-jaxb22-plugin -Xphloc-equalshashcode * */ @Override public int hashCode() { return new HashCodeGenerator(this).append(value).append(listID).append(listAgencyID).append(listAgencyName).append(listName).append(listVersionID).append(name).append(languageID).append(listURI).append(listSchemeURI).getHashCode(); } /** * Created by phloc-jaxb22-plugin -Xphloc-tostring * */ @Override public String toString() { return new ToStringGenerator(this).append("value", value).append("listID", listID).append("listAgencyID", listAgencyID).append("listAgencyName", listAgencyName).append("listName", listName).append("listVersionID", listVersionID).append("name", name).append("languageID", languageID).append("listURI", listURI).append("listSchemeURI", listSchemeURI).toString(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy