Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchUpdateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPUpdateCmd
com.verisign.epp.codec.nameWatch.EPPNameWatchUpdateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP NameWatch <update> command. The EPP <update>
command provides a transform operation that allows a client to modify the
attributes of a nameWatch object. In addition to the standard EPP command
elements, the <update> command MUST contain a
<nameWatch:update> element that identifies the nameWatch namespace
and the location of the nameWatch schema. In addition to The
<nameWatch:update> element SHALL contain the following child
elements:
-
A <nameWatch:roid> element that contains the fully qualified nameWatch
roid of the object to be updated. Use
getRoidandsetRoidto get and set the element. -
A <nameWatch:chg> element that contains attribute values to be change
to the nameWatch object. Use
getChangeandsetChangeto get and set the element.
EPPReponse is the response associated with
EPPNameWatchUpdateCmd. - 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
ConstructorsConstructorDescriptionEPPNameWatchUpdateCmddefault constructor.EPPNameWatchUpdateCmd(String aTransId, String aRoid) Creates a new EPPNameWatchUpdateCmd object.EPPNameWatchUpdateCmd(String aTransId, String aRoid, EPPNameWatchAddRemove aAdd, EPPNameWatchAddRemove aRemove, EPPNameWatchAddRemove aChange) EPPNameWatchUpdateCmdconstructor that takes the required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchUpdateCmd.protected voidDecode theEPPNameWatchUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPNameWatchUpdateCmdinstance.booleanCompare an instance ofEPPNameWatchUpdateCmdwith this instance.getAdd()Gets the items to add to the nameWatch.Gets the items to change to the nameWatch.getKey()Gets the key for the NameWatch object, which is the NameWatch ROID.Gets the EPP command Namespace associated withEPPNameWatchUpdateCmd.Gets the items to remove from the nameWatch.getRoid()Gets the nameWatch name to update.voidsetAdd(EPPNameWatchAddRemove aAdd) Sets the items to add to the nameWatch.voidsetChange(EPPNameWatchAddRemove newChange) Sets the items to change to the nameWatch.voidsetRemove(EPPNameWatchAddRemove aRemove) Sets the items to remove from the nameWatch.voidSets the nameWatch 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
-
EPPNameWatchUpdateCmd
public EPPNameWatchUpdateCmd()EPPNameWatchUpdateCmddefault constructor. The roid is initialized tonull. The roid and change attributes must be set before invokingencode. -
EPPNameWatchUpdateCmd
Creates a new EPPNameWatchUpdateCmd object.- Parameters:
aTransId- DOCUMENT ME!aRoid- DOCUMENT ME!
-
EPPNameWatchUpdateCmd
public EPPNameWatchUpdateCmd(String aTransId, String aRoid, EPPNameWatchAddRemove aAdd, EPPNameWatchAddRemove aRemove, EPPNameWatchAddRemove aChange) EPPNameWatchUpdateCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aRoid- NameWatch name to update.aAdd- Attributes to add to the nameWatch.nullif no additions.aRemove- Attributes to remove to the nameWatch.nullif no additions.aChange- Attributes to change to the nameWatch.nullif no additions.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPNameWatchUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPNameWatchMapFactory.NS
-
getKey
Gets the key for the NameWatch object, which is the NameWatch ROID.- Overrides:
getKeyin classEPPCommand- Returns:
- The NameWatch ROID if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPNameWatchUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPNameWatchUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameWatchUpdateCmdinstance.
-
doDecode
Decode theEPPNameWatchUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPNameWatchUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPNameWatchUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPNameWatchUpdateCmd - 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 nameWatch name to update.- Returns:
- NameWatch Roid if defined;
nullotherwise.
-
setRoid
Sets the nameWatch roid to update.- Parameters:
aRoid- NameWatch Roid
-
getChange
Gets the items to change to the nameWatch.- Returns:
- Object that contains the list of elements to change to the
nameWatch if defined;
nullotherwise.
-
setChange
Sets the items to change to the nameWatch.- Parameters:
newChange- Object that contains the list of elements to change to the nameWatch.
-
getAdd
Gets the items to add to the nameWatch.- Returns:
- Object that contains the list of elements to add to the
nameWatch if defined;
nullotherwise.
-
setAdd
Sets the items to add to the nameWatch.- Parameters:
aAdd- Object that contains the list of elements to add to the nameWatch.
-
getRemove
Gets the items to remove from the nameWatch.- Returns:
- Object that contains the list of elements to remove from the
nameWatch if defined;
nullotherwise.
-
setRemove
Sets the items to remove from the nameWatch.- Parameters:
aRemove- Object that contains the list of elements to remove from the nameWatch.
-