Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchAddRemove
- java.lang.Object
-
- com.verisign.epp.codec.nameWatch.EPPNameWatchAddRemove
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPNameWatchAddRemove extends java.lang.Object implements EPPCodecComponent
Represents attributes to change with aEPPNameWatchUpdateCmd. InEPPNameWatchUpdateCmd, an instance ofEPPNameWatchAddRemoveis used to specify the attributes to change
The NameWatch Mapping Specification describes the following attributes:
-
Zero or more <nameWatch:registrant> element that contains the
identifier for the human or organizational social information (contact)
object to be associated with the nameWatch object as the object registrant.
This object identifier MUST be known to the server before the contact
object can be associated with the nameWatch object. Use
getRegistrantandsetRegistrantto get and set the element. -
Zero or more <nameWatch:rptTo> elements that contain the email address
and frequency type to be associated with the nameWatch. Use
getRptToandsetRptToto get and set the element. -
One or two <nameWatch:AuthInfo> element that contains authorization
information for the nameWatch object. Use
getAuthInfoandsetAuthInfoto get and set the element.
It is important to note that the maximum number of nameWatch attribute elements is subject to the number of values currently associated with the nameWatch object.EPPNameWatchAddRemovewill delegate the validation of the cardinality of the nameWatch attributes elements to the EPP Server.- See Also:
EPPNameWatchUpdateCmd, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPNameWatchAddRemove()Default constructor forEPPNameWatchAddRemove.EPPNameWatchAddRemove(java.lang.String aRegistrant, EPPNameWatchRptTo aRptTo, EPPAuthInfo aAuthInfo)Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.EPPNameWatchAddRemove(java.util.Vector aStatuses)Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameWatchAddRemove.voiddecode(org.w3c.dom.Element aElement)Decode theEPPNameWatchAddRemoveattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPNameWatchAddRemoveinstance.booleanequals(java.lang.Object aObject)implements a deepEPPNameWatchAddRemovecompare.EPPAuthInfogetAuthInfo()Get authorization informationjava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRegistrant()Get registrantEPPNameWatchRptTogetRptTo()Gets the rptTojava.util.VectorgetStatuses()Gets the statuses to add or remove.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization informationvoidsetRegistrant(java.lang.String newRegistrant)Set registrantvoidsetRptTo(EPPNameWatchRptTo aRptTo)Sets the rptTovoidsetStatuses(java.util.Vector aStatuses)Sets the statuses to add or remove.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPNameWatchAddRemove
public EPPNameWatchAddRemove()
Default constructor forEPPNameWatchAddRemove. All of the attribute default tonullto indicate no modification.
-
EPPNameWatchAddRemove
public EPPNameWatchAddRemove(java.util.Vector aStatuses)
Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.- Parameters:
aStatuses-Vectorstatuses
-
EPPNameWatchAddRemove
public EPPNameWatchAddRemove(java.lang.String aRegistrant, EPPNameWatchRptTo aRptTo, EPPAuthInfo aAuthInfo)Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.- Parameters:
aRegistrant-StringregistrantaRptTo-EPPNameWatchRptToreply toaAuthInfo-EPPAuthInfoauthorization information
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameWatchAddRemoveinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPNameWatchAddRemoveinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameWatchAddRemoveinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPNameWatchAddRemoveattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchAddRemovefrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPNameWatchAddRemovecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPNameWatchAddRemoveinstance to compare with- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameWatchAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPNameWatchAddRemove - 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 classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Get authorization information- Returns:
- Instance of
EPPAuthInfoif defined;nullotherwise.
-
getRegistrant
public java.lang.String getRegistrant()
Get registrant- Returns:
- registrant if defined;
nullotherwise.
-
getRptTo
public EPPNameWatchRptTo getRptTo()
Gets the rptTo- Returns:
- Instance of
EPPNameWatchRptToif defined;nullotherwise.
-
getStatuses
public java.util.Vector getStatuses()
Gets the statuses to add or remove. TheEPPNameWatchStatus.STATUS_constants can be used for the statuses.- Returns:
- Vector of status
Stringinstances.
-
setStatuses
public void setStatuses(java.util.Vector aStatuses)
Sets the statuses to add or remove. TheEPPNameWatchStatus.STATUS_constants can be used for the statuses.- Parameters:
aStatuses- Vector of statusStringinstances.
-
setRptTo
public void setRptTo(EPPNameWatchRptTo aRptTo)
Sets the rptTo- Parameters:
aRptTo- EPPNameWatchRptTo
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
setRegistrant
public void setRegistrant(java.lang.String newRegistrant)
Set registrant- Parameters:
newRegistrant- registrant
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-