Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchRptTo
java.lang.Object
com.verisign.epp.codec.nameWatch.EPPNameWatchRptTo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Specifies the e-mail address to send the NameWatch reports and the frequency
of the reports.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPNameWatchRptTodefault constructor.EPPNameWatchRptTo(String aRptTo) EPPNameWatchRptToconstructor that takes the nameWatch e-mail address to report to.EPPNameWatchRptTo(String aFreqType, String aRptTo) EPPNameWatchRptToconstructor that takes the nameWatch frequency and namewatch e-mail address to report to. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchRptTo.voidDecode the EPPNameWatchRptTo attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPNameWatchRptTo instance.booleanimplements a deepEPPNameWatchRptTocompare.Get nameWatch report frequency.Returns the XML namespace associated with theEPPCodecComponent.getRptTo()Gets the email address to report to.booleanTest whether the report to attribute is unspecified.voidsetFreqType(String newFreqType) Sets the frequency of the report.voidSets the namewatch e-mail address to report to.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
RPTTO_FREQ_DAILY
Daily Report Frequency- See Also:
-
RPTTO_FREQ_WEEKLY
Weekly Report Frequency- See Also:
-
RPTTO_FREQ_MONTHLY
Monthly Report Frequency- See Also:
-
-
Constructor Details
-
EPPNameWatchRptTo
public EPPNameWatchRptTo()EPPNameWatchRptTodefault constructor. The period is initialized tounspecified. The period must be set before invokingencode. -
EPPNameWatchRptTo
EPPNameWatchRptToconstructor that takes the nameWatch e-mail address to report to. The frequency is set toRPTTO_FREQ_DAILY.- Parameters:
aRptTo- e-mail address to report to.
-
EPPNameWatchRptTo
EPPNameWatchRptToconstructor that takes the nameWatch frequency and namewatch e-mail address to report to.- Parameters:
aFreqType- Report frequency, which should be one of theRPTTO_FREQ_constant values. Ifnull, it will be set toRPTTO_FREQ_DAILYby default.aRptTo- E-mail address to report to.
-
-
Method Details
-
clone
CloneEPPNameWatchRptTo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPNameWatchRptTo - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode the EPPNameWatchRptTo attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPNameWatchRptTo from.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of the EPPNameWatchRptTo instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPNameWatchRptTo instance.
- Throws:
EPPEncodeException- - Unable to encode EPPNameWatchRptTo instance.
-
equals
implements a deepEPPNameWatchRptTocompare. -
getRptTo
Gets the email address to report to.- Returns:
- Report to e-mail address if defined;
nullotherwise.
-
getFreqType
Get nameWatch report frequency.- Returns:
- Report frequency, which should be one of the
RPTTO_FREQ_constant values.
-
isRptToUnspec
public boolean isRptToUnspec()Test whether the report to attribute is unspecified.- Returns:
trueis unspecified andfalseis specified.
-
setRptTo
Sets the namewatch e-mail address to report to.- Parameters:
newRptTo- e-mail address to report to- Throws:
EPPCodecException- Format error
-
setFreqType
Sets the frequency of the report.- Parameters:
newFreqType- Should be one of theRPTTO_FREQ_constant values.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-