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,java.io.Serializable,java.lang.Cloneable
public class EPPNameWatchUpdateCmd extends EPPUpdateCmd
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.
EPPReponseis the response associated withEPPNameWatchUpdateCmd.- See Also:
EPPResponse,EPPNameWatchAddRemove, Serialized Form
-
-
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
Constructors Constructor Description EPPNameWatchUpdateCmd()EPPNameWatchUpdateCmddefault constructor.EPPNameWatchUpdateCmd(java.lang.String aTransId, java.lang.String aRoid)Creates a new EPPNameWatchUpdateCmd object.EPPNameWatchUpdateCmd(java.lang.String aTransId, java.lang.String aRoid, EPPNameWatchAddRemove aAdd, EPPNameWatchAddRemove aRemove, EPPNameWatchAddRemove aChange)EPPNameWatchUpdateCmdconstructor that takes the required attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameWatchUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPNameWatchUpdateCmdattributes 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 theEPPNameWatchUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameWatchUpdateCmdwith this instance.EPPNameWatchAddRemovegetAdd()Gets the items to add to the nameWatch.EPPNameWatchAddRemovegetChange()Gets the items to change to the nameWatch.java.lang.StringgetKey()Gets the key for the NameWatch object, which is the NameWatch ROID.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPNameWatchUpdateCmd.EPPNameWatchAddRemovegetRemove()Gets the items to remove from the nameWatch.java.lang.StringgetRoid()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.voidsetRoid(java.lang.String aRoid)Sets the nameWatch roid to update.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, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Constructor Detail
-
EPPNameWatchUpdateCmd
public EPPNameWatchUpdateCmd()
EPPNameWatchUpdateCmddefault constructor. The roid is initialized tonull. The roid and change attributes must be set before invokingencode.
-
EPPNameWatchUpdateCmd
public EPPNameWatchUpdateCmd(java.lang.String aTransId, java.lang.String aRoid)Creates a new EPPNameWatchUpdateCmd object.- Parameters:
aTransId- DOCUMENT ME!aRoid- DOCUMENT ME!
-
EPPNameWatchUpdateCmd
public EPPNameWatchUpdateCmd(java.lang.String aTransId, java.lang.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 Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPNameWatchUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPNameWatchMapFactory.NS
-
getKey
public java.lang.String getKey()
Gets the key for the NameWatch object, which is the NameWatch ROID.- Overrides:
getKeyin classEPPCommand- Returns:
- The NameWatch ROID if set;
nullotherwise.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameWatchUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameWatchUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPNameWatchUpdateCmd - 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.
-
getRoid
public java.lang.String getRoid()
Gets the nameWatch name to update.- Returns:
- NameWatch Roid if defined;
nullotherwise.
-
setRoid
public void setRoid(java.lang.String aRoid)
Sets the nameWatch roid to update.- Parameters:
aRoid- NameWatch Roid
-
getChange
public EPPNameWatchAddRemove 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
public void setChange(EPPNameWatchAddRemove newChange)
Sets the items to change to the nameWatch.- Parameters:
newChange- Object that contains the list of elements to change to the nameWatch.
-
getAdd
public EPPNameWatchAddRemove 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
public void setAdd(EPPNameWatchAddRemove aAdd)
Sets the items to add to the nameWatch.- Parameters:
aAdd- Object that contains the list of elements to add to the nameWatch.
-
getRemove
public EPPNameWatchAddRemove 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
public void setRemove(EPPNameWatchAddRemove aRemove)
Sets the items to remove from the nameWatch.- Parameters:
aRemove- Object that contains the list of elements to remove from the nameWatch.
-
-