Package com.verisign.epp.codec.persreg
Class EPPPersRegCreate
java.lang.Object
com.verisign.epp.codec.persreg.EPPPersRegCreate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Personal Registration <create> extension, which allows for a client to
provide a consent identifier to override a Defensive Registration.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPPersRegCreate.EPPPersRegCreate(String aConsentID) Constructor forEPPPersRegCreatethat 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 ofEPPPersRegCreatewith 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 forEPPPersRegCreate.- See Also:
-
-
Constructor Details
-
EPPPersRegCreate
public EPPPersRegCreate()Default constructor forEPPPersRegCreate. -
EPPPersRegCreate
Constructor forEPPPersRegCreatethat 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 attributeis 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 encodingEPPPersRegCreate
-
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
EPPPersRegCreate - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPPersRegCreatewith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-