Package com.verisign.epp.codec.registry
Class EPPRegistryIDN
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryIDN
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryIDN extends java.lang.Object implements EPPCodecComponent
Represents the Internationalized Domain Name (IDN) policy information. The <registry:idn> must contain the following child elements:
-
<registry:idnVersion> - The OPTIONAL server unique version of the IDN
language rules. Use
getIdnVersion()andsetIdnVersion(String)to get and set the element. -
<registry:idnaVersion> - An Internationalizing Domain Names in
Applications (IDNA) version supported by the server. IDNA represents a
collection of documents that describe the protocol and usage for
Internationalized Domain for Applications like IDNA 2003, with value of 2003,
or IDNA 2008, with value of 2008. Use
getIdnaVersion()andsetIdnaVersion(String)to get and set the element. -
<registry:unicodeVersion> - The Unicode version supported by the server
like the value of "6.0" for Unicode 6.0. Use
getUnicodeVersion()andsetUnicodeVersion(String)to get and set the element. -
<registry:encoding> - The OPTIONAL encoding for transforming Unicode
characters uniquely and reversibly into DNS compatible characters with a
default value of "Punycode". Use
getEncoding()andsetEncoding(String)to get and set the element. -
<registry:commingleAllowed> - An OPTIONAL boolean value that indicates
whether commingling of scripts is allowed with a default value of "false".
Use
getCommingleAllowed()andsetCommingleAllowed(Boolean)to get and set the element. -
<registry:language> - Zero or more <registry:language> elements
that defines the supported language codes and character code point policy.
Use
getLanguages()andsetLanguages(List)to get and set the element. UseaddLanguage(EPPRegistryLanguageType)to add one language policy to the existing list.
- See Also:
EPPRegistryDomain,EPPRegistryLanguageType, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_COMMINGLE_ALLOWEDXML Element Name ofcommingleAllowedattribute.static java.lang.StringELM_ENCODINGXML Element Name ofencodingattribute.static java.lang.StringELM_IDN_VERSIONXML Element Name ofidnVersionattribute.static java.lang.StringELM_IDNA_VERSIONXML Element Name ofidnaVersionattribute.static java.lang.StringELM_NAMEXML Element Name ofEPPRegistryIDNroot element.static java.lang.StringELM_UNICODE_VERSIONXML Element Name ofunicodeVersionattribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistryIDN()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLanguage(EPPRegistryLanguageType language)Append one instance ofEPPRegistryLanguageTypeto the existing list.java.lang.Objectclone()CloneEPPRegistryIDN.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryIDNattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryIDNinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryIDNcompare.java.lang.BooleangetCommingleAllowed()Get whether commingling of scripts is allowed.java.lang.StringgetEncoding()Get the character encoding.java.lang.StringgetIdnaVersion()Get the idnaVersion.java.lang.StringgetIdnVersion()Get the idnVersion.java.util.ListgetLanguages()Get theListofEPPRegistryLanguageType.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetUnicodeVersion()Get the unicodeVersion.voidsetCommingleAllowed(java.lang.Boolean commingleAllowed)Set whether commingling of scripts is allowed.voidsetEncoding(java.lang.String encoding)Set the character encoding.voidsetIdnaVersion(java.lang.String idnaVersion)Set the idnaVersion.voidsetIdnVersion(java.lang.String idnVersion)Set the idnVersion.voidsetLanguages(java.util.List languages)Set theListofEPPRegistryLanguageType.voidsetUnicodeVersion(java.lang.String unicodeVersion)Set the unicodeVersion.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryIDNroot element.- See Also:
- Constant Field Values
-
ELM_IDN_VERSION
public static final java.lang.String ELM_IDN_VERSION
XML Element Name ofidnVersionattribute.- See Also:
- Constant Field Values
-
ELM_IDNA_VERSION
public static final java.lang.String ELM_IDNA_VERSION
XML Element Name ofidnaVersionattribute.- See Also:
- Constant Field Values
-
ELM_UNICODE_VERSION
public static final java.lang.String ELM_UNICODE_VERSION
XML Element Name ofunicodeVersionattribute.- See Also:
- Constant Field Values
-
ELM_ENCODING
public static final java.lang.String ELM_ENCODING
XML Element Name ofencodingattribute.- See Also:
- Constant Field Values
-
ELM_COMMINGLE_ALLOWED
public static final java.lang.String ELM_COMMINGLE_ALLOWED
XML Element Name ofcommingleAllowedattribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryIDNinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryIDNinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryIDNinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryIDNattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryIDNfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryIDN.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryIDN - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryIDNcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryIDNinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getIdnVersion
public java.lang.String getIdnVersion()
Get the idnVersion.- Returns:
Stringrepresentation of idnVersion
-
setIdnVersion
public void setIdnVersion(java.lang.String idnVersion)
Set the idnVersion.- Parameters:
idnVersion-Stringrepresentation of idnVersion
-
getUnicodeVersion
public java.lang.String getUnicodeVersion()
Get the unicodeVersion.- Returns:
Stringrepresentation of unicodeVersion
-
setUnicodeVersion
public void setUnicodeVersion(java.lang.String unicodeVersion)
Set the unicodeVersion.- Parameters:
unicodeVersion-Stringrepresentation of unicodeVersion
-
getIdnaVersion
public java.lang.String getIdnaVersion()
Get the idnaVersion.- Returns:
Stringrepresentation of idnaVersion
-
setIdnaVersion
public void setIdnaVersion(java.lang.String idnaVersion)
Set the idnaVersion.- Parameters:
idnaVersion-Stringrepresentation of idnaVersion
-
getEncoding
public java.lang.String getEncoding()
Get the character encoding.- Returns:
- character encoding for transforming Unicode characters uniquely and reversibly into DNS compatible characters
-
setEncoding
public void setEncoding(java.lang.String encoding)
Set the character encoding.- Parameters:
encoding- character encoding for transforming Unicode characters uniquely and reversibly into DNS compatible characters
-
getCommingleAllowed
public java.lang.Boolean getCommingleAllowed()
Get whether commingling of scripts is allowed.- Returns:
trueallow commingling;falsedo not allow commingling
-
setCommingleAllowed
public void setCommingleAllowed(java.lang.Boolean commingleAllowed)
Set whether commingling of scripts is allowed.- Parameters:
commingleAllowed-trueallow commingling;falsedo not allow commingling
-
getLanguages
public java.util.List getLanguages()
Get theListofEPPRegistryLanguageType.- Returns:
ListofEPPRegistryLanguageTypethat defines the supported language codes and character code point policy
-
setLanguages
public void setLanguages(java.util.List languages)
Set theListofEPPRegistryLanguageType.- Parameters:
languages-ListofEPPRegistryLanguageTypethat defines the supported language codes and character code point policy
-
addLanguage
public void addLanguage(EPPRegistryLanguageType language)
Append one instance ofEPPRegistryLanguageTypeto the existing list.- Parameters:
language- instance ofEPPRegistryLanguageTypethat defines the supported language codes and character code point policy
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-