| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.util.PropertyMap
This class is responsible for converting property maps to and from String
| Field Summary | |
private  java.util.HashMap | 
properties
Properties collection.  | 
| Constructor Summary | |
PropertyMap()
 | 
|
| Method Summary | |
private  void | 
addInternal(java.lang.String key,
            java.lang.Object value)
Adds a key value pair to the property map  | 
 void | 
addProperty(java.lang.String key,
            java.lang.String value)
Adds a property of type String to the map  | 
 void | 
addProperty(java.lang.String key,
            java.lang.String[] values)
Adds an Array of Strings to the map  | 
private static java.lang.String | 
decode(java.lang.String encodedStr)
translate all escaped characters into the raw characters  | 
private static java.lang.String | 
encode(java.lang.String rawStr)
replace all occurrences of '=', ',' and ';' with escaped characters  | 
 java.lang.String[] | 
getProperties(java.lang.String key)
Retrieves the property for the given key in array form  | 
 java.lang.String | 
getProperty(java.lang.String key)
Retrieves the property for the given key  | 
 boolean | 
hasProperty(java.lang.String key)
Checks if the map contains the given key  | 
static PropertyMap | 
parse(java.lang.String str)
Converts a String into a PropertyMap Object  | 
 java.lang.String | 
toString()
Converts the PropertyMap into a String  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
private java.util.HashMap properties
| Constructor Detail | 
public PropertyMap()
| Method Detail | 
private void addInternal(java.lang.String key,
                         java.lang.Object value)
key - Property Keyvalue - Value
public void addProperty(java.lang.String key,
                        java.lang.String value)
key - Property Keyvalue - Value
public void addProperty(java.lang.String key,
                        java.lang.String[] values)
key - Property Keyvalues - Value Arraypublic boolean hasProperty(java.lang.String key)
key - Property Key
true if the key is a member of the property mappublic java.lang.String getProperty(java.lang.String key)
key - Property Key
nullpublic java.lang.String[] getProperties(java.lang.String key)
key - Property Key
nullprivate static java.lang.String decode(java.lang.String encodedStr)
encodedStr - the encoded string
private static java.lang.String encode(java.lang.String rawStr)
rawStr - the raw string to encode
public static PropertyMap parse(java.lang.String str)
str - The String to convert
nullpublic java.lang.String toString()
Object.toString()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||