public class EPPNameWatchRptTo extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RPTTO_FREQ_DAILY
Daily Report Frequency
|
static java.lang.String |
RPTTO_FREQ_MONTHLY
Monthly Report Frequency
|
static java.lang.String |
RPTTO_FREQ_WEEKLY
Weekly Report Frequency
|
Constructor and Description |
---|
EPPNameWatchRptTo()
EPPNameWatchRptTo default constructor. |
EPPNameWatchRptTo(java.lang.String aRptTo)
EPPNameWatchRptTo constructor that takes the nameWatch
e-mail address to report to. |
EPPNameWatchRptTo(java.lang.String aFreqType,
java.lang.String aRptTo)
EPPNameWatchRptTo constructor that takes the nameWatch
frequency and namewatch e-mail address to report to. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPNameWatchRptTo . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPNameWatchRptTo 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 EPPNameWatchRptTo
instance.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPNameWatchRptTo compare. |
java.lang.String |
getFreqType()
Get nameWatch report frequency.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getRptTo()
Gets the email address to report to.
|
boolean |
isRptToUnspec()
Test whether the report to attribute is unspecified.
|
void |
setFreqType(java.lang.String newFreqType)
Sets the frequency of the report.
|
void |
setRptTo(java.lang.String newRptTo)
Sets the namewatch e-mail address to report to.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String RPTTO_FREQ_DAILY
public static final java.lang.String RPTTO_FREQ_WEEKLY
public static final java.lang.String RPTTO_FREQ_MONTHLY
public EPPNameWatchRptTo()
EPPNameWatchRptTo
default constructor. The period is
initialized to unspecified
. The period must be set
before invoking encode
.public EPPNameWatchRptTo(java.lang.String aRptTo)
EPPNameWatchRptTo
constructor that takes the nameWatch
e-mail address to report to. The frequency is set to
RPTTO_FREQ_DAILY
.aRptTo
- e-mail address to report to.public EPPNameWatchRptTo(java.lang.String aFreqType, java.lang.String aRptTo)
EPPNameWatchRptTo
constructor that takes the nameWatch
frequency and namewatch e-mail address to report to.aFreqType
- Report frequency, which should be one of the
RPTTO_FREQ_
constant values. If null
,
it will be set to RPTTO_FREQ_DAILY
by default.aRptTo
- E-mail address to report to.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPNameWatchRptTo
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPNameWatchRptTo
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- - Root DOM Element to decode EPPNameWatchRptTo from.EPPDecodeException
- Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- - DOM Document that is being built. Used as an Element
factory.EPPEncodeException
- - Unable to encode EPPNameWatchRptTo
instance.public boolean equals(java.lang.Object aObject)
EPPNameWatchRptTo
compare.equals
in class java.lang.Object
aObject
- EPPNameWatchRptTo
instance to compare withpublic java.lang.String getRptTo()
null
otherwise.public java.lang.String getFreqType()
RPTTO_FREQ_
constant values.public boolean isRptToUnspec()
true
is unspecified and false
is
specified.public void setRptTo(java.lang.String newRptTo) throws EPPCodecException
newRptTo
- e-mail address to report toEPPCodecException
- Format errorpublic void setFreqType(java.lang.String newFreqType)
newFreqType
- Should be one of the RPTTO_FREQ_
constant values.public java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.