Package com.verisign.epp.codec.defReg
Class EPPDefRegUpdateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPUpdateCmd
com.verisign.epp.codec.defReg.EPPDefRegUpdateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP DefReg
<update> command. The EPP <update>
command provides a transform operation that allows a client to modify the
attributes of a defReg object. In addition to the standard EPP command
elements, the <update> command MUST contain a <defReg:update>
element that identifies the defReg namespace.
In addition to The <defReg:update> element SHALL contain the
following child elements:
-
A
<defReg:roid>element that contains the repository object identifier assigned to the defReg object when the object was created. -
An OPTIONAL
<defReg:add>element that contains attribute values to be added to the object. -
An OPTIONAL
<defReg:rem>element that contains attribute values to be removed from the object. -
An OPTIONAL
<defReg:chg>element that contains attribute values to be changed.
- 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
ConstructorsConstructorDescriptionEPPDefRegUpdateCmddefault constructor.EPPDefRegUpdateCmd(String aRoid) EPPDefRegUpdateCmddefault constructor.EPPDefRegUpdateCmd(String aTransId, String aRoid, EPPDefRegAddRemove aAdd, EPPDefRegAddRemove aRemove, EPPDefRegAddRemove aChange) EPPDefRegUpdateCmdconstructor that takes the required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegUpdateCmd.protected voidDecode theEPPDefRegUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDefRegUpdateCmdinstance.booleanCompare an instance ofEPPDefRegUpdateCmdwith this instance.getAdd()Gets the items to add to the DefReg.Gets the items to change to the defReg.getKey()Gets the key for the defensive registration object, which is the defensive registration ROID.Gets the EPP command Namespace associated withEPPDefRegUpdateCmd.Gets the items to remove from the DefReg.getRoid()Gets the defReg roid to update.voidsetAdd(EPPDefRegAddRemove aAdd) Sets the items to add to the DefReg.voidsetChange(EPPDefRegAddRemove newChange) Sets the items to change to the defReg.voidsetRemove(EPPDefRegAddRemove aRemove) Sets the items to remove from the DefReg.voidSets the defReg roid to update.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
-
EPPDefRegUpdateCmd
public EPPDefRegUpdateCmd()EPPDefRegUpdateCmddefault constructor. The roid is initialized tonull. The roid must be set before invokingencode. -
EPPDefRegUpdateCmd
public EPPDefRegUpdateCmd(String aTransId, String aRoid, EPPDefRegAddRemove aAdd, EPPDefRegAddRemove aRemove, EPPDefRegAddRemove aChange) EPPDefRegUpdateCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aRoid- DefReg roid to update.aAdd- DOCUMENT ME!aRemove- DOCUMENT ME!aChange- Attributes to add to the defReg.nullif no additions.
-
EPPDefRegUpdateCmd
EPPDefRegUpdateCmddefault constructor. The roid is initialized tonull. The Roid must be set before invokingencode.- Parameters:
aRoid- DOCUMENT ME!
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPDefRegUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDefRegMapFactory.NS
-
getKey
Gets the key for the defensive registration object, which is the defensive registration ROID.- Overrides:
getKeyin classEPPCommand- Returns:
- The defensive registration ROID if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDefRegUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPDefRegUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegUpdateCmdinstance.
-
doDecode
Decode theEPPDefRegUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPDefRegUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPDefRegUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPDefRegUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPDefRegUpdateCmd - 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.
-
getRoid
Gets the defReg roid to update.- Returns:
- DefReg roid if defined;
nullotherwise.
-
setRoid
Sets the defReg roid to update.- Parameters:
aRoid- DefReg Roid
-
getChange
Gets the items to change to the defReg.- Returns:
- Object that contains the list of elements to change to the defReg
if defined;
nullotherwise.
-
setChange
Sets the items to change to the defReg.- Parameters:
newChange- Object that contains the list of elements to change to the defRegdefRegdefReg.
-
getAdd
Gets the items to add to the DefReg.- Returns:
- Object that contains the list of elements to add to the DefReg if
defined;
nullotherwise.
-
setAdd
Sets the items to add to the DefReg.- Parameters:
aAdd- Object that contains the list of elements to add to the DefReg.
-
getRemove
Gets the items to remove from the DefReg.- Returns:
- Object that contains the list of elements to remove from the
DefReg if defined;
nullotherwise.
-
setRemove
Sets the items to remove from the DefReg.- Parameters:
aRemove- Object that contains the list of elements to remove from the DefReg.
-