|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.probe.collectors.jmx.internal.ComplexValuesUtil
public class ComplexValuesUtil
| Constructor Summary | |
|---|---|
ComplexValuesUtil()
|
|
| Method Summary | |
|---|---|
static Object |
getArrayElement(Object value,
String index)
Return an array's element corresponding to a given index. |
static Object |
getCompositeItem(Object value,
String key)
Get an item of a CompositeData value |
static Object |
getElement(Object value,
String index)
Get an element of an indexed complexValue |
static Object |
getItem(Object value,
String key)
Get an item of a complexValue |
static Object |
getListElement(Object value,
String index)
Return a List element corresponding to a given index. |
static Object |
getMapItem(Object value,
String key)
Get an item of a Map value |
static Object |
getTabElement(Object value,
String index)
Return an element in a TabularData value corresponding to a given index. |
static boolean |
hasSimpleType(Object value)
This method allows to define the simple types allowed by JasmineProbe. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComplexValuesUtil()
| Method Detail |
|---|
public static Object getTabElement(Object value,
String index)
throws ComplexValuesException
value - the TabularData valueindex - the given index
ComplexValuesException - could not access to the TabularData or the value
has multiple indexes.
public static Object getArrayElement(Object value,
String index)
throws ComplexValuesException,
ClassCastException
value - the Array valueindex - the given index
ComplexValuesException - the index has not a number
ClassCastException
public static Object getListElement(Object value,
String index)
throws ComplexValuesException
value - the List valueindex - the given index
ComplexValuesException - the index has not a number
public static Object getCompositeItem(Object value,
String key)
throws ComplexValuesException
value - the CompositeData valuekey - the given key
ComplexValuesException - no item found with the given key
public static Object getMapItem(Object value,
String key)
throws ComplexValuesException
value - the Map valuekey - the given key
ComplexValuesException - no item found with the given key
public static Object getElement(Object value,
String index)
throws ComplexValuesException
value - the complex value
ComplexValuesException - not found (could be the case for a TablularType) or could not access.
public static Object getItem(Object value,
String key)
throws ComplexValuesException
ComplexValuesExceptionpublic static boolean hasSimpleType(Object value)
value - value to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||