Package com.verisign.epp.codec.persreg
Class EPPPersRegInfoData
java.lang.Object
com.verisign.epp.codec.persreg.EPPPersRegInfoData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Personal Registration <infData> extension, which allows for the server
to provide a consent identifier.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPPersRegInfoData.EPPPersRegInfoData(String aConsentID) Constructor forEPPPersRegInfoDatathat takes the consent identifier. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPPersRegInfoDatawith this instance.Gets the Personal Registration Consent Identifier.Returns the XML namespace associated with theEPPCodecComponent.voidsetConsentID(String aConsentID) Sets the Personal Registration Consent Identifier.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML root tag forEPPPersRegInfoData.- See Also:
-
-
Constructor Details
-
EPPPersRegInfoData
public EPPPersRegInfoData()Default constructor forEPPPersRegInfoData. -
EPPPersRegInfoData
Constructor forEPPPersRegInfoDatathat takes the consent identifier.- Parameters:
aConsentID- Consent identifier
-
-
Method Details
-
getConsentID
Gets the Personal Registration Consent Identifier.- Returns:
- Consent identifier is defined;
nullotherwise.
-
setConsentID
Sets the Personal Registration Consent Identifier.- Parameters:
aConsentID- Consent Identifier
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPPersRegInfoData
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPPersRegInfoData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPPersRegInfoDatawith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-