Class EPPRegistryIDN
java.lang.Object
com.verisign.epp.codec.registry.v02.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(EPPRegistryLanguage)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 StringConstant for theEPPRegistryIDNlocal namestatic final StringConstant for theEPPRegistryIDN(prefix and local name)static final StringXML Element Name ofunicodeVersionattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLanguage(EPPRegistryLanguage language) Append one instance ofEPPRegistryLanguageto 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.Gets whether commingling of scripts is allowed.Gets the character encoding.Gets the idnaVersion.Gets the idnVersion.Gets theListofEPPRegistryLanguage.Returns the XML namespace associated with theEPPCodecComponent.Gets the unicodeVersion.voidsetCommingleAllowed(Boolean aCommingleAllowed) Sets whether commingling of scripts is allowed.voidsetEncoding(String aEncoding) Sets the character encoding.voidsetIdnaVersion(String aIdnaVersion) Sets the idnaVersion.voidsetIdnVersion(String aIdnVersion) Sets the idnVersion.voidsetLanguages(List<EPPRegistryLanguage> aLanguages) Sets theListofEPPRegistryLanguage.voidsetUnicodeVersion(String aUnicodeVersion) Sets the unicodeVersion.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for theEPPRegistryIDNlocal name- See Also:
-
ELM_NAME
Constant for theEPPRegistryIDN(prefix and local name)- 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
Gets the idnVersion.- Returns:
Stringrepresentation of idnVersion
-
setIdnVersion
Sets the idnVersion.- Parameters:
aIdnVersion-Stringrepresentation of idnVersion
-
getUnicodeVersion
Gets the unicodeVersion.- Returns:
Stringrepresentation of unicodeVersion
-
setUnicodeVersion
Sets the unicodeVersion.- Parameters:
aUnicodeVersion-Stringrepresentation of unicodeVersion
-
getIdnaVersion
Gets the idnaVersion.- Returns:
Stringrepresentation of idnaVersion
-
setIdnaVersion
Sets the idnaVersion.- Parameters:
aIdnaVersion-Stringrepresentation of idnaVersion
-
getEncoding
Gets the character encoding.- Returns:
- character encoding for transforming Unicode characters uniquely and reversibly into DNS compatible characters
-
setEncoding
Sets the character encoding.- Parameters:
aEncoding- character encoding for transforming Unicode characters uniquely and reversibly into DNS compatible characters
-
getCommingleAllowed
Gets whether commingling of scripts is allowed.- Returns:
trueallow commingling;falsedo not allow commingling
-
setCommingleAllowed
Sets whether commingling of scripts is allowed.- Parameters:
aCommingleAllowed-trueallow commingling;falsedo not allow commingling
-
getLanguages
Gets theListofEPPRegistryLanguage.- Returns:
ListofEPPRegistryLanguagethat defines the supported language codes and character code point policy
-
setLanguages
Sets theListofEPPRegistryLanguage.- Parameters:
aLanguages-ListofEPPRegistryLanguagethat defines the supported language codes and character code point policy
-
addLanguage
Append one instance ofEPPRegistryLanguageto the existing list.- Parameters:
language- instance ofEPPRegistryLanguagethat 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.
-