class PathExtractUtility

PathExtractUtility is utility single-ton class for obtaining necessary data for given a path of elements.

Public Methods

[more]static PathExtractUtility* getInstance()
It gives the instance for the class PathExtractUtility
[more]elementList* getElementList(string path)
It gives the elementList for a given path.
[more]string getElement(string path)
It gives the Id of the last element in elementPath.
[more]string getIndices(string path)
It gives the indices of the last element in elementPath.
[more]bool checkForRangeValue(string originalPath, string requestPath)
Checks for Range of Values


Documentation

PathExtractUtility is utility single-ton class for obtaining necessary data for given a path of elements. This class is useful for parsing element path. e.g for a given path /a/b[1]/c/d, it will give the individual element like a, b, c,d. It will also set the necessary properties for each individual element. like element b is dimensional and its indices is "1". This information is stored in link list Object elementList.
ostatic PathExtractUtility* getInstance()
It gives the instance for the class PathExtractUtility
Returns:
PathExtractUtility Object

oelementList* getElementList(string path)
It gives the elementList for a given path. It also set properties like isDimensional,indices for each Element in Path.
Parameters:
path - as a string
Returns:
Struct SocketElementList;

ostring getElement(string path)
It gives the Id of the last element in elementPath. e.g for a given path /a/b/c, it returns "c" as string
Parameters:
path - as a string
Returns:
String Value of element

ostring getIndices(string path)
It gives the indices of the last element in elementPath. e.g for a given path /a/b[1]/c[2], it returns "2" as string
Parameters:
path - as a string
Returns:
String Value of indices

obool checkForRangeValue(string originalPath, string requestPath)
Checks for Range of Values
Parameters:
String - Value of originalPath
String - Value of requestPath
Returns:
true if requestPath is being found in originalPath else false


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++.