Class EPPPersRegGenData

java.lang.Object
com.verisign.epp.codec.persreg.EPPPersRegGenData
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable
Direct Known Subclasses:
EPPPersRegCreateData, EPPPersRegRenewData, EPPPersRegTransferData

public abstract class EPPPersRegGenData extends Object implements EPPCodecComponent
Personal Registration <genDataType> complexType, which is reused by:

  • <creData> - EPPPersRegCreateData
  • <renData> - EPPPersRegRenewData
  • <trnData> - EPPPersRegTransferData
See Also:
  • Constructor Details

    • EPPPersRegGenData

      public EPPPersRegGenData()
      Default constructor. Bundled flag defaults to false.
    • 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:
      true if bundled rate applies; false otherwise.
    • setIsBundedRate

      public void setIsBundedRate(boolean aIsBundledRate)
      Sets the bundled rate flag.
      Parameters:
      aIsBundledRate - Does the bundled rate apply?
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPPersGenData with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      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:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document, which acts is an Element factory
      Returns:
      Element Root element associated with the object
      Throws:
      EPPEncodeException - Error encoding EPPPersRegGenData
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      decode a DOM element tree to initialize the instance attributes. The aElement argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode
      Throws:
      EPPDecodeException - Error decoding Element
    • clone

      public Object clone() throws CloneNotSupportedException
      clone an EPPCodecComponent.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPPersRegGenData
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • getRootElm

      protected abstract String getRootElm()
      Gets the root element name to use. The derived classes must define what the root element name is.
      Returns:
      Root element name