public class EPPRegistryIDN extends java.lang.Object implements EPPCodecComponent
getIdnVersion()
and
setIdnVersion(String)
to get and set the element.getIdnaVersion()
and
setIdnaVersion(String)
to get and set the element.getUnicodeVersion()
and setUnicodeVersion(String)
to get
and set the element.getEncoding()
and
setEncoding(String)
to get and set the element.getCommingleAllowed()
and
setCommingleAllowed(Boolean)
to get and set the element.getLanguages()
and setLanguages(List)
to get
and set the element. Use addLanguage(EPPRegistryLanguage)
to add
one language policy to the existing list.EPPRegistryDomain
,
EPPRegistryLanguage
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_COMMINGLE_ALLOWED
XML Element Name of
commingleAllowed attribute. |
static java.lang.String |
ELM_ENCODING
XML Element Name of
encoding attribute. |
static java.lang.String |
ELM_IDN_VERSION
XML Element Name of
idnVersion attribute. |
static java.lang.String |
ELM_IDNA_VERSION
XML Element Name of
idnaVersion attribute. |
static java.lang.String |
ELM_LOCALNAME
Constant for the
EPPRegistryIDN local name |
static java.lang.String |
ELM_NAME
Constant for the
EPPRegistryIDN (prefix and local name) |
static java.lang.String |
ELM_UNICODE_VERSION
XML Element Name of
unicodeVersion attribute. |
Constructor and Description |
---|
EPPRegistryIDN() |
Modifier and Type | Method and Description |
---|---|
void |
addLanguage(EPPRegistryLanguage language)
Append one instance of
EPPRegistryLanguage to the existing
list. |
java.lang.Object |
clone()
Clone
EPPRegistryIDN . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryIDN 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
EPPRegistryIDN instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryIDN compare. |
java.lang.Boolean |
getCommingleAllowed()
Gets whether commingling of scripts is allowed.
|
java.lang.String |
getEncoding()
Gets the character encoding.
|
java.lang.String |
getIdnaVersion()
Gets the idnaVersion.
|
java.lang.String |
getIdnVersion()
Gets the idnVersion.
|
java.util.List<EPPRegistryLanguage> |
getLanguages()
Gets the
List of EPPRegistryLanguage . |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getUnicodeVersion()
Gets the unicodeVersion.
|
void |
setCommingleAllowed(java.lang.Boolean aCommingleAllowed)
Sets whether commingling of scripts is allowed.
|
void |
setEncoding(java.lang.String aEncoding)
Sets the character encoding.
|
void |
setIdnaVersion(java.lang.String aIdnaVersion)
Sets the idnaVersion.
|
void |
setIdnVersion(java.lang.String aIdnVersion)
Sets the idnVersion.
|
void |
setLanguages(java.util.List<EPPRegistryLanguage> aLanguages)
Sets the
List of EPPRegistryLanguage . |
void |
setUnicodeVersion(java.lang.String aUnicodeVersion)
Sets the unicodeVersion.
|
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
EPPRegistryIDN
local namepublic static final java.lang.String ELM_NAME
EPPRegistryIDN
(prefix and local name)public static final java.lang.String ELM_IDN_VERSION
idnVersion
attribute.public static final java.lang.String ELM_IDNA_VERSION
idnaVersion
attribute.public static final java.lang.String ELM_UNICODE_VERSION
unicodeVersion
attribute.public static final java.lang.String ELM_ENCODING
encoding
attribute.public static final java.lang.String ELM_COMMINGLE_ALLOWED
commingleAllowed
attribute.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryIDN
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryIDN
instance.EPPEncodeException
- - Unable to encode EPPRegistryIDN
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryIDN
attributes from the aElement DOM Element
tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryIDN
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryIDN
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryIDN
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryIDN
compare.equals
in class java.lang.Object
aObject
- EPPRegistryIDN
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.Object
String
if successful; ERROR
otherwise.public java.lang.String getIdnVersion()
String
representation of idnVersionpublic void setIdnVersion(java.lang.String aIdnVersion)
aIdnVersion
- String
representation of idnVersionpublic java.lang.String getUnicodeVersion()
String
representation of unicodeVersionpublic void setUnicodeVersion(java.lang.String aUnicodeVersion)
aUnicodeVersion
- String
representation of unicodeVersionpublic java.lang.String getIdnaVersion()
String
representation of idnaVersionpublic void setIdnaVersion(java.lang.String aIdnaVersion)
aIdnaVersion
- String
representation of idnaVersionpublic java.lang.String getEncoding()
public void setEncoding(java.lang.String aEncoding)
aEncoding
- character encoding for transforming Unicode characters uniquely
and reversibly into DNS compatible characterspublic java.lang.Boolean getCommingleAllowed()
true
allow commingling; false
do not allow
comminglingpublic void setCommingleAllowed(java.lang.Boolean aCommingleAllowed)
aCommingleAllowed
- true
allow commingling; false
do not allow
comminglingpublic java.util.List<EPPRegistryLanguage> getLanguages()
List
of EPPRegistryLanguage
.List
of EPPRegistryLanguage
that defines the
supported language codes and character code point policypublic void setLanguages(java.util.List<EPPRegistryLanguage> aLanguages)
List
of EPPRegistryLanguage
.aLanguages
- List
of EPPRegistryLanguage
that defines the
supported language codes and character code point policypublic void addLanguage(EPPRegistryLanguage language)
EPPRegistryLanguage
to the existing
list.language
- instance of EPPRegistryLanguage
that defines the
supported language codes and character code point policypublic java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.