Package com.verisign.epp.codec.idntable
Class EPPIdnTableInfoDomain
java.lang.Object
com.verisign.epp.codec.idntable.EPPIdnTableInfoDomain
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPIdnTableInfoDomain is used to represent the Internationalized
Domain Name (IDN) information for a domain in a IDN table response to a
<info> command. The domain information includes whether the domain is a
valid IDN domain name, whether or not the use of the IDN mapping extension is
needed, and the matching list of valid IDN table identifiers.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPIdnTableInfoDomain.EPPIdnTableInfoDomain(String aName, boolean aValid) Constructor forEPPIdnTableInfoDomainthat takes the domain name and whether the domain name is a valid IDN domain name.EPPIdnTableInfoDomain(String aName, boolean aValid, boolean aIdnmap) Constructor forEPPIdnTableInfoDomainthat takes the domain name, whether the domain name is a valid IDN domain name, and whether the server requires the IDN mapping extension with a domain create of the domain name.EPPIdnTableInfoDomain(String aName, List<EPPIdnTableInfoDomainTable> aTables) Constructor forEPPIdnTableInfoDomainthat is used for valid IDN domain names by providing the list of IDN table identifiers. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTable(EPPIdnTableInfoDomainTable aTable) Append a table to the list of tables.clone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPIdnTableInfoDomainwith this instance.getAname()Returns the OPTIONAL A-label domain name.getName()Returns the domain name.Returns the XML namespace associated with theEPPCodecComponent.Get the list of tables.getUname()Returns the OPTIONAL U-label domain name.booleanhasAname()Is the A-label domain name defined?booleanAre any table identifiers defined in the list of table identifiers?booleanhasUname()Is the U-label domain name defined?booleanisIdnmap()Is the IDN mapping extension required on a domain create of the domain name?booleanisValid()Is the domain name a valid IDN domain name?voidSets the A-label domain name.voidsetIdnmap(boolean aIdnmap) Set whether the IDN mapping extension is required on a domain create of the domain name.voidSets the domain name.voidsetTable(EPPIdnTableInfoDomainTable aTable) Set an individual table.voidsetTables(List<EPPIdnTableInfoDomainTable> aTables) Set the list of tables.voidSets the U-label domain name.voidsetValid(boolean aValid) Sets whether the domain name is a valid IDN domain name.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPIdnTableInfoDomain.- See Also:
-
ELM_NAME
XML root tag forEPPIdnTableInfoDomain.- See Also:
-
-
Constructor Details
-
EPPIdnTableInfoDomain
public EPPIdnTableInfoDomain()Default constructor forEPPIdnTableInfoDomain. -
EPPIdnTableInfoDomain
Constructor forEPPIdnTableInfoDomainthat takes the domain name and whether the domain name is a valid IDN domain name.- Parameters:
aName- Domain nameaValid- Is the domain name a valid IDN domain name?
-
EPPIdnTableInfoDomain
Constructor forEPPIdnTableInfoDomainthat takes the domain name, whether the domain name is a valid IDN domain name, and whether the server requires the IDN mapping extension with a domain create of the domain name.- Parameters:
aName- Domain nameaValid- Is the domain name a valid IDN domain name?aIdnmap-trueif the IDN mapping extension is required on a domain create of the domain name;falseotherwise.
-
EPPIdnTableInfoDomain
Constructor forEPPIdnTableInfoDomainthat is used for valid IDN domain names by providing the list of IDN table identifiers.- Parameters:
aName- Domain nameaTables- List of matching IDN tables.
-
-
Method Details
-
getName
Returns the domain name.- Returns:
- Domain name if defined:
nullotherwise.
-
setName
Sets the domain name.- Parameters:
aDomain- Domain name
-
isValid
public boolean isValid()Is the domain name a valid IDN domain name?- Returns:
trueif it is a valid IDN domain name;falseotherwise.
-
setValid
public void setValid(boolean aValid) Sets whether the domain name is a valid IDN domain name.- Parameters:
aValid-trueif the domain name is a valid IDN domain name;falseotherwise.
-
isIdnmap
public boolean isIdnmap()Is the IDN mapping extension required on a domain create of the domain name?- Returns:
trueif the IDN mapping extension is required on a domain create of the domain name;falseotherwise.
-
setIdnmap
public void setIdnmap(boolean aIdnmap) Set whether the IDN mapping extension is required on a domain create of the domain name.- Parameters:
aIdnmap-trueif the IDN mapping extension is required on a domain create of the domain name;falseotherwise.
-
hasAname
public boolean hasAname()Is the A-label domain name defined?- Returns:
trueif the A-label domain name is defined;falseotherwise.
-
getAname
Returns the OPTIONAL A-label domain name.- Returns:
- A-label domain name if defined:
nullotherwise.
-
setAname
Sets the A-label domain name.- Parameters:
aDomain- A-label Domain name
-
hasUname
public boolean hasUname()Is the U-label domain name defined?- Returns:
trueif the U-label domain name is defined;falseotherwise.
-
getUname
Returns the OPTIONAL U-label domain name.- Returns:
- U-label domain name if defined:
nullotherwise.
-
setUname
Sets the U-label domain name.- Parameters:
aDomain- U-label Domain name
-
hasTables
public boolean hasTables()Are any table identifiers defined in the list of table identifiers?- Returns:
trueif there is at least one table identifier defined;falseotherwise.
-
getTables
Get the list of tables.- Returns:
Listof tables
-
setTables
Set the list of tables.- Parameters:
aTables-Listof tables
-
setTable
Set an individual table. This method clears the existing list of tables.- Parameters:
aTable- Table to set
-
addTable
Append a table to the list of tables. This method does NOT clear the existing list of tables.- Parameters:
aTable- Table to append
-
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 encodingEPPIdnTableInfoDomain
-
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
EPPIdnTableInfoDomain - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPIdnTableInfoDomainwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-