Package com.verisign.epp.codec.change
Class EPPChangeUpdateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPUpdateCmd
com.verisign.epp.codec.change.EPPChangeUpdateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP <change:update> command that is used to modify an
existing EPP Change Request object. The <change:update> element MAY
contain the following child elements:
- A <change:upAttrs> element that contains the Change Request
attributes for modification. Use
getAttributesandsetAttributesto get and set the element. - An empty <change:clear> element. Use
isClearandsetClearto get and set the element. - An empty <change:submit> element. Use
isSubmitandsetSubmitto get and set the element. - An empty <change:withdraw> element. Use
isWithdrawandsetWithdrawto get and set the element.
- See Also:
-
Field Summary
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
ConstructorsConstructorDescriptionEPPChangeUpdateCmd(String aTransId) EPPChangeUpdateCmd(String aTransId, String requestId) -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPChangeUpdateCmd.protected voidDecode theEPPChangeUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPChangeUpdateCmdinstance.booleanCompare an instance ofEPPChangeUpdateCmdwith this instancegetKey()Gets the key for the change object, which is the request identifier.Gets the EPP command Namespace associated withEPPChangeUpdateCmd.booleanisClear()booleanisSubmit()booleanvoidsetAttributes(EPPChangeUpdateAttributes attributes) voidsetClear(boolean clear) voidsetRequestId(String requestId) voidsetSubmit(boolean submit) voidsetWithdraw(boolean withdraw) toString()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, 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
-
Constructor Details
-
EPPChangeUpdateCmd
public EPPChangeUpdateCmd() -
EPPChangeUpdateCmd
-
EPPChangeUpdateCmd
-
-
Method Details
-
clone
CloneEPPChangeUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPChangeUpdateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
Compare an instance ofEPPChangeUpdateCmdwith this instance- Overrides:
equalsin classEPPUpdateCmd- Parameters:
o- Object to compare with.- Returns:
- DOCUMENT ME!
-
getAttributes
-
getNamespace
Gets the EPP command Namespace associated withEPPChangeUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPChangeMapFactory.NS
-
getKey
Gets the key for the change object, which is the request identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The request identifier if set;
nullotherwise.
-
getRequestId
-
isClear
public boolean isClear() -
isSubmit
public boolean isSubmit() -
isWithdraw
public boolean isWithdraw() -
setAttributes
-
setClear
public void setClear(boolean clear) -
setRequestId
-
setSubmit
public void setSubmit(boolean submit) -
setWithdraw
public void setWithdraw(boolean withdraw) -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
doDecode
Decode theEPPChangeUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPChangeUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
doEncode
Encode a DOM Element tree from the attributes of theEPPChangeUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPChangeUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPChangeUpdateCmdinstance.
-