Package com.verisign.epp.codec.persreg
Class EPPPersRegGenData
java.lang.Object
com.verisign.epp.codec.persreg.EPPPersRegGenData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPPersRegCreateData,EPPPersRegRenewData,EPPPersRegTransferData
Personal Registration <genDataType> complexType, which is reused
by:
- <creData> -
EPPPersRegCreateData - <renData> -
EPPPersRegRenewData - <trnData> -
EPPPersRegTransferData
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPPersRegGenData(boolean aIsBundledRate) Constructor that sets the bundled flag. -
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 ofEPPPersGenDatawith this instance.protected abstract StringGets the root element name to use.booleanDoes the bundled rate apply?voidsetIsBundedRate(boolean aIsBundledRate) Sets the bundled rate flag.Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.verisign.epp.codec.gen.EPPCodecComponent
getNamespace
-
Constructor Details
-
EPPPersRegGenData
public EPPPersRegGenData()Default constructor. Bundled flag defaults tofalse. -
EPPPersRegGenData
public EPPPersRegGenData(boolean aIsBundledRate) Constructor that sets the bundled flag.- Parameters:
aIsBundledRate- Does the bundled rate apply?
-
-
Method Details
-
isBundledRate
public boolean isBundledRate()Does the bundled rate apply?- Returns:
trueif bundled rate applies;falseotherwise.
-
setIsBundedRate
public void setIsBundedRate(boolean aIsBundledRate) Sets the bundled rate flag.- Parameters:
aIsBundledRate- Does the bundled rate apply?
-
equals
Compare an instance ofEPPPersGenDatawith this instance. -
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 encodingEPPPersRegGenData
-
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
EPPPersRegGenData - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getRootElm
Gets the root element name to use. The derived classes must define what the root element name is.- Returns:
- Root element name
-