public class EPPContactDeleteCmd extends EPPDeleteCmd
getId
and setId
to get and set the element.
EPPReponse
is the response associated with
EPPContactDeleteCmd
. EPPResponse
,
Serialized Formextensions, 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 and Description |
---|
EPPContactDeleteCmd()
EPPContactDeleteCmd default constructor. |
EPPContactDeleteCmd(java.lang.String aTransId,
java.lang.String aId)
EPPContactDeleteCmd constructor that takes the contact id
as an argument. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPContactDeleteCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPContactDeleteCmd 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 the
EPPContactDeleteCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPContactDeleteCmd with this
instance. |
java.lang.String |
getId()
Gets the contact id to delete.
|
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPContactDeleteCmd . |
void |
setId(java.lang.String aId)
Sets the contact id to delete.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
doGenDecode, doGenEncode, getType
addExtension, decode, encode, findDuplicateExtNamespaces, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
public EPPContactDeleteCmd()
EPPContactDeleteCmd
default constructor. The id is
initialized to null
. The id must be set before
invoking encode
.public EPPContactDeleteCmd(java.lang.String aTransId, java.lang.String aId)
EPPContactDeleteCmd
constructor that takes the contact id
as an argument.aTransId
- Transaction Id associated with command.aId
- Contact id to delete.public java.lang.String getNamespace()
EPPContactDeleteCmd
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPContactMapFactory.NS
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPContactDeleteCmd
instance.doEncode
in class EPPDeleteCmd
aDocument
- DOM Document that is being built. Used as an Element
factory.EPPContactDeleteCmd
instance.EPPEncodeException
- Unable to encode
EPPContactDeleteCmd
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPContactDeleteCmd
attributes from the aElement
DOM Element tree.doDecode
in class EPPDeleteCmd
aElement
- Root DOM Element to decode
EPPContactDeleteCmd
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.String getId()
String
instance if defined;
null
otherwise.public void setId(java.lang.String aId)
aId
- Contact Idpublic boolean equals(java.lang.Object aObject)
EPPContactDeleteCmd
with this
instance.equals
in class EPPDeleteCmd
aObject
- Object to compare with.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPContactDeleteCmd
.clone
in interface EPPCodecComponent
clone
in class EPPCommand
EPPContactDeleteCmd
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 EPPCommand
String
if successful;
ERROR
otherwise.