public class EPPNameWatchAddRemove extends java.lang.Object implements EPPCodecComponent
EPPNameWatchUpdateCmd.
In EPPNameWatchUpdateCmd, an instance of
EPPNameWatchAddRemove is used to specify the attributes to changegetRegistrant and setRegistrant to get and set
the element.
getRptTo and setRptTo to get and set the element.
getAuthInfo and
setAuthInfo to get and set the element.
EPPNameWatchAddRemove will delegate the
validation of the cardinality of the nameWatch attributes elements to
the EPP Server. EPPNameWatchUpdateCmd,
Serialized Form| Constructor and Description |
|---|
EPPNameWatchAddRemove()
Default constructor for
EPPNameWatchAddRemove. |
EPPNameWatchAddRemove(java.lang.String aRegistrant,
EPPNameWatchRptTo aRptTo,
EPPAuthInfo aAuthInfo)
Constructor for
EPPNameWatchAddRemove that includes the
attributes as arguments. |
EPPNameWatchAddRemove(java.util.Vector aStatuses)
Constructor for
EPPNameWatchAddRemove that includes the
attributes as arguments. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPNameWatchAddRemove. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPNameWatchAddRemove attributes from the
aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPNameWatchAddRemove instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPNameWatchAddRemove compare. |
EPPAuthInfo |
getAuthInfo()
Get authorization information
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getRegistrant()
Get registrant
|
EPPNameWatchRptTo |
getRptTo()
Gets the rptTo
|
java.util.Vector |
getStatuses()
Gets the statuses to add or remove.
|
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information
|
void |
setRegistrant(java.lang.String newRegistrant)
Set registrant
|
void |
setRptTo(EPPNameWatchRptTo aRptTo)
Sets the rptTo
|
void |
setStatuses(java.util.Vector aStatuses)
Sets the statuses to add or remove.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public EPPNameWatchAddRemove()
EPPNameWatchAddRemove. All of the
attribute default to null to indicate no modification.public EPPNameWatchAddRemove(java.util.Vector aStatuses)
EPPNameWatchAddRemove that includes the
attributes as arguments.aStatuses - Vector statusespublic EPPNameWatchAddRemove(java.lang.String aRegistrant,
EPPNameWatchRptTo aRptTo,
EPPAuthInfo aAuthInfo)
EPPNameWatchAddRemove that includes the
attributes as arguments.aRegistrant - String registrantaRptTo - EPPNameWatchRptTo reply toaAuthInfo - EPPAuthInfo authorization informationpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPNameWatchAddRemove instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element
factory.EPPNameWatchAddRemove instance.EPPEncodeException - Unable to encode
EPPNameWatchAddRemove instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPNameWatchAddRemove attributes from the
aElement DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode
EPPNameWatchAddRemove from.EPPDecodeException - Unable to decode aElement.public boolean equals(java.lang.Object aObject)
EPPNameWatchAddRemove compare.equals in class java.lang.ObjectaObject - EPPNameWatchAddRemove instance to compare
withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPNameWatchAddRemove.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPNameWatchAddRemovejava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public EPPAuthInfo getAuthInfo()
EPPAuthInfo if defined;
null otherwise.public java.lang.String getRegistrant()
null otherwise.public EPPNameWatchRptTo getRptTo()
EPPNameWatchRptTo if defined;
null otherwise.public java.util.Vector getStatuses()
EPPNameWatchStatus.STATUS_ constants can be used for
the statuses.String instances.public void setStatuses(java.util.Vector aStatuses)
EPPNameWatchStatus.STATUS_ constants can be used for
the statuses.aStatuses - Vector of status String instances.public void setRptTo(EPPNameWatchRptTo aRptTo)
aRptTo - EPPNameWatchRptTopublic void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo - EPPAuthInfopublic void setRegistrant(java.lang.String newRegistrant)
newRegistrant - registrantpublic java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.