Class EPPValidateCheckCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPCheckCmd
-
- com.verisign.epp.codec.validate.v02.EPPValidateCheckCmd
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPMessage
,java.io.Serializable
,java.lang.Cloneable
public class EPPValidateCheckCmd extends EPPCheckCmd
TheEPPValidateCheckCmd
is used for the Validate Check Command, that is used for the validation of contact and eligibility data.- See Also:
EPPValidateCheckResp
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
Constant for the name verification check command-
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 EPPValidateCheckCmd()
EPPValidateCheckCmd
default constructor.EPPValidateCheckCmd(java.lang.String aTransId)
EPPValidateCheckCmd
constructor with just the client transaction identifier.EPPValidateCheckCmd(java.lang.String aTransId, EPPValidateContact aContact)
EPPValidateCheckCmd
constructor that will check an individual contact.EPPValidateCheckCmd(java.lang.String aTransId, java.util.List<EPPValidateContact> aContacts)
EPPValidateCheckCmd
constructor that will check a list of contacts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContact(EPPValidateContact aContact)
Add a contact to the list of contacts to validate.java.lang.Object
clone()
CloneEPPValidateCheckCmd
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPValidateCheckCmd
attributes from the aElement DOM Element tree.protected org.w3c.dom.Element
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPValidateCheckCmd
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPValidateCheckCmd
with this instance.java.util.List<EPPValidateContact>
getContacts()
Gets contacts to validate.java.lang.String
getNamespace()
Gets the EPP command Namespace associated withEPPValidateCheckCmd
.boolean
hasContacts()
Is there any contacts set?void
setContact(EPPValidateContact aContact)
Sets individual contact to validate.void
setLabels(java.util.List<EPPValidateContact> aContacts)
Sets contacts to validate.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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
Constant for the name verification check command- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPValidateCheckCmd
public EPPValidateCheckCmd()
EPPValidateCheckCmd
default constructor.
-
EPPValidateCheckCmd
public EPPValidateCheckCmd(java.lang.String aTransId)
EPPValidateCheckCmd
constructor with just the client transaction identifier.- Parameters:
aTransId
- Transaction Id associated with command.
-
EPPValidateCheckCmd
public EPPValidateCheckCmd(java.lang.String aTransId, EPPValidateContact aContact)
EPPValidateCheckCmd
constructor that will check an individual contact.- Parameters:
aTransId
- Transaction Id associated with command.aContact
- Contact to validate
-
EPPValidateCheckCmd
public EPPValidateCheckCmd(java.lang.String aTransId, java.util.List<EPPValidateContact> aContacts)
EPPValidateCheckCmd
constructor that will check a list of contacts.- Parameters:
aTransId
- Transaction Id associated with command.aContacts
-List
of labels to check
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPValidateCheckCmd
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Specified by:
getNamespace
in classEPPCommand
- Returns:
EPPValidateMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPValidateCheckCmd
with this instance.- Overrides:
equals
in classEPPCheckCmd
- Parameters:
aObject
- Object to compare with.- Returns:
true
if equal;false
otherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPValidateCheckCmd
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPCommand
- Returns:
- Deep copy clone of
EPPValidateCheckCmd
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPCommand
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
hasContacts
public boolean hasContacts()
Is there any contacts set?- Returns:
true
if there is at least oneEPPValidateContact
set;false
otherwise.
-
setContact
public void setContact(EPPValidateContact aContact)
Sets individual contact to validate.- Parameters:
aContact
- Contact to validate
-
getContacts
public java.util.List<EPPValidateContact> getContacts()
Gets contacts to validate.- Returns:
- List of contacts.
-
setLabels
public void setLabels(java.util.List<EPPValidateContact> aContacts)
Sets contacts to validate.- Parameters:
aContacts
- Contacts to validate.
-
addContact
public void addContact(EPPValidateContact aContact)
Add a contact to the list of contacts to validate.- Parameters:
aContact
- Contact to add
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPValidateCheckCmd
instance.- Specified by:
doEncode
in classEPPCheckCmd
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPValidateCheckCmd
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPValidateCheckCmd
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPValidateCheckCmd
attributes from the aElement DOM Element tree.- Specified by:
doDecode
in classEPPCheckCmd
- Parameters:
aElement
- Root DOM Element to decodeEPPValidateCheckCmd
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
-