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,Serializable,Cloneable
The
EPPValidateCheckCmd is used for the Validate Check Command, that
is used for the validation of contact and eligibility data.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the name verification check commandFields 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
ConstructorsConstructorDescriptionEPPValidateCheckCmddefault constructor.EPPValidateCheckCmd(String aTransId) EPPValidateCheckCmdconstructor with just the client transaction identifier.EPPValidateCheckCmd(String aTransId, EPPValidateContact aContact) EPPValidateCheckCmdconstructor that will check an individual contact.EPPValidateCheckCmd(String aTransId, List<EPPValidateContact> aContacts) EPPValidateCheckCmdconstructor that will check a list of contacts. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContact(EPPValidateContact aContact) Add a contact to the list of contacts to validate.clone()CloneEPPValidateCheckCmd.protected voidDecode theEPPValidateCheckCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPValidateCheckCmdinstance.booleanCompare an instance ofEPPValidateCheckCmdwith this instance.Gets contacts to validate.getKey()Gets the key for the validate object, which is the contact identifier.Gets the EPP command Namespace associated withEPPValidateCheckCmd.booleanIs there any contacts set?voidsetContact(EPPValidateContact aContact) Sets individual contact to validate.voidsetLabels(List<EPPValidateContact> aContacts) Sets contacts to validate.toString()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, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
Constant for the name verification check command- See Also:
-
-
Constructor Details
-
EPPValidateCheckCmd
public EPPValidateCheckCmd()EPPValidateCheckCmddefault constructor. -
EPPValidateCheckCmd
EPPValidateCheckCmdconstructor with just the client transaction identifier.- Parameters:
aTransId- Transaction Id associated with command.
-
EPPValidateCheckCmd
EPPValidateCheckCmdconstructor that will check an individual contact.- Parameters:
aTransId- Transaction Id associated with command.aContact- Contact to validate
-
EPPValidateCheckCmd
EPPValidateCheckCmdconstructor that will check a list of contacts.- Parameters:
aTransId- Transaction Id associated with command.aContacts-Listof labels to check
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPValidateCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPValidateMapFactory.NS
-
getKey
Gets the key for the validate object, which is the contact identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The validate identifier if set with a single value;
nullotherwise.
-
equals
Compare an instance ofEPPValidateCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPValidateCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPValidateCheckCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
hasContacts
public boolean hasContacts()Is there any contacts set?- Returns:
trueif there is at least oneEPPValidateContactset;falseotherwise.
-
setContact
Sets individual contact to validate.- Parameters:
aContact- Contact to validate
-
getContacts
Gets contacts to validate.- Returns:
- List of contacts.
-
setLabels
Sets contacts to validate.- Parameters:
aContacts- Contacts to validate.
-
addContact
Add a contact to the list of contacts to validate.- Parameters:
aContact- Contact to add
-
doEncode
Encode a DOM Element tree from the attributes of theEPPValidateCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPValidateCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPValidateCheckCmdinstance.
-
doDecode
Decode theEPPValidateCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPValidateCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-