Class EPPLowBalancePollThreshold

java.lang.Object
com.verisign.epp.codec.lowbalancepoll.EPPLowBalancePollThreshold
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPLowBalancePollThreshold extends Object implements EPPCodecComponent
The EPPLowBalancePollThreshold is the EPPCodecComponent that knows how to encode and decode Credit Threshold Type elements from/to XML and object instance.

Title: EPP 1.0 Low Balance

Description: Low Balance Poll Mapping for the EPP SDK

Copyright: Copyright (c) 2004

Company: VeriSign

See Also:
  • Field Details

  • Constructor Details

    • EPPLowBalancePollThreshold

      public EPPLowBalancePollThreshold()
      Create a new instance of EPPLowBalancePollThreshold
    • EPPLowBalancePollThreshold

      public EPPLowBalancePollThreshold(String aType, String aCreditThresholdValue)
      Create a new instance of EPPLowBalancePollThreshold with the given threshold type
      Parameters:
      aType - the type value to use for this instance. Should use one of the static constants defined for this class as a value.
      aCreditThresholdValue - Credit threshold value (fixed or percentage)
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Append all data from this Low Balance data to the given DOM Document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - The DOM Document to append data to
      Returns:
      DOM Element encoded
      Throws:
      EPPEncodeException - Thrown when errors occur during the encode attempt or if the instance is invalid.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPLowBalancePollThreshold compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPLowBalancePollThreshold instance to compare with
      Returns:
      true if equal false otherwise
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPLowBalancePollThreshold.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPLowBalancePollThreshold
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • getType

      public String getType()
    • setType

      public void setType(String aType)
    • getCreditThresholdValue

      public String getCreditThresholdValue()
    • setCreditThresholdValue

      public void setCreditThresholdValue(String aCeditThresholdValue)
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.