Package com.verisign.epp.codec.gen
Class EPPStatement
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPStatement
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPStatement extends java.lang.Object implements EPPCodecComponent
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 methodsgetPurposeandsetPurposeto get and set the purpose element(s), UsegetRecipientandsetRecipientto get and set the recipient element. Use methodsgetRetention>andsetRetentionto get and set the retention element.- See Also:
EPPDcp, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static shortRETENTION_BUSINESSConstant used with the Retention attribute that means data persists per business practices.static shortRETENTION_INDEFINITEConstant used with the Retention attribute that means data persists indefinitely.static shortRETENTION_LEGALConstant used with the Retention attribute that means data persists per legal requirements.static shortRETENTION_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 interactionstatic shortRETENTION_STATEDConstant used with the Retention attribute that means Data persists to meet the stated purpose
-
Constructor Summary
Constructors Constructor Description EPPStatement()Default constructor.EPPStatement(EPPRecipient aRecipient, EPPPurpose aPurpose, short aRetention)Allocates a newEPPStatementand sets all of the required attributes to the arguments values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPStatement.voiddecode(org.w3c.dom.Element aElement)decodeEPPStatementfrom a DOM element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)encodeEPPStatementinto a DOM element tree.booleanequals(java.lang.Object aObject)implements aEPPStatmentcompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPPurposegetPurpose()EPPRecipientgetRecipient()shortgetRetention()voidsetPurpose(EPPPurpose apurpouse)voidsetRecipient(EPPRecipient aRecipient)voidsetRetention(short aRetention)java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
RETENTION_BUSINESS
public static final short RETENTION_BUSINESS
Constant used with the Retention attribute that means data persists per business practices.- See Also:
- Constant Field Values
-
RETENTION_INDEFINITE
public static final short RETENTION_INDEFINITE
Constant used with the Retention attribute that means data persists indefinitely.- See Also:
- Constant Field Values
-
RETENTION_LEGAL
public static final short RETENTION_LEGAL
Constant used with the Retention attribute that means data persists per legal requirements.- See Also:
- Constant Field Values
-
RETENTION_NONE
public static final 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- See Also:
- Constant Field Values
-
RETENTION_STATED
public static final short RETENTION_STATED
Constant used with the Retention attribute that means Data persists to meet the stated purpose- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPStatement
public EPPStatement()
Default constructor.
-
EPPStatement
public EPPStatement(EPPRecipient aRecipient, EPPPurpose aPurpose, short aRetention)
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 Detail
-
getRecipient
public EPPRecipient getRecipient()
-
setRecipient
public void setRecipient(EPPRecipient aRecipient)
-
getPurpose
public EPPPurpose getPurpose()
-
setPurpose
public void setPurpose(EPPPurpose apurpouse)
-
getRetention
public short getRetention()
-
setRetention
public void setRetention(short aRetention)
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencodeEPPStatementinto 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptiondecodeEPPStatementfrom 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
public boolean equals(java.lang.Object aObject)
implements aEPPStatmentcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPStatementinstance to compare with- Returns:
trueif equal;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPStatement.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPStatement - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-