Class RatingSessionOperationResult

java.lang.Object
com.highdeal.bart.hci.RatingSessionOperationResult
All Implemented Interfaces:
com.highdeal.hci.OperationResult, XMLMarshallable
Direct Known Subclasses:
AsyncRunRatingSessionResult, RunRatingSessionResult

public abstract class RatingSessionOperationResult extends Object implements com.highdeal.hci.OperationResult
This class is a generic abstract class for the results returned by operations on Rating Session.
  • If the current operation on Rating session must return a list of sessions, please use getRatingSessions() method for the result obtention.
  • If the current operation on RatingSession must returns only one RatingSession, please use gesRatingSession() method for the result obtention.
  • Constructor Details

    • RatingSessionOperationResult

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

    • setRatingSessions

      public void setRatingSessions(Vector<RatingSessionModel> list)
      Sets the rating session list.
      Parameters:
      list - a vector of RatingSessionModel.
    • getRatingSessions

      public Vector<RatingSessionModel> getRatingSessions()
      Gets the rating session list. This method must be called by the client, if the current operation on sessions must return a list of sessions.
      Returns:
      a vector of RatingSessionModel.
    • getRatingSession

      public RatingSessionModel getRatingSession()
      Gets the RatingSessionModel. This method must be called by the client, if the current operation on RatingSessionModels must return a single RatingSessionModel.
      Returns:
      the RatingSessionModel.
    • setRatingSession

      public void setRatingSession(RatingSessionModel session)
    • 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