class SocketUtilities

SocketUtilities class is a Utility class which provides following functionality.

Public Methods

[more] SocketUtilities()
Basic Constructor for SocketUtilities
[more]static SocketUtilities* getInstance()
Return the instance for class SocketUtilities
[more]map<string,string> * getValue(string elementPath, Session*session, bool includeSets)
Returns the value of AbstractUISocketElement specified in elementPath
[more]int setValue(string elementPath, string value, Session*session)
Set the value for given elementPath
[more]AbstractUISocketElement* getElement(string elementPath, Session*session)
Returns the Object AbstractUISocketElement for given elementPath
[more]int addDim(string elementPath, Session*session)
Adds the dimension to the given elementPath
[more]list<list<string>*> * getIndices(Session* session, list<string>*eltIds, list<string>*indexNos)
This function will return map containing pairs of element identifiers and it's requested indexed values.
[more]int removeDim(string path, Session*session)
Removes the specific dimension
[more]map<string,string> * getRangeValue(string path, Session*session)
Returns the Range Value for given path
[more]bool isValidPath(string originalPath, string requestPath)
Checks if requested path is included in original path


Documentation

SocketUtilities class is a Utility class which provides following functionality. 1. Set value for given elementPath. elementPath may contain dimensional elements. 2. Get the value of AbstractUISocketElement specified in elementPath. elementPath may contain dimensional elements. 3. Add the dimension to given elementPath. elementPath may contain dimensional elements. 4. Return the AbstractUISocketElement from given elementPath.elementPath may contain dimensional elements.
o SocketUtilities()
Basic Constructor for SocketUtilities

ostatic SocketUtilities* getInstance()
Return the instance for class SocketUtilities
Returns:
SocketUtilities Object

omap<string,string> * getValue(string elementPath, Session*session, bool includeSets)
Returns the value of AbstractUISocketElement specified in elementPath
Parameters:
elementPath - as String
- session as Session
includeSets - a Boolean of includeSets
Returns:
map<string,string> of key value pair of element path and element value.

oint setValue(string elementPath, string value, Session*session)
Set the value for given elementPath
Parameters:
elementPath - as String
- session as Session
Returns:
integer value representing as follows 0 if successfull 1 if elementPath is invalid 2 if dimension value in elementPath is invalid 4 if UCHe is too busy and cannot perform the add action

oAbstractUISocketElement* getElement(string elementPath, Session*session)
Returns the Object AbstractUISocketElement for given elementPath
Parameters:
elementPath - as String
- session as Session
Returns:
AbstractUISocketElement Object

oint addDim(string elementPath, Session*session)
Adds the dimension to the given elementPath
Parameters:
elementPath - as String
- session as Session
Returns:
integer value representing as follows 0 if successfull 1 if elementPath is invalid 2 if dimension value in elementPath is invalid 3 if dimension already exists 4 if UCHe is too busy and cannot perform the add action

olist<list<string>*> * getIndices(Session* session, list<string>*eltIds, list<string>*indexNos)
This function will return map containing pairs of element identifiers and it's requested indexed values.
Parameters:
list - of elementids
list - of index
Returns:
map contain element identifiers and indexed values

oint removeDim(string path, Session*session)
Removes the specific dimension
Parameters:
String - Value of elementpath
Object - of Session
Returns:
integer value representing as follows 0 if successfull 1 if elementPath is invalid 2 if dimension value in elementPath is invalid 4 if UCHe is too busy and cannot perform the add action

omap<string,string> * getRangeValue(string path, Session*session)
Returns the Range Value for given path
Parameters:
String - Value of element path
- Session Object
Returns:
String Values for given path and session

obool isValidPath(string originalPath, string requestPath)
Checks if requested path is included in original path
Parameters:
String - Value of originalPath
String - Value of requestPath
Returns:
true if requestPath is found in originalPath


This class has no child classes.
Author:
Parikshit Thakur & Team, Trace R&D Center
Version:
Revision: 1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.