un.unece.uncefact.data.specification.corecomponenttypeschemamodule._2.CodeType Maven / Gradle / Ivy
//
// 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.07.19 at 05:08:29 PM CEST
//
package un.unece.uncefact.data.specification.corecomponenttypeschemamodule._2;
import java.io.Serializable;
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.XmlSeeAlso;
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 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;
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><ccts:UniqueID xmlns:ccts="urn:un:unece:uncefact:documentation: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: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: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: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: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: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: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: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"
})
@XmlSeeAlso({
oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.CodeType.class
})
public class CodeType
implements Serializable, Equals, HashCode, ToString
{
private final static long serialVersionUID = 100L;
@XmlValue
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected String value;
@XmlAttribute(name = "listID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected String listID;
@XmlAttribute(name = "listAgencyID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected String listAgencyID;
@XmlAttribute(name = "listAgencyName")
protected String listAgencyName;
@XmlAttribute(name = "listName")
protected String listName;
@XmlAttribute(name = "listVersionID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected String listVersionID;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "languageID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String languageID;
@XmlAttribute(name = "listURI")
@XmlSchemaType(name = "anyURI")
protected String listURI;
@XmlAttribute(name = "listSchemeURI")
@XmlSchemaType(name = "anyURI")
protected String listSchemeURI;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the listID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListID() {
return listID;
}
/**
* Sets the value of the listID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListID(String value) {
this.listID = value;
}
/**
* Gets the value of the listAgencyID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListAgencyID() {
return listAgencyID;
}
/**
* Sets the value of the listAgencyID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListAgencyID(String value) {
this.listAgencyID = value;
}
/**
* Gets the value of the listAgencyName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListAgencyName() {
return listAgencyName;
}
/**
* Sets the value of the listAgencyName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListAgencyName(String value) {
this.listAgencyName = value;
}
/**
* Gets the value of the listName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListName() {
return listName;
}
/**
* Sets the value of the listName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListName(String value) {
this.listName = value;
}
/**
* Gets the value of the listVersionID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListVersionID() {
return listVersionID;
}
/**
* Sets the value of the listVersionID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListVersionID(String value) {
this.listVersionID = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the languageID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguageID() {
return languageID;
}
/**
* Sets the value of the languageID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguageID(String value) {
this.languageID = value;
}
/**
* Gets the value of the listURI property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListURI() {
return listURI;
}
/**
* Sets the value of the listURI property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListURI(String value) {
this.listURI = value;
}
/**
* Gets the value of the listSchemeURI property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getListSchemeURI() {
return listSchemeURI;
}
/**
* Sets the value of the listSchemeURI property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setListSchemeURI(String value) {
this.listSchemeURI = 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 theValue;
theValue = this.getValue();
strategy.appendField(locator, this, "value", buffer, theValue);
}
{
String theListID;
theListID = this.getListID();
strategy.appendField(locator, this, "listID", buffer, theListID);
}
{
String theListAgencyID;
theListAgencyID = this.getListAgencyID();
strategy.appendField(locator, this, "listAgencyID", buffer, theListAgencyID);
}
{
String theListAgencyName;
theListAgencyName = this.getListAgencyName();
strategy.appendField(locator, this, "listAgencyName", buffer, theListAgencyName);
}
{
String theListName;
theListName = this.getListName();
strategy.appendField(locator, this, "listName", buffer, theListName);
}
{
String theListVersionID;
theListVersionID = this.getListVersionID();
strategy.appendField(locator, this, "listVersionID", buffer, theListVersionID);
}
{
String theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName);
}
{
String theLanguageID;
theLanguageID = this.getLanguageID();
strategy.appendField(locator, this, "languageID", buffer, theLanguageID);
}
{
String theListURI;
theListURI = this.getListURI();
strategy.appendField(locator, this, "listURI", buffer, theListURI);
}
{
String theListSchemeURI;
theListSchemeURI = this.getListSchemeURI();
strategy.appendField(locator, this, "listSchemeURI", buffer, theListSchemeURI);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof CodeType)) {
return false;
}
if (this == object) {
return true;
}
final CodeType that = ((CodeType) object);
{
String lhsValue;
lhsValue = this.getValue();
String rhsValue;
rhsValue = that.getValue();
if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue)) {
return false;
}
}
{
String lhsListID;
lhsListID = this.getListID();
String rhsListID;
rhsListID = that.getListID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listID", lhsListID), LocatorUtils.property(thatLocator, "listID", rhsListID), lhsListID, rhsListID)) {
return false;
}
}
{
String lhsListAgencyID;
lhsListAgencyID = this.getListAgencyID();
String rhsListAgencyID;
rhsListAgencyID = that.getListAgencyID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listAgencyID", lhsListAgencyID), LocatorUtils.property(thatLocator, "listAgencyID", rhsListAgencyID), lhsListAgencyID, rhsListAgencyID)) {
return false;
}
}
{
String lhsListAgencyName;
lhsListAgencyName = this.getListAgencyName();
String rhsListAgencyName;
rhsListAgencyName = that.getListAgencyName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listAgencyName", lhsListAgencyName), LocatorUtils.property(thatLocator, "listAgencyName", rhsListAgencyName), lhsListAgencyName, rhsListAgencyName)) {
return false;
}
}
{
String lhsListName;
lhsListName = this.getListName();
String rhsListName;
rhsListName = that.getListName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listName", lhsListName), LocatorUtils.property(thatLocator, "listName", rhsListName), lhsListName, rhsListName)) {
return false;
}
}
{
String lhsListVersionID;
lhsListVersionID = this.getListVersionID();
String rhsListVersionID;
rhsListVersionID = that.getListVersionID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listVersionID", lhsListVersionID), LocatorUtils.property(thatLocator, "listVersionID", rhsListVersionID), lhsListVersionID, rhsListVersionID)) {
return false;
}
}
{
String lhsName;
lhsName = this.getName();
String rhsName;
rhsName = that.getName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) {
return false;
}
}
{
String lhsLanguageID;
lhsLanguageID = this.getLanguageID();
String rhsLanguageID;
rhsLanguageID = that.getLanguageID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "languageID", lhsLanguageID), LocatorUtils.property(thatLocator, "languageID", rhsLanguageID), lhsLanguageID, rhsLanguageID)) {
return false;
}
}
{
String lhsListURI;
lhsListURI = this.getListURI();
String rhsListURI;
rhsListURI = that.getListURI();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listURI", lhsListURI), LocatorUtils.property(thatLocator, "listURI", rhsListURI), lhsListURI, rhsListURI)) {
return false;
}
}
{
String lhsListSchemeURI;
lhsListSchemeURI = this.getListSchemeURI();
String rhsListSchemeURI;
rhsListSchemeURI = that.getListSchemeURI();
if (!strategy.equals(LocatorUtils.property(thisLocator, "listSchemeURI", lhsListSchemeURI), LocatorUtils.property(thatLocator, "listSchemeURI", rhsListSchemeURI), lhsListSchemeURI, rhsListSchemeURI)) {
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 theValue;
theValue = this.getValue();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue);
}
{
String theListID;
theListID = this.getListID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listID", theListID), currentHashCode, theListID);
}
{
String theListAgencyID;
theListAgencyID = this.getListAgencyID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listAgencyID", theListAgencyID), currentHashCode, theListAgencyID);
}
{
String theListAgencyName;
theListAgencyName = this.getListAgencyName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listAgencyName", theListAgencyName), currentHashCode, theListAgencyName);
}
{
String theListName;
theListName = this.getListName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listName", theListName), currentHashCode, theListName);
}
{
String theListVersionID;
theListVersionID = this.getListVersionID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listVersionID", theListVersionID), currentHashCode, theListVersionID);
}
{
String theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName);
}
{
String theLanguageID;
theLanguageID = this.getLanguageID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "languageID", theLanguageID), currentHashCode, theLanguageID);
}
{
String theListURI;
theListURI = this.getListURI();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listURI", theListURI), currentHashCode, theListURI);
}
{
String theListSchemeURI;
theListSchemeURI = this.getListSchemeURI();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listSchemeURI", theListSchemeURI), currentHashCode, theListSchemeURI);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}