Package com.verisign.epp.codec.registry
Class EPPRegistryIDN
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryIDN
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofcommingleAllowedattribute.static final StringXML Element Name ofencodingattribute.static final StringXML Element Name ofidnVersionattribute.static final StringXML Element Name ofidnaVersionattribute.static final StringXML Element Name ofEPPRegistryIDNroot element.static final StringXML Element Name ofunicodeVersionattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLanguage(EPPRegistryLanguageType language) Append one instance ofEPPRegistryLanguageTypeto the existing list.clone()CloneEPPRegistryIDN.voidDecode theEPPRegistryIDNattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryIDNinstance.booleanimplements a deepEPPRegistryIDNcompare.Get whether commingling of scripts is allowed.Get the character encoding.Get the idnaVersion.Get the idnVersion.Get theListofEPPRegistryLanguageType.Returns the XML namespace associated with theEPPCodecComponent.Get the unicodeVersion.voidsetCommingleAllowed(Boolean commingleAllowed) Set whether commingling of scripts is allowed.voidsetEncoding(String encoding) Set the character encoding.voidsetIdnaVersion(String idnaVersion) Set the idnaVersion.voidsetIdnVersion(String idnVersion) Set the idnVersion.voidsetLanguages(List languages) Set theListofEPPRegistryLanguageType.voidsetUnicodeVersion(String unicodeVersion) Set the unicodeVersion.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryIDNroot element.- See Also:
-
ELM_IDN_VERSION
XML Element Name ofidnVersionattribute.- See Also:
-
ELM_IDNA_VERSION
XML Element Name ofidnaVersionattribute.- See Also:
-
ELM_UNICODE_VERSION
XML Element Name ofunicodeVersionattribute.- See Also:
-
ELM_ENCODING
XML Element Name ofencodingattribute.- See Also:
-
ELM_COMMINGLE_ALLOWED
XML Element Name ofcommingleAllowedattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryIDN
public EPPRegistryIDN()
-
-
Method Details
-
encode
Encode 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
Decode 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
CloneEPPRegistryIDN.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryIDN - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryIDNcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getIdnVersion
Get the idnVersion.- Returns:
Stringrepresentation of idnVersion
-
setIdnVersion
Set the idnVersion.- Parameters:
idnVersion-Stringrepresentation of idnVersion
-
getUnicodeVersion
Get the unicodeVersion.- Returns:
Stringrepresentation of unicodeVersion
-
setUnicodeVersion
Set the unicodeVersion.- Parameters:
unicodeVersion-Stringrepresentation of unicodeVersion
-
getIdnaVersion
Get the idnaVersion.- Returns:
Stringrepresentation of idnaVersion
-
setIdnaVersion
Set the idnaVersion.- Parameters:
idnaVersion-Stringrepresentation of idnaVersion
-
getEncoding
Get the character encoding.- Returns:
- character encoding for transforming Unicode characters uniquely and reversibly into DNS compatible characters
-
setEncoding
Set the character encoding.- Parameters:
encoding- character encoding for transforming Unicode characters uniquely and reversibly into DNS compatible characters
-
getCommingleAllowed
Get whether commingling of scripts is allowed.- Returns:
trueallow commingling;falsedo not allow commingling
-
setCommingleAllowed
Set whether commingling of scripts is allowed.- Parameters:
commingleAllowed-trueallow commingling;falsedo not allow commingling
-
getLanguages
Get theListofEPPRegistryLanguageType.- Returns:
ListofEPPRegistryLanguageTypethat defines the supported language codes and character code point policy
-
setLanguages
Set theListofEPPRegistryLanguageType.- Parameters:
languages-ListofEPPRegistryLanguageTypethat defines the supported language codes and character code point policy
-
addLanguage
Append one instance ofEPPRegistryLanguageTypeto the existing list.- Parameters:
language- instance ofEPPRegistryLanguageTypethat defines the supported language codes and character code point policy
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-