public class EPPStatement extends java.lang.Object implements EPPCodecComponent
getPurpose
and setPurpose
to get and set the
purpose element(s), Use getRecipient
and setRecipient
to get
and set the recipient element. Use methods getRetention>
and
setRetention
to get and set the retention element.EPPDcp
,
Serialized FormModifier and Type | Field and Description |
---|---|
static short |
RETENTION_BUSINESS
Constant used with the Retention attribute that means data persists per
business practices.
|
static short |
RETENTION_INDEFINITE
Constant used with the Retention attribute that means data persists
indefinitely.
|
static short |
RETENTION_LEGAL
Constant used with the Retention attribute that means data persists per
legal requirements.
|
static short |
RETENTION_NONE
Constant used with the Retention attribute that means Data is not
persistent, and is not retained for more than a brief period of time
necessary to make use of it during the course of a single online
interaction
|
static short |
RETENTION_STATED
Constant used with the Retention attribute that means Data persists to
meet the stated purpose
|
Constructor and Description |
---|
EPPStatement()
Default constructor.
|
EPPStatement(EPPRecipient aRecipient,
EPPPurpose aPurpose,
short aRetention)
Allocates a new
EPPStatement and sets all of the required
attributes to the arguments values. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPStatement . |
void |
decode(org.w3c.dom.Element aElement)
decode
EPPStatement from a DOM element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode
EPPStatement into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
implements a
EPPStatment compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
EPPPurpose |
getPurpose() |
EPPRecipient |
getRecipient() |
short |
getRetention() |
void |
setPurpose(EPPPurpose apurpouse) |
void |
setRecipient(EPPRecipient aRecipient) |
void |
setRetention(short aRetention) |
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final short RETENTION_BUSINESS
public static final short RETENTION_INDEFINITE
public static final short RETENTION_LEGAL
public static final short RETENTION_NONE
public static final short RETENTION_STATED
public EPPStatement()
public EPPStatement(EPPRecipient aRecipient, EPPPurpose aPurpose, short aRetention)
EPPStatement
and sets all of the required
attributes to the arguments values.aRecipient
- Describes the recipients of collected dataaPurpose
- Describe the purposes for which data is collectedaRetention
- Describes data retention practices using one of the
RETENTION_
constants.public EPPRecipient getRecipient()
public void setRecipient(EPPRecipient aRecipient)
public EPPPurpose getPurpose()
public void setPurpose(EPPPurpose apurpouse)
public short getRetention()
public void setRetention(short aRetention)
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPStatement
into a DOM element tree. The "statment"
element is created and the attribute nodes are appended as children.encode
in interface EPPCodecComponent
aDocument
- DOM Document being builtEPPEncodeException
- Error encoding the DOM element tree.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPStatement
from a DOM element tree. The aElement
argument needs to be the <statement> elementdecode
in interface EPPCodecComponent
aElement
- root element tree.EPPDecodeException
- Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
EPPStatment
compare.equals
in class java.lang.Object
aObject
- EPPStatement
instance to compare withtrue
if equal; false
otherwisepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPStatement
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPStatement
java.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.Object
String
if successful; ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.