un.unece.uncefact.data.specification.corecomponenttypeschemamodule._2.IdentifierType 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.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">UNDT000011</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">Identifier. 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 to identify and distinguish uniquely, one instance of an object in an identification scheme from all other objects in the same scheme 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">Identifier</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>
*
*
*
* Java class for IdentifierType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="IdentifierType">
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>normalizedString">
* <attribute name="schemeID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
* <attribute name="schemeName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="schemeAgencyID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
* <attribute name="schemeAgencyName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="schemeVersionID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
* <attribute name="schemeDataURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="schemeURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IdentifierType", propOrder = {
"value"
})
public class IdentifierType implements Serializable
{
@XmlValue
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
private String value;
@XmlAttribute(name = "schemeID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
private String schemeID;
@XmlAttribute(name = "schemeName")
private String schemeName;
@XmlAttribute(name = "schemeAgencyID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
private String schemeAgencyID;
@XmlAttribute(name = "schemeAgencyName")
private String schemeAgencyName;
@XmlAttribute(name = "schemeVersionID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
private String schemeVersionID;
@XmlAttribute(name = "schemeDataURI")
@XmlSchemaType(name = "anyURI")
private String schemeDataURI;
@XmlAttribute(name = "schemeURI")
@XmlSchemaType(name = "anyURI")
private String schemeURI;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public IdentifierType() {
}
/**
* 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 IdentifierType(
@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 schemeID property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeID() {
return schemeID;
}
/**
* Sets the value of the schemeID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeID(
@Nullable
String valueParam) {
this.schemeID = valueParam;
}
/**
* Gets the value of the schemeName property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeName() {
return schemeName;
}
/**
* Sets the value of the schemeName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeName(
@Nullable
String valueParam) {
this.schemeName = valueParam;
}
/**
* Gets the value of the schemeAgencyID property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeAgencyID() {
return schemeAgencyID;
}
/**
* Sets the value of the schemeAgencyID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeAgencyID(
@Nullable
String valueParam) {
this.schemeAgencyID = valueParam;
}
/**
* Gets the value of the schemeAgencyName property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeAgencyName() {
return schemeAgencyName;
}
/**
* Sets the value of the schemeAgencyName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeAgencyName(
@Nullable
String valueParam) {
this.schemeAgencyName = valueParam;
}
/**
* Gets the value of the schemeVersionID property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeVersionID() {
return schemeVersionID;
}
/**
* Sets the value of the schemeVersionID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeVersionID(
@Nullable
String valueParam) {
this.schemeVersionID = valueParam;
}
/**
* Gets the value of the schemeDataURI property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeDataURI() {
return schemeDataURI;
}
/**
* Sets the value of the schemeDataURI property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeDataURI(
@Nullable
String valueParam) {
this.schemeDataURI = valueParam;
}
/**
* Gets the value of the schemeURI property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getSchemeURI() {
return schemeURI;
}
/**
* Sets the value of the schemeURI property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSchemeURI(
@Nullable
String valueParam) {
this.schemeURI = 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 IdentifierType rhs = ((IdentifierType) o);
if (!EqualsUtils.equals(value, rhs.value)) {
return false;
}
if (!EqualsUtils.equals(schemeID, rhs.schemeID)) {
return false;
}
if (!EqualsUtils.equals(schemeName, rhs.schemeName)) {
return false;
}
if (!EqualsUtils.equals(schemeAgencyID, rhs.schemeAgencyID)) {
return false;
}
if (!EqualsUtils.equals(schemeAgencyName, rhs.schemeAgencyName)) {
return false;
}
if (!EqualsUtils.equals(schemeVersionID, rhs.schemeVersionID)) {
return false;
}
if (!EqualsUtils.equals(schemeDataURI, rhs.schemeDataURI)) {
return false;
}
if (!EqualsUtils.equals(schemeURI, rhs.schemeURI)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(value).append(schemeID).append(schemeName).append(schemeAgencyID).append(schemeAgencyName).append(schemeVersionID).append(schemeDataURI).append(schemeURI).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("value", value).append("schemeID", schemeID).append("schemeName", schemeName).append("schemeAgencyID", schemeAgencyID).append("schemeAgencyName", schemeAgencyName).append("schemeVersionID", schemeVersionID).append("schemeDataURI", schemeDataURI).append("schemeURI", schemeURI).toString();
}
}