Package com.highdeal.bart.hci
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 Summary
ConstructorsConstructorDescriptionRatingSessionOperationResult(String resultTagName, boolean singleton) Builds an RatingSessionOperationResult without rating session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the RatingSessionModel.Gets the rating session list.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetRatingSession(RatingSessionModel session) voidSets the rating session list.
-
Constructor Details
-
RatingSessionOperationResult
Builds an RatingSessionOperationResult without rating session.- Parameters:
resultTagName- the operation result name.singleton- is attrueif there is only one result(cdr).
-
-
Method Details
-
setRatingSessions
Sets the rating session list.- Parameters:
list- a vector ofRatingSessionModel.
-
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
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
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
getOperandReference
- Specified by:
getOperandReferencein interfacecom.highdeal.hci.OperationResult
-