Package com.verisign.epp.codec.gen
Class EPPStatement
java.lang.Object
com.verisign.epp.codec.gen.EPPStatement
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Describe data collection purposes, data recipients, and data retention. Each
<statement> element MUST contain a <purpose> element, a
<recipient> element, and a <retention> element
Use methods
Use methods
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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortConstant used with the Retention attribute that means data persists per business practices.static final shortConstant used with the Retention attribute that means data persists indefinitely.static final shortConstant used with the Retention attribute that means data persists per legal requirements.static final shortConstant 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 interactionstatic final shortConstant used with the Retention attribute that means Data persists to meet the stated purpose -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPStatement(EPPRecipient aRecipient, EPPPurpose aPurpose, short aRetention) Allocates a newEPPStatementand sets all of the required attributes to the arguments values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPStatement.voiddecodeEPPStatementfrom a DOM element tree.encodeEPPStatementinto a DOM element tree.booleanimplements aEPPStatmentcompare.Returns the XML namespace associated with theEPPCodecComponent.shortvoidsetPurpose(EPPPurpose apurpouse) voidsetRecipient(EPPRecipient aRecipient) voidsetRetention(short aRetention) toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
RETENTION_BUSINESS
public static final short RETENTION_BUSINESSConstant used with the Retention attribute that means data persists per business practices.- See Also:
-
RETENTION_INDEFINITE
public static final short RETENTION_INDEFINITEConstant used with the Retention attribute that means data persists indefinitely.- See Also:
-
RETENTION_LEGAL
public static final short RETENTION_LEGALConstant used with the Retention attribute that means data persists per legal requirements.- See Also:
-
RETENTION_NONE
public static final short RETENTION_NONEConstant 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- See Also:
-
RETENTION_STATED
public static final short RETENTION_STATEDConstant used with the Retention attribute that means Data persists to meet the stated purpose- See Also:
-
-
Constructor Details
-
EPPStatement
public EPPStatement()Default constructor. -
EPPStatement
Allocates a newEPPStatementand sets all of the required attributes to the arguments values.- Parameters:
aRecipient- Describes the recipients of collected dataaPurpose- Describe the purposes for which data is collectedaRetention- Describes data retention practices using one of theRETENTION_constants.
-
-
Method Details
-
getRecipient
-
setRecipient
-
getPurpose
-
setPurpose
-
getRetention
public short getRetention() -
setRetention
public void setRetention(short aRetention) -
encode
encodeEPPStatementinto a DOM element tree. The "statment" element is created and the attribute nodes are appended as children.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document being built- Returns:
- statement root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPStatementfrom a DOM element tree. TheaElementargument needs to be the <statement> element- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- root element tree.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements aEPPStatmentcompare. -
clone
CloneEPPStatement.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPStatement - Throws:
CloneNotSupportedException- standard Object.clone exception
-
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.
-