Class EPPBalanceInfoResp

java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.balance.v04.EPPBalanceInfoResp
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPBalanceInfoResp extends EPPResponse
A concrete EPPResponse that knows how to encode/decode Balance Info response from/to XML and object instance.
See Also:
  • Field Details

  • Constructor Details

    • EPPBalanceInfoResp

      public EPPBalanceInfoResp()
      Default constructor
    • EPPBalanceInfoResp

      public EPPBalanceInfoResp(EPPTransId aTransId, EPPBalance aBalance)
      EPPBalanceInfoResp that takes a single balance, where there must be at least one balance set.
      Parameters:
      aTransId - Transaction identifier information (server and optional client)
    • EPPBalanceInfoResp

      public EPPBalanceInfoResp(EPPTransId aTransId, List<EPPBalance> aBalances)
      EPPBalanceInfoResp that takes all balances.
      Parameters:
      aTransId - Transaction identifier information (server and optional client)
  • Method Details

    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPResponse.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Overrides:
      getNamespace in class EPPResponse
      Returns:
      XML namespace for the EPPResponse.
    • doEncode

      public Element doEncode(Document aDocument) throws EPPEncodeException
      Put all data contained in this poll response into the given XML document
      Overrides:
      doEncode in class EPPResponse
      Parameters:
      aDocument - the DOM Document to attach data to.
      Returns:
      the element that is a parent of the poll data
      Throws:
      EPPEncodeException - Thrown if any errors occur during the encode process
    • doDecode

      public void doDecode(Element aElement) throws EPPDecodeException
      Populates the data of this instance from the given XML Element which is part of a DOM Document
      Overrides:
      doDecode in class EPPResponse
      Parameters:
      aElement - the element that is a parent of the poll data
      Throws:
      EPPDecodeException - thrown if any errors occur during the decode operation
    • equals

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

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

      public boolean hasBalances()
      Are the balances defined?
      Returns:
      true if the balances are defined; false otherwise.
    • getBalances

      public List<EPPBalance> getBalances()
      Gets the list of balances.
      Returns:
      The list of EPPBalance objects
    • addBalance

      public void addBalance(EPPBalance aBalance)
      Adds a balance to the list of balances.
      Parameters:
      aBalance - Balance to add to the list of balances.
    • setBalances

      public void setBalances(List<EPPBalance> aBalances)
      Sets the list of balances for the info response.
      Parameters:
      aBalances - The list of balances