Package com.verisign.epp.codec.idnmap
Class EPPIdnMap
java.lang.Object
com.verisign.epp.codec.idnmap.EPPIdnMap
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPIdnMap is used in the extension to the domain create command
to define the IDN table and optionally the Unicode NFC of the domain name,
and in the extension to the domain info response to return the same
information about the domain name.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPIdnMap.Constructor forEPPIdnMapthat takes the IDN table identifier.Constructor forEPPIdnMapthat takes both the IDN table identifier and the domain name uname in Unicode NFC. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPIdnMapwith this instance.Returns the XML namespace associated with theEPPCodecComponent.getTable()Gets the IDN table identifier.getUname()Gets the uname value, which is the domain name in Unicode NFC.booleanhasUname()Is the uname defined?voidSets the IDN table identifier.voidSets the uname value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPIdnMap.- See Also:
-
ELM_NAME
XML root tag forEPPIdnMap.- See Also:
-
-
Constructor Details
-
EPPIdnMap
public EPPIdnMap()Default constructor forEPPIdnMap. -
EPPIdnMap
Constructor forEPPIdnMapthat takes the IDN table identifier.- Parameters:
aTable- IDN table identifier as provided by the server
-
EPPIdnMap
Constructor forEPPIdnMapthat takes both the IDN table identifier and the domain name uname in Unicode NFC.- Parameters:
aTable- IDN table identifier as provided by the serveraUname- Domain name in Unicode NFC
-
-
Method Details
-
getTable
Gets the IDN table identifier.- Returns:
- The IDN table identifier as provided by the server.
-
setTable
Sets the IDN table identifier.- Parameters:
aTable- The IDN table identifier as provided by the server.
-
hasUname
public boolean hasUname()Is the uname defined?- Returns:
trueif the uname is defined;falseotherwise.
-
getUname
Gets the uname value, which is the domain name in Unicode NFC.- Returns:
- Domain uname value if defined;
nullotherwise.
-
setUname
Sets the uname value.- Parameters:
aUname- Domain name in Unicode NFC
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPIdnMap
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPIdnMap - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPIdnMapwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-