Package com.verisign.epp.codec.idntable
Class EPPIdnTableCheckCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPCheckCmd
-
- com.verisign.epp.codec.idntable.EPPIdnTableCheckCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPIdnTableCheckCmd extends EPPCheckCmd
Represents an EPP Internationalized Domain Name (IDN) Table <check> command, which is used to determine if an (IDN) Table Identifier is known to the server. The <idnTable:check> element MUST either a list of <idnTable:domain> elements to check on the IDN table information for the domain names or a list of < elements to check on the IDN table information for the IDN table identifiers:
EPPIdnTableCheckRespis the concreteEPPReponseassociated withEPPIdnTableCheckCmd.- See Also:
EPPIdnTableCheckResp, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPIdnTableCheckCmd.FormCheck form types, that include:
UNDEFINED_FORMthat represents an undefined state, where neither or both tables and domains are defined.DOMAIN_FORMthat represents the "Domain Check Form", where domain names are only defined.TABLE_FORMthat represents the "Table Check Form", where table identifiers are only defined.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPIdnTableCheckCmd.static java.lang.StringELM_NAMEXML root tag forEPPIdnTableCheckCmd.-
Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE
-
-
Constructor Summary
Constructors Constructor Description EPPIdnTableCheckCmd()EPPIdnTableCheckCmddefault constructor.EPPIdnTableCheckCmd(java.lang.String aTransId)EPPIdnTableCheckCmdconstructor that only takes the client transaction identifierEPPIdnTableCheckCmd(java.lang.String aTransId, EPPIdnTableDomainLabel aDomain)EPPIdnTableCheckCmdconstructor for setting an individual domain name to check in Domain Check Form.EPPIdnTableCheckCmd(java.lang.String aTransId, java.lang.String aTable)EPPIdnTableCheckCmdconstructor for setting an individual table identifier to check in Table Check Form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDomain(EPPIdnTableDomainLabel aDomain)Append a domain name to the list of domain names to check.voidaddTable(java.lang.String aTable)Append a table identifier to the list of table identifiers to check.java.lang.Objectclone()CloneEPPIdnTableCheckCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPIdnTableCheckCmdattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPIdnTableCheckCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPIdnTableCheckCmdwith this instance.java.util.List<EPPIdnTableDomainLabel>getDomains()Get the list of domain names to checkEPPIdnTableCheckCmd.FormgetForm()What check form is being used, which are defined by theFormenumeration.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPIdnTableCheckCmd.java.util.List<java.lang.String>getTables()Get the list of table identifiers to check.booleanhasDomains()Are any domain names defined in the list of domain names?booleanhasTables()Are any table identifiers defined in the list of table identifiers?voidsetDomain(EPPIdnTableDomainLabel aDomain)Set an individual domain name to check.voidsetDomains(java.util.List<EPPIdnTableDomainLabel> aDomains)Set the list of domain names to checkvoidsetTable(java.lang.String aTable)Set an individual table identifier to check.voidsetTables(java.util.List<java.lang.String> aTables)Set the list of table identifiers to check.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.-
Methods inherited from class com.verisign.epp.codec.gen.EPPCheckCmd
doGenDecode, doGenEncode, getType
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPIdnTableCheckCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPIdnTableCheckCmd.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPIdnTableCheckCmd
public EPPIdnTableCheckCmd()
EPPIdnTableCheckCmddefault constructor.
-
EPPIdnTableCheckCmd
public EPPIdnTableCheckCmd(java.lang.String aTransId)
EPPIdnTableCheckCmdconstructor that only takes the client transaction identifier- Parameters:
aTransId- Transaction Id associated with command.
-
EPPIdnTableCheckCmd
public EPPIdnTableCheckCmd(java.lang.String aTransId, java.lang.String aTable)EPPIdnTableCheckCmdconstructor for setting an individual table identifier to check in Table Check Form.- Parameters:
aTransId- Transaction Id associated with command.aTable- table identifier to check
-
EPPIdnTableCheckCmd
public EPPIdnTableCheckCmd(java.lang.String aTransId, EPPIdnTableDomainLabel aDomain)EPPIdnTableCheckCmdconstructor for setting an individual domain name to check in Domain Check Form.- Parameters:
aTransId- Transaction Id associated with command.aDomain- Domain name to check
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPIdnTableCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPIdnTableMapFactory.NS
-
getForm
public EPPIdnTableCheckCmd.Form getForm()
What check form is being used, which are defined by theFormenumeration.- Returns:
- One of the
Formvalues.
-
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
public java.util.List<java.lang.String> getTables()
Get the list of table identifiers to check.- Returns:
Listof table identifierString's
-
setTables
public void setTables(java.util.List<java.lang.String> aTables)
Set the list of table identifiers to check.- Parameters:
aTables-Listof table identifierString's
-
setTable
public void setTable(java.lang.String aTable)
Set an individual table identifier to check. This method clears the existing list of table identifiers.- Parameters:
aTable- Table identifier to check
-
addTable
public void addTable(java.lang.String aTable)
Append a table identifier to the list of table identifiers to check. This method does NOT clear the existing list of table identifiers.- Parameters:
aTable- Table identifier to check
-
hasDomains
public boolean hasDomains()
Are any domain names defined in the list of domain names?- Returns:
trueif there is at least one domain name defined;falseotherwise.
-
getDomains
public java.util.List<EPPIdnTableDomainLabel> getDomains()
Get the list of domain names to check- Returns:
Listof domain names
-
setDomains
public void setDomains(java.util.List<EPPIdnTableDomainLabel> aDomains)
Set the list of domain names to check- Parameters:
aDomains-Listof domain names
-
setDomain
public void setDomain(EPPIdnTableDomainLabel aDomain)
Set an individual domain name to check. This method clears the existing list of domain names.- Parameters:
aDomain- Domain name to check
-
addDomain
public void addDomain(EPPIdnTableDomainLabel aDomain)
Append a domain name to the list of domain names to check. This method does NOT clear the existing list of domain names.- Parameters:
aDomain- Domain name to check
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPIdnTableCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPIdnTableCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPIdnTableCheckCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPIdnTableCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPIdnTableCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPIdnTableCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPIdnTableCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPIdnTableCheckCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-