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