Package com.verisign.epp.codec.nv
Class EPPNameVerificationUpdateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPUpdateCmd
-
- 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
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPNameVerificationUpdateCmd.static java.lang.StringELM_NAMEXML root tag forEPPNameVerificationUpdateCmd.-
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 EPPNameVerificationUpdateCmd()EPPNameVerificationUpdateCmddefault constructor.EPPNameVerificationUpdateCmd(java.lang.String aTransId)EPPNameVerificationUpdateCmdconstructor that takes just the client transaction id.EPPNameVerificationUpdateCmd(java.lang.String aTransId, java.lang.String aCode, EPPAuthInfo aAuthInfo)EPPNameVerificationUpdateCmdconstructor that takes the authorization information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameVerificationUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPNameVerificationUpdateCmdattributes 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 theEPPNameVerificationUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameVerificationUpdateCmdwith this instance.EPPAuthInfogetAuthInfo()Gets the authorization information for the Name Verification (NV) object.java.lang.StringgetCode()Gets the verification code value.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPNameVerificationUpdateCmd.voidsetAuthInfo(EPPAuthInfo aAuthInfo)Sets the authorization information for the Name Verification (NV) object.voidsetCode(java.lang.String aCode)Sets the verification code value.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.EPPUpdateCmd
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 forEPPNameVerificationUpdateCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPNameVerificationUpdateCmd.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPNameVerificationUpdateCmd
public EPPNameVerificationUpdateCmd()
EPPNameVerificationUpdateCmddefault constructor.
-
EPPNameVerificationUpdateCmd
public EPPNameVerificationUpdateCmd(java.lang.String aTransId)
EPPNameVerificationUpdateCmdconstructor that takes just the client transaction id. The authorization information must be set viasetAuthInfo(EPPAuthInfo).- Parameters:
aTransId- Client transaction id. Set tonullof no client transaction id should be used.
-
EPPNameVerificationUpdateCmd
public EPPNameVerificationUpdateCmd(java.lang.String aTransId, java.lang.String aCode, EPPAuthInfo aAuthInfo)EPPNameVerificationUpdateCmdconstructor that takes the authorization information.- Parameters:
aTransId- Client transaction id. Set tonullof no client transaction id should be used.aCode- Verification codeaAuthInfo- Authorization info for the Name Verification (NV) object
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPNameVerificationUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- 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;
nullotherwise.
-
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 EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameVerificationUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPNameVerificationUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameVerificationUpdateCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPNameVerificationUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPNameVerificationUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- 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.CloneNotSupportedExceptionCloneEPPNameVerificationUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPNameVerificationUpdateCmd - 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.
-
-