|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.idntable.EPPIdnTableInfoDomain
public class EPPIdnTableInfoDomain
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.
Field Summary | |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for EPPIdnTableInfoDomain . |
static java.lang.String |
ELM_NAME
XML root tag for EPPIdnTableInfoDomain . |
Constructor Summary | |
---|---|
EPPIdnTableInfoDomain()
Default constructor for EPPIdnTableInfoDomain . |
|
EPPIdnTableInfoDomain(java.lang.String aName,
boolean aValid)
Constructor for EPPIdnTableInfoDomain that takes the domain
name and whether the domain name is a valid IDN domain name. |
|
EPPIdnTableInfoDomain(java.lang.String aName,
boolean aValid,
boolean aIdnmap)
Constructor for EPPIdnTableInfoDomain that 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(java.lang.String aName,
java.util.List<EPPIdnTableInfoDomainTable> aTables)
Constructor for EPPIdnTableInfoDomain that is used for valid
IDN domain names by providing the list of IDN table identifiers. |
Method Summary | |
---|---|
void |
addTable(EPPIdnTableInfoDomainTable aTable)
Append a table to the list of tables. |
java.lang.Object |
clone()
clone an EPPCodecComponent . |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPIdnTableInfoDomain with this
instance. |
java.lang.String |
getAname()
Returns the OPTIONAL A-label domain name. |
java.lang.String |
getName()
Returns the domain name. |
java.util.List<EPPIdnTableInfoDomainTable> |
getTables()
Get the list of tables. |
java.lang.String |
getUname()
Returns the OPTIONAL U-label domain name. |
boolean |
hasAname()
Is the A-label domain name defined? |
boolean |
hasTables()
Are any table identifiers defined in the list of table identifiers? |
boolean |
hasUname()
Is the U-label domain name defined? |
boolean |
isIdnmap()
Is the IDN mapping extension required on a domain create of the domain name? |
boolean |
isValid()
Is the domain name a valid IDN domain name? |
void |
setAname(java.lang.String aDomain)
Sets the A-label domain name. |
void |
setIdnmap(boolean aIdnmap)
Set whether the IDN mapping extension is required on a domain create of the domain name. |
void |
setName(java.lang.String aDomain)
Sets the domain name. |
void |
setTable(EPPIdnTableInfoDomainTable aTable)
Set an individual table. |
void |
setTables(java.util.List<EPPIdnTableInfoDomainTable> aTables)
Set the list of tables. |
void |
setUname(java.lang.String aDomain)
Sets the U-label domain name. |
void |
setValid(boolean aValid)
Sets whether the domain name is a valid IDN domain name. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_LOCALNAME
EPPIdnTableInfoDomain
.
public static final java.lang.String ELM_NAME
EPPIdnTableInfoDomain
.
Constructor Detail |
---|
public EPPIdnTableInfoDomain()
EPPIdnTableInfoDomain
.
public EPPIdnTableInfoDomain(java.lang.String aName, boolean aValid)
EPPIdnTableInfoDomain
that takes the domain
name and whether the domain name is a valid IDN domain name.
aName
- Domain nameaValid
- Is the domain name a valid IDN domain name?public EPPIdnTableInfoDomain(java.lang.String aName, boolean aValid, boolean aIdnmap)
EPPIdnTableInfoDomain
that 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.
aName
- Domain nameaValid
- Is the domain name a valid IDN domain name?aIdnmap
- false
otherwise.public EPPIdnTableInfoDomain(java.lang.String aName, java.util.List<EPPIdnTableInfoDomainTable> aTables)
EPPIdnTableInfoDomain
that is used for valid
IDN domain names by providing the list of IDN table identifiers.
aName
- Domain nameaTables
- List of matching IDN tables.Method Detail |
---|
public java.lang.String getName()
null
otherwise.public void setName(java.lang.String aDomain)
aDomain
- Domain namepublic boolean isValid()
true
if it is a valid IDN domain name;
false
otherwise.public void setValid(boolean aValid)
aValid
- true
if the domain name is a valid IDN domain
name; false
otherwise.public boolean isIdnmap()
true
if the IDN mapping extension is required on a
domain create of the domain name; false
otherwise.public void setIdnmap(boolean aIdnmap)
aIdnmap
- false
otherwise.public boolean hasAname()
true
if the A-label domain name is defined;
false
otherwise.public java.lang.String getAname()
null
otherwise.public void setAname(java.lang.String aDomain)
aDomain
- A-label Domain namepublic boolean hasUname()
true
if the U-label domain name is defined;
false
otherwise.public java.lang.String getUname()
null
otherwise.public void setUname(java.lang.String aDomain)
aDomain
- U-label Domain namepublic boolean hasTables()
true
if there is at least one table identifier
defined; false
otherwise.public java.util.List<EPPIdnTableInfoDomainTable> getTables()
List
of tablespublic void setTables(java.util.List<EPPIdnTableInfoDomainTable> aTables)
aTables
- List
of tablespublic void setTable(EPPIdnTableInfoDomainTable aTable)
aTable
- Table to setpublic void addTable(EPPIdnTableInfoDomainTable aTable)
aTable
- Table to appendpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factory
EPPEncodeException
- Error encoding EPPIdnTableInfoDomain
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values.
decode
in interface EPPCodecComponent
aElement
- Element
to decode
EPPDecodeException
- Error decoding Element
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPIdnTableInfoDomain
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic 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 boolean equals(java.lang.Object aObject)
EPPIdnTableInfoDomain
with this
instance.
equals
in class java.lang.Object
aObject
- Object to compare with.
true
if equal; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |