|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.xmldata.util.SensorDataPropertyMap
public class SensorDataPropertyMap
Provides a thread-safe property map implementation for use as the value of the default 'pMap' field in all Sensor Data. Features of this abstract data type include:
Constructor Summary | |
---|---|
SensorDataPropertyMap()
The default public constructor for the SensorDataPropertyMap. |
|
SensorDataPropertyMap(java.lang.String encodedMap)
Creates a thread-safe plist, initializing it with the contents of encodedMap. |
Method Summary | |
---|---|
java.lang.String |
encode()
Encodes the contents of this PropertyMap into a String that can be persisted or transmitted using Soap. |
java.lang.String |
formattedString()
Returns the contents of the property map in human readable form. |
java.lang.String |
get(java.lang.String name)
Gets the property value associated with name, or returns null if not found. |
java.lang.String |
get(java.lang.String name,
java.lang.String defaultValue)
Returns the property value associated with name, or defaultValue if not found. |
static java.lang.String |
getDefaultMapString()
Returns a new String representation of an empty SensorDataPropertyMap instance. |
java.lang.String |
getIgnoreCase(java.lang.String name)
Returns the property value associated with name, where name is not case-sensitive. |
static SensorDataPropertyMap |
getMap(java.lang.String encodedMap)
Returns a new SensorDataPropertyMap instance generated from the encoded String. |
java.lang.String |
getRunTime()
Returns a string containing the "runTime" attribute, or null if not found. |
java.util.Set<java.lang.String> |
keySet()
Returns a set containing the keys associated with this property map. |
void |
put(java.lang.String name,
java.lang.String value)
Puts the (name, value) pair into the SensorDataPropertyMap. |
java.lang.String |
toString()
Returns the contents of the property map in its encoded form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SensorDataPropertyMap()
public SensorDataPropertyMap(java.lang.String encodedMap) throws java.lang.Exception
encodedMap
- A string produced from the encode() method.
java.lang.Exception
- If encodedMap is not a legal encoded
SensorDataPropertyMap.Method Detail |
---|
public void put(java.lang.String name, java.lang.String value)
name
- The property name string.value
- The property value string.public java.lang.String get(java.lang.String name)
name
- The property name whose value is to be retrieved (if
available).
public java.lang.String getIgnoreCase(java.lang.String name)
name
- The case-insensitive property name whose value is to be
retrieved.
public java.lang.String getRunTime()
public java.lang.String get(java.lang.String name, java.lang.String defaultValue)
name
- The property name whose value is to be retrieved.defaultValue
- The defaultValue to be returned if not present.
public java.lang.String encode()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String formattedString()
public java.util.Set<java.lang.String> keySet()
public static SensorDataPropertyMap getMap(java.lang.String encodedMap) throws java.lang.Exception
encodedMap
- The encoded version of a SensorDataPropertyMap.
java.lang.Exception
- If problems occur decoding the encoded string.public static java.lang.String getDefaultMapString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |