com.verisign.epp.codec.nv
Class EPPNameVerificationUpdateCmd

java.lang.Object
  extended by com.verisign.epp.codec.gen.EPPCommand
      extended by com.verisign.epp.codec.gen.EPPUpdateCmd
          extended by com.verisign.epp.codec.nv.EPPNameVerificationUpdateCmd
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, java.io.Serializable, java.lang.Cloneable

public class EPPNameVerificationUpdateCmd
extends EPPUpdateCmd

Update command used to change the authorization information for a Name Verificaiton (NV) object.

See Also:
Serialized Form

Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPNameVerificationUpdateCmd.
static java.lang.String ELM_NAME
          XML root tag for EPPNameVerificationUpdateCmd.
 
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
EPPNameVerificationUpdateCmd()
          EPPNameVerificationUpdateCmd default constructor.
EPPNameVerificationUpdateCmd(java.lang.String aTransId)
          EPPNameVerificationUpdateCmd constructor that takes just the client transaction id.
EPPNameVerificationUpdateCmd(java.lang.String aTransId, java.lang.String aCode, EPPAuthInfo aAuthInfo)
          EPPNameVerificationUpdateCmd constructor that takes the authorization information.
 
Method Summary
 java.lang.Object clone()
          Clone EPPNameVerificationUpdateCmd.
protected  void doDecode(org.w3c.dom.Element aElement)
          Decode the EPPNameVerificationUpdateCmd 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 EPPNameVerificationUpdateCmd instance.
 boolean equals(java.lang.Object aObject)
          Compare an instance of EPPNameVerificationUpdateCmd with this instance.
 EPPAuthInfo getAuthInfo()
          Gets the authorization information for the Name Verification (NV) object.
 java.lang.String getCode()
          Gets the verification code value.
 java.lang.String getNamespace()
          Gets the EPP command Namespace associated with EPPNameVerificationUpdateCmd.
 void setAuthInfo(EPPAuthInfo aAuthInfo)
          Sets the authorization information for the Name Verification (NV) object.
 void setCode(java.lang.String aCode)
          Sets the verification code value.
 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 com.verisign.epp.codec.gen.EPPUpdateCmd
doGenDecode, doGenEncode, getType
 
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELM_LOCALNAME

public static final java.lang.String ELM_LOCALNAME
XML local name for EPPNameVerificationUpdateCmd.

See Also:
Constant Field Values

ELM_NAME

public static final java.lang.String ELM_NAME
XML root tag for EPPNameVerificationUpdateCmd.

See Also:
Constant Field Values
Constructor Detail

EPPNameVerificationUpdateCmd

public EPPNameVerificationUpdateCmd()
EPPNameVerificationUpdateCmd default constructor.


EPPNameVerificationUpdateCmd

public EPPNameVerificationUpdateCmd(java.lang.String aTransId)
EPPNameVerificationUpdateCmd constructor that takes just the client transaction id. The authorization information must be set via setAuthInfo(EPPAuthInfo).

Parameters:
aTransId - Client transaction id. Set to null of no client transaction id should be used.

EPPNameVerificationUpdateCmd

public EPPNameVerificationUpdateCmd(java.lang.String aTransId,
                                    java.lang.String aCode,
                                    EPPAuthInfo aAuthInfo)
EPPNameVerificationUpdateCmd constructor that takes the authorization information.

Parameters:
aTransId - Client transaction id. Set to null of no client transaction id should be used.
aCode - Verification code
aAuthInfo - Authorization info for the Name Verification (NV) object
Method Detail

getNamespace

public java.lang.String getNamespace()
Gets the EPP command Namespace associated with EPPNameVerificationUpdateCmd.

Specified by:
getNamespace in interface EPPMessage
Specified by:
getNamespace in class EPPCommand
Returns:
EPPNameVerificationMapFactory.NS

getCode

public java.lang.String getCode()
Gets the verification code value.

Returns:
The verification code value.

setCode

public void setCode(java.lang.String aCode)
Sets the verification code value.

Parameters:
aCode - Verification code value

getAuthInfo

public EPPAuthInfo getAuthInfo()
Gets the authorization information for the Name Verification (NV) object.

Returns:
Authorization information if defined; null otherwise.

setAuthInfo

public void setAuthInfo(EPPAuthInfo aAuthInfo)
Sets the authorization information for the Name Verification (NV) object.

Parameters:
aAuthInfo - Authorization information of NV object

doEncode

protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
                                throws EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPNameVerificationUpdateCmd instance.

Specified by:
doEncode in class EPPUpdateCmd
Parameters:
aDocument - DOM Document that is being built. Used as an Element factory.
Returns:
Element Root DOM Element representing the EPPNameVerificationUpdateCmd instance.
Throws:
EPPEncodeException - Unable to encode EPPNameVerificationUpdateCmd instance.

doDecode

protected void doDecode(org.w3c.dom.Element aElement)
                 throws EPPDecodeException
Decode the EPPNameVerificationUpdateCmd attributes from the aElement DOM Element tree.

Specified by:
doDecode in class EPPUpdateCmd
Parameters:
aElement - Root DOM Element to decode EPPNameVerificationUpdateCmd from.
Throws:
EPPDecodeException - Unable to decode aElement

equals

public boolean equals(java.lang.Object aObject)
Compare an instance of EPPNameVerificationUpdateCmd with this instance.

Overrides:
equals in class EPPUpdateCmd
Parameters:
aObject - Object to compare with.
Returns:
true if this object is the same as the aObject argument; false otherwise.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone EPPNameVerificationUpdateCmd.

Specified by:
clone in interface EPPCodecComponent
Overrides:
clone in class EPPCommand
Returns:
Deep copy clone of EPPNameVerificationUpdateCmd
Throws:
java.lang.CloneNotSupportedException - standard Object.clone exception

toString

public java.lang.String toString()
Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

Overrides:
toString in class EPPCommand
Returns:
Indented XML String if successful; ERROR otherwise.


Copyright ? VeriSign Inc. All Rights Reserved.