Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchAddRemove
java.lang.Object
com.verisign.epp.codec.nameWatch.EPPNameWatchAddRemove
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents attributes to change with a
The NameWatch Mapping Specification describes the following attributes:
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.
EPPNameWatchUpdateCmd.
In EPPNameWatchUpdateCmd, an instance of
EPPNameWatchAddRemove is used to specify the attributes to changeThe 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.
EPPNameWatchAddRemove will delegate the
validation of the cardinality of the nameWatch attributes elements to
the EPP Server. - See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPNameWatchAddRemove.EPPNameWatchAddRemove(String aRegistrant, EPPNameWatchRptTo aRptTo, EPPAuthInfo aAuthInfo) Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.EPPNameWatchAddRemove(Vector aStatuses) Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchAddRemove.voidDecode theEPPNameWatchAddRemoveattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPNameWatchAddRemoveinstance.booleanimplements a deepEPPNameWatchAddRemovecompare.Get authorization informationReturns the XML namespace associated with theEPPCodecComponent.Get registrantgetRptTo()Gets the rptToGets the statuses to add or remove.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization informationvoidsetRegistrant(String newRegistrant) Set registrantvoidsetRptTo(EPPNameWatchRptTo aRptTo) Sets the rptTovoidsetStatuses(Vector aStatuses) Sets the statuses to add or remove.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPNameWatchAddRemove
public EPPNameWatchAddRemove()Default constructor forEPPNameWatchAddRemove. All of the attribute default tonullto indicate no modification. -
EPPNameWatchAddRemove
Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.- Parameters:
aStatuses-Vectorstatuses
-
EPPNameWatchAddRemove
Constructor forEPPNameWatchAddRemovethat includes the attributes as arguments.- Parameters:
aRegistrant-StringregistrantaRptTo-EPPNameWatchRptToreply toaAuthInfo-EPPAuthInfoauthorization information
-
-
Method Details
-
encode
Encode 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
Decode 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
implements a deepEPPNameWatchAddRemovecompare. -
clone
CloneEPPNameWatchAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPNameWatchAddRemove - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getAuthInfo
Get authorization information- Returns:
- Instance of
EPPAuthInfoif defined;nullotherwise.
-
getRegistrant
Get registrant- Returns:
- registrant if defined;
nullotherwise.
-
getRptTo
Gets the rptTo- Returns:
- Instance of
EPPNameWatchRptToif defined;nullotherwise.
-
getStatuses
Gets the statuses to add or remove. TheEPPNameWatchStatus.STATUS_constants can be used for the statuses.- Returns:
- Vector of status
Stringinstances.
-
setStatuses
Sets the statuses to add or remove. TheEPPNameWatchStatus.STATUS_constants can be used for the statuses.- Parameters:
aStatuses- Vector of statusStringinstances.
-
setRptTo
Sets the rptTo- Parameters:
aRptTo- EPPNameWatchRptTo
-
setAuthInfo
Set authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
setRegistrant
Set registrant- Parameters:
newRegistrant- registrant
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-