CommonUtilities class is a Utility class which provides following functionality.
Public Methods
-
static list<string> * convertToList(string key)
- Convert the string To List Object
-
static string getPropsValueByKey(list<map<string, list<string>*>*>*downloadedResourceList, string key)
- Returns Property Value from list for specified key
-
static string encodeString(string str)
- Encode the string according XML encoding
-
static string decodeString(string str)
- decode the string according XML decoding
-
static string convertGetValueMapToString(map<string, string>*returnMap)
- Convert map to string.
-
static string replaceString(string mainString, string source, string destination)
- Replaces the string
-
static map<string, list<string>*> * prepareKeyValueListMap(string requestedURI)
- Prepare a Map from a String like prop1=val1&prop2=val2&prop1&val11.
-
static void mapToString(map<string, list<string>*>* reqProps)
- Convert map to string.
-
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>*>*>
-
static string encodeURL(string str)
- Encode the specified URL.
-
static string decodeURL(string str)
- Decode the specified URL.
Public Members
-
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.
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
static list<string> * convertToList(string key)
-
Convert the string To List Object
- Parameters:
- key - a string to be converted to list
- Returns:
- list<string> Object
static 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
static string encodeString(string str)
-
Encode the string according XML encoding
- Parameters:
- str - whose encoding is required.
- Returns:
- encoded string value
static string decodeString(string str)
-
decode the string according XML decoding
- Parameters:
- str - whose decoding is required.
- Returns:
- decoded string value
static string convertGetValueMapToString(map<string, string>*returnMap)
-
Convert map to string. This is for logging only
- Parameters:
- returnMap - whose key value parameter will logged.
static 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
static 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>>
static void mapToString(map<string, list<string>*>* reqProps)
-
Convert map to string. This is for logging only
- Parameters:
- returnMap - whose key value parameter will logged.
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>*>*>
- Parameters:
- an - Object of list<map<string, list<string>*>*>
static string encodeURL(string str)
-
Encode the specified URL.
- Parameters:
- url - a String value of URL
- Returns:
- a String value of encoded URL
static 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++.