un.unece.uncefact.data.specification.corecomponenttypeschemamodule._2.TextType 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">UNDT000019</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">Text. 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 (i.e. a finite set of characters) generally in the form of words of a language.</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">Text</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 TextType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TextType">
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="languageID" type="{http://www.w3.org/2001/XMLSchema}language" />
* <attribute name="languageLocaleID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
* </extension>
* </simpleContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TextType", propOrder = {
"value"
})
public class TextType implements Serializable
{
@XmlValue
private String value;
@XmlAttribute(name = "languageID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
private String languageID;
@XmlAttribute(name = "languageLocaleID")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
private String languageLocaleID;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public TextType() {
}
/**
* 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 TextType(
@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 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 languageLocaleID property.
*
* @return
* possible object is
* {@link String }
*
*/
@Nullable
public String getLanguageLocaleID() {
return languageLocaleID;
}
/**
* Sets the value of the languageLocaleID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguageLocaleID(
@Nullable
String valueParam) {
this.languageLocaleID = 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 TextType rhs = ((TextType) o);
if (!EqualsUtils.equals(value, rhs.value)) {
return false;
}
if (!EqualsUtils.equals(languageID, rhs.languageID)) {
return false;
}
if (!EqualsUtils.equals(languageLocaleID, rhs.languageLocaleID)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(value).append(languageID).append(languageLocaleID).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("value", value).append("languageID", languageID).append("languageLocaleID", languageLocaleID).toString();
}
}