Package com.verisign.epp.codec.idntable
Class EPPIdnTableCheckDomain
java.lang.Object
com.verisign.epp.codec.idntable.EPPIdnTableCheckDomain
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPIdnTableCheckDomain is used to represent the Internationalized
Domain Name (IDN) information for a domain in a IDN table response to a
<check> 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 forEPPIdnTableCheckDomain.EPPIdnTableCheckDomain(String aName, boolean aValid) Constructor forEPPIdnTableCheckDomainthat takes the domain name and whether the domain name is a valid IDN domain name.EPPIdnTableCheckDomain(String aName, boolean aValid, boolean aIdnmap) Constructor forEPPIdnTableCheckDomainthat takes the domain name and whether the domain name is a valid IDN domain name, and whether the domain name requires the IDN mapping extension with a domain create of the domain name.EPPIdnTableCheckDomain(String aDomain, String aReason) Constructor forEPPIdnTableCheckDomainthat is used for invalid IDN domain names by providing the reason the domain name is not valid.EPPIdnTableCheckDomain(String aDomain, List<String> aTables) Constructor forEPPIdnTableCheckDomainthat is used for valid IDN domain names by providing the list of IDN table identifiers. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend a table identifier to the list of table identifiers.clone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPIdnTableCheckDomainwith this instance.getName()Returns the domain name.Returns the XML namespace associated with theEPPCodecComponent.Gets the reason that the domain name is invalid.Gets the reason language value.Get the list of table identifiers.booleanIs the reason defined?booleanIs the reason language defined?booleanAre any table identifiers defined in the list of table identifiers?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?voidsetIdnmap(boolean aIdnmap) Set whether the IDN mapping extension is required on a domain create of the domain name.voidSets the domain name.voidSets the reason that the domain name is invalid.voidsetReasonLang(String aReasonLang) Sets the reason language value.voidSet an individual table identifier.voidSet the list of table identifiers.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 forEPPIdnTableCheckDomain.- See Also:
-
ELM_NAME
XML root tag forEPPIdnTableCheckDomain.- See Also:
-
-
Constructor Details
-
EPPIdnTableCheckDomain
public EPPIdnTableCheckDomain()Default constructor forEPPIdnTableCheckDomain. -
EPPIdnTableCheckDomain
Constructor forEPPIdnTableCheckDomainthat 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?
-
EPPIdnTableCheckDomain
Constructor forEPPIdnTableCheckDomainthat takes the domain name and whether the domain name is a valid IDN domain name, and whether the domain name 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.
-
EPPIdnTableCheckDomain
Constructor forEPPIdnTableCheckDomainthat is used for invalid IDN domain names by providing the reason the domain name is not valid.- Parameters:
aDomain- Domain nameaReason- Reason that the IDN domain name is not valid.
-
EPPIdnTableCheckDomain
Constructor forEPPIdnTableCheckDomainthat is used for valid IDN domain names by providing the list of IDN table identifiers.- Parameters:
aDomain- Domain nameaTables- List of matching IDN table identifiers.
-
-
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.
-
hasReason
public boolean hasReason()Is the reason defined?- Returns:
trueif the reason is defined;falseotherwise.
-
getReason
Gets the reason that the domain name is invalid.- Returns:
- Reason that the domain name is invalid if defined;
nullotherwise.
-
setReason
Sets the reason that the domain name is invalid.- Parameters:
aReason- Reason that the domain is invalid. Set tonullto clear the reason.
-
hasReasonLang
public boolean hasReasonLang()Is the reason language defined?- Returns:
trueif the reason language is defined;falseotherwise.
-
getReasonLang
Gets the reason language value.- Returns:
- Reason language if defined;
nullotherwise.
-
setReasonLang
Sets the reason language value.- Parameters:
aReasonLang- Reason language for reason value.
-
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 table identifiers.- Returns:
Listof table identifierString's
-
setTables
Set the list of table identifiers.- Parameters:
aTables-Listof table identifierString's
-
setTable
Set an individual table identifier. This method clears the existing list of table identifiers.- Parameters:
aTable- Table identifier
-
addTable
Append a table identifier to the list of table identifiers. This method does NOT clear the existing list of table identifiers.- Parameters:
aTable- Table identifier
-
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 encodingEPPIdnTableCheckDomain
-
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
EPPIdnTableCheckDomain - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPIdnTableCheckDomainwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-