Class CDROperationResult

java.lang.Object
com.highdeal.bart.hci.CDROperationResult
All Implemented Interfaces:
com.highdeal.hci.OperationResult, XMLMarshallable
Direct Known Subclasses:
CDRListModel, CreateCDRResult, DeduplicateCDRResult, ModifyCDRResult, RateCDRResult

public abstract class CDROperationResult extends Object implements com.highdeal.hci.OperationResult
This class is a generic abstract class for the results returned by operations on CDR.
  • If the current operation on CDR must return a list of CDRs, please use getCDRs() method for the result obtention.
  • If the current operation on CDRs must return only one CDR, please use getCDR() method for the result obtention.
  • Constructor Details

    • CDROperationResult

      public CDROperationResult(String resultTagName, boolean singleton)
      Builds an CDROperationResult without CDR.
      Parameters:
      resultTagName - the operation result name.
      singleton - is at true if there is only one result(cdr).
  • Method Details

    • setCDRs

      public void setCDRs(Vector<CDRModel> list)
      Sets the cdrs list.
      Parameters:
      list - a vector of CDRModel.
    • getCDRs

      public Vector<CDRModel> getCDRs()
      Gets the cdr list. This method must be called by the client, if the current operation on cdrs must return a list of cdrs.
      Returns:
      a vector of CDRModel.
    • getCDR

      public CDRModel getCDR()
      Gets the cdr. This method must be called by the client, if the current operation on cdrs must return a single cdr.
      Returns:
      the CDRModel.
    • setCDR

      public void setCDR(CDRModel cdr)
      Sets the cdr(internal use).
      Parameters:
      cdr - the cdrModel.
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Specified by:
      setAttributes in interface XMLMarshallable
      Parameters:
      atts - The XML attributes of the current element
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Parameters:
      cData - The character data to be added
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Specified by:
      addChild in interface XMLMarshallable
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Specified by:
      marshal in interface XMLMarshallable
      Parameters:
      output - The XML output to marshal the object into
    • getOperandReference

      public String getOperandReference()
      Specified by:
      getOperandReference in interface com.highdeal.hci.OperationResult