public class EPPRegistryLanguage extends java.lang.Object implements EPPCodecComponent
EPPRegistryLanguage defines the supported language codes and
character code point policy.| Modifier and Type | Class and Description |
|---|---|
static class |
EPPRegistryLanguage.VariantStrategy
Possible values for the
variantStrategy attribute. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryLanguage. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryLanguage. |
| Constructor and Description |
|---|
EPPRegistryLanguage()
Default constructor for
EPPRegistryLanguage. |
EPPRegistryLanguage(java.lang.String aCode,
java.lang.String aTable,
EPPRegistryLanguage.VariantStrategy aVariantStrategy)
EPPRegistryLanguage constructor that takes all attributes. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRegistryLanguage. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryLanguage attributes from the aElement DOM
Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPRegistryLanguage instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryLanguage compare. |
java.lang.String |
getCode()
Gets the required "code" attribute defines the language code for the
supported language.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getTable()
Gets the OPTIONAL language table URI that contains the set of code points
for the language.
|
EPPRegistryLanguage.VariantStrategy |
getVariantStrategy()
Gets the OPTIONAL strategy for the handling of variants for the language.
|
void |
setCode(java.lang.String aCode)
Sets the required "code" attribute defines the language code for the
supported language.
|
void |
setTable(java.lang.String aTable)
Sets the OPTIONAL language table URI that contains the set of code points
for the language.
|
void |
setVariantStrategy(EPPRegistryLanguage.VariantStrategy aVariantStrategy)
Sets the OPTIONAL strategy for the handling of variants for the language.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPRegistryLanguage.public static final java.lang.String ELM_NAME
EPPRegistryLanguage.public EPPRegistryLanguage()
EPPRegistryLanguage.public EPPRegistryLanguage(java.lang.String aCode,
java.lang.String aTable,
EPPRegistryLanguage.VariantStrategy aVariantStrategy)
EPPRegistryLanguage constructor that takes all attributes.aCode - The required language code that should be a ISO 639 (ISO 639-1
or ISO 639-2) value.aTable - The OPTIONAL language table URI. Set to null if
undefined.aVariantStrategy - The OPTIONAL variant strategy. Set to null if undefined.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryLanguage instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryLanguage instance.EPPEncodeException - - Unable to encode EPPRegistryLanguage instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryLanguage attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryLanguage from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryLanguage.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryLanguagejava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryLanguage compare.equals in class java.lang.ObjectaObject - EPPRegistryLanguage instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public java.lang.String getTable()
null
otherwise.public void setTable(java.lang.String aTable)
aTable - The OPTIONAL langauge table URIpublic EPPRegistryLanguage.VariantStrategy getVariantStrategy()
null otherwise.public void setVariantStrategy(EPPRegistryLanguage.VariantStrategy aVariantStrategy)
aVariantStrategy - The OPTIONAL variant strategypublic java.lang.String getCode()
null otherwise.public void setCode(java.lang.String aCode)
aCode - The language codepublic java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.