class CommonUtilities

CommonUtilities class is a Utility class which provides following functionality.

Public Methods

[more]static list<string> * convertToList(string key)
Convert the string To List Object
[more]static string getPropsValueByKey(list<map<string, list<string>*>*>*downloadedResourceList, string key)
Returns Property Value from list for specified key
[more]static string encodeString(string str)
Encode the string according XML encoding
[more]static string decodeString(string str)
decode the string according XML decoding
[more]static string convertGetValueMapToString(map<string, string>*returnMap)
Convert map to string.
[more]static string replaceString(string mainString, string source, string destination)
Replaces the string
[more]static map<string, list<string>*> * prepareKeyValueListMap(string requestedURI)
Prepare a Map from a String like prop1=val1&prop2=val2&prop1&val11.
[more]static void mapToString(map<string, list<string>*>* reqProps)
Convert map to string.
[more]static void freeGetResourcesMemory(list<map<string, list<string>*>*>*resPropertiesList, list<list<map<string, list<string>*>*>*>*resourcesPropList)
Free the memory of list<map<string, list<string>*>*>
[more]static string encodeURL(string str)
Encode the specified URL.
[more]static string decodeURL(string str)
Decode the specified URL.

Public Members

[more] Parse the XML String and return a Document Object.


Documentation

CommonUtilities class is a Utility class which provides following functionality. parseXml(String rawXML). It parses the XML string and returns the Document Object.
o Parse the XML String and return a Document Object.
Parse the XML String and return a Document Object.
Parameters:
rawXML - a String of XML.
Returns:
an Object of IXML_Document

ostatic list<string> * convertToList(string key)
Convert the string To List Object
Parameters:
key - a string to be converted to list
Returns:
list<string> Object

ostatic string getPropsValueByKey(list<map<string, list<string>*>*>*downloadedResourceList, string key)
Returns Property Value from list for specified key
Parameters:
downloadedResourceList - a list<map<string, list<string>>> Object
Returns:
string value of specified key

ostatic string encodeString(string str)
Encode the string according XML encoding
Parameters:
str - whose encoding is required.
Returns:
encoded string value

ostatic string decodeString(string str)
decode the string according XML decoding
Parameters:
str - whose decoding is required.
Returns:
decoded string value

ostatic string convertGetValueMapToString(map<string, string>*returnMap)
Convert map to string. This is for logging only
Parameters:
returnMap - whose key value parameter will logged.

ostatic string replaceString(string mainString, string source, string destination)
Replaces the string
Parameters:
mainString - on operation will be performed
source - a String value to be replaced
destinataion - a String value which will be replaced in place of source
replaced - string

ostatic map<string, list<string>*> * prepareKeyValueListMap(string requestedURI)
Prepare a Map from a String like prop1=val1&prop2=val2&prop1&val11.

Parameters:
str - a String value
Returns:
an Object of Map<String, List<String>>

ostatic void mapToString(map<string, list<string>*>* reqProps)
Convert map to string. This is for logging only
Parameters:
returnMap - whose key value parameter will logged.

ostatic void freeGetResourcesMemory(list<map<string, list<string>*>*>*resPropertiesList, list<list<map<string, list<string>*>*>*>*resourcesPropList)
Free the memory of list<map<string, list<string>*>*>
Parameters:
an - Object of list<map<string, list<string>*>*>

ostatic string encodeURL(string str)
Encode the specified URL.

Parameters:
url - a String value of URL
Returns:
a String value of encoded URL

ostatic string decodeURL(string str)
Decode the specified URL.

Parameters:
url - a String value of URL
Returns:
a String value of decoded URL


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