|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsspi.rasdiag.DiagnosticTypedValue
public class DiagnosticTypedValue
Special class for storing typed data in the HashMaps used by DiagnosticProviders. The HashMaps DiagnosticProviders create have keys that are Strings and values that can be:
Field Summary | |
---|---|
static short |
MAXTYPECONST
|
static java.lang.String[] |
sTypeNames
|
java.lang.String |
tvMsgKey
localization message key representing the label for this value |
java.lang.String |
tvString
string representation of value |
short |
tvType
type being held in this DTV object |
static short |
TYPEBOOLEAN
boolean primitive type |
static short |
TYPECOLLECTIONEL
Collection type |
static short |
TYPEDATE
Date type |
static short |
TYPEDOUBLE
double primitive type |
static short |
TYPEINT
int primitive type |
static short |
TYPELONG
long primitive type |
static short |
TYPESHORT
short primitive type |
static short |
TYPESTRING
String type |
Constructor Summary | |
---|---|
DiagnosticTypedValue()
constructs the class with no parms. |
|
DiagnosticTypedValue(boolean aBoolVal,
java.lang.String aMsgKey)
constructs an object with a boolean value (Helper constructor) |
|
DiagnosticTypedValue(java.util.Date aDateVal,
java.lang.String aMsgKey)
constructs an object with a date object (Helper constructor) |
|
DiagnosticTypedValue(double aDoubleVal,
java.lang.String aMsgKey)
constructs an object with a dobule value (Helper constructor) |
|
DiagnosticTypedValue(int aIntVal,
java.lang.String aMsgKey)
constructs an object with an int value (Helper constructor) |
|
DiagnosticTypedValue(long aLongVal,
java.lang.String aMsgKey)
constructs an object with a long value (Helper constructor) |
|
DiagnosticTypedValue(short aShortVal,
java.lang.String aMsgKey)
constructs an object with a short value (Helper constructor) |
|
DiagnosticTypedValue(java.lang.String aStringVal,
java.lang.String aMsgKey)
constructs an object with a String value (Helper constructor) |
Method Summary | |
---|---|
static void |
addCollectionToHashMap(java.util.HashMap aDest,
java.lang.String aId,
java.util.Collection aData,
java.lang.String aMsgKey)
adds a collection into the passed in HashMap. |
static void |
addCollectionToHashMap(java.util.HashMap aDest,
java.lang.String aId,
java.util.Collection aData,
java.lang.String aMsgKey,
short collectionType)
adds a collection into the passed in HashMap. |
static void |
addHashMap(java.util.HashMap parentHashMap,
java.util.HashMap childHashMap,
java.lang.String childName)
add a child Hashmap to a parent Hashmap and give it a name (static Helper method) This is equivalent to calling parentHashMap.put(childName, childHashMap) |
static DiagnosticTypedValue |
fromString(java.lang.String aDiagType)
deserialize a string back into this object |
java.lang.String |
toString()
convert the object to a string with a colon separated type:value pair |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short TYPESHORT
public static final short TYPEINT
public static final short TYPEBOOLEAN
public static final short TYPEDOUBLE
public static final short TYPELONG
public static final short TYPESTRING
public static final short TYPEDATE
public static final short TYPECOLLECTIONEL
public static final short MAXTYPECONST
public static final java.lang.String[] sTypeNames
public short tvType
public java.lang.String tvString
public java.lang.String tvMsgKey
Constructor Detail |
---|
public DiagnosticTypedValue()
public DiagnosticTypedValue(short aShortVal, java.lang.String aMsgKey)
aShortVal
- value to be typed/storedpublic DiagnosticTypedValue(int aIntVal, java.lang.String aMsgKey)
aIntVal
- value to be typed/storedpublic DiagnosticTypedValue(boolean aBoolVal, java.lang.String aMsgKey)
aBoolVal
- value to be typed/storedpublic DiagnosticTypedValue(double aDoubleVal, java.lang.String aMsgKey)
aDoubleVal
- value to be typed/storedpublic DiagnosticTypedValue(long aLongVal, java.lang.String aMsgKey)
aLongVal
- value to be typed/storedpublic DiagnosticTypedValue(java.lang.String aStringVal, java.lang.String aMsgKey)
aStringVal
- value to be typed/storedpublic DiagnosticTypedValue(java.util.Date aDateVal, java.lang.String aMsgKey)
aDateVal
- value to be typed/storedMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static DiagnosticTypedValue fromString(java.lang.String aDiagType)
aDiagType
- String representation of the object (from toString())
public static void addCollectionToHashMap(java.util.HashMap aDest, java.lang.String aId, java.util.Collection aData, java.lang.String aMsgKey)
DiagnosticTypedValue
entries in the HashMap
with the id suffixed by a sequence number. The same MsgKey is used for all as they are
assumed to be the same type of data.
aDest
- Destination HashMap into which all of the entries in the collection will be addedaId
- Id/Name of the collection which will be suffixed by a sequence number and used as
the HashMap key
collection as the type of data which is stored in the DiagnosticTypedValue
aData
- Actual collection containing the data (or something subclassed off of collection)aMsgKey
- Key into a Resource Bundle for localizing the labelpublic static void addCollectionToHashMap(java.util.HashMap aDest, java.lang.String aId, java.util.Collection aData, java.lang.String aMsgKey, short collectionType)
DiagnosticTypedValue
entries in the HashMap
with the id suffixed by a sequence number. The same MsgKey is used for all as they are
assumed to be the same type of data.
aDest
- Destination HashMap into which all of the entries in the collection will be addedaId
- Id/Name of the collection which will be suffixed by a sequence number and used as
the HashMap key
collection as the type of data which is stored in the DiagnosticTypedValue
aData
- Actual collection containing the data (or something subclassed off of collection)aMsgKey
- Key into a Resource Bundle for localizing the labelcollectionType
- the type of each object in the collection (should be specified from the
TYPE* constants in this file). If not valid, String will be used.public static void addHashMap(java.util.HashMap parentHashMap, java.util.HashMap childHashMap, java.lang.String childName)
parentHashMap
- Parent HashMap, will contain Child HashMapchildHashMap
- Child HashMap to embed into Parent HashMapchildName
- Name of Child HashMap for display
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |