Package com.verisign.epp.codec.persreg
Class EPPPersRegGenData
- java.lang.Object
-
- com.verisign.epp.codec.persreg.EPPPersRegGenData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
EPPPersRegCreateData,EPPPersRegRenewData,EPPPersRegTransferData
public abstract class EPPPersRegGenData extends java.lang.Object implements EPPCodecComponent
Personal Registration <genDataType> complexType, which is reused by:
- <creData> -
EPPPersRegCreateData - <renData> -
EPPPersRegRenewData - <trnData> -
EPPPersRegTransferData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPPersRegGenData()Default constructor.EPPPersRegGenData(boolean aIsBundledRate)Constructor that sets the bundled flag.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()clone anEPPCodecComponent.voiddecode(org.w3c.dom.Element aElement)decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPPersGenDatawith this instance.protected abstract java.lang.StringgetRootElm()Gets the root element name to use.booleanisBundledRate()Does 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, wait
-
Methods inherited from interface com.verisign.epp.codec.gen.EPPCodecComponent
getNamespace
-
-
-
-
Method Detail
-
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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPPersGenDatawith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptiondecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPPersRegGenData - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getRootElm
protected abstract java.lang.String getRootElm()
Gets the root element name to use. The derived classes must define what the root element name is.- Returns:
- Root element name
-
-