|
||||||||||
| 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 java.lang.Object |
getArrayElement(java.lang.Object value,
java.lang.String index)
Return an array's element corresponding to a given index. |
static java.lang.Object |
getCompositeItem(java.lang.Object value,
java.lang.String key)
Get an item of a CompositeData value |
static java.lang.Object |
getElement(java.lang.Object value,
java.lang.String index)
Get an element of an indexed complexValue |
static java.lang.Object |
getItem(java.lang.Object value,
java.lang.String key)
Get an item of a complexValue |
static java.lang.Object |
getListElement(java.lang.Object value,
java.lang.String index)
Return a List element corresponding to a given index. |
static java.lang.Object |
getMapItem(java.lang.Object value,
java.lang.String key)
Get an item of a Map value |
static java.lang.Object |
getTabElement(java.lang.Object value,
java.lang.String index)
Return an element in a TabularData value corresponding to a given index. |
static boolean |
hasSimpleType(java.lang.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 java.lang.Object getTabElement(java.lang.Object value,
java.lang.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 java.lang.Object getArrayElement(java.lang.Object value,
java.lang.String index)
throws ComplexValuesException,
java.lang.ClassCastException
value - the Array valueindex - the given index
ComplexValuesException - the index has not a number
java.lang.ClassCastException
public static java.lang.Object getListElement(java.lang.Object value,
java.lang.String index)
throws ComplexValuesException
value - the List valueindex - the given index
ComplexValuesException - the index has not a number
public static java.lang.Object getCompositeItem(java.lang.Object value,
java.lang.String key)
throws ComplexValuesException
value - the CompositeData valuekey - the given key
ComplexValuesException - no item found with the given key
public static java.lang.Object getMapItem(java.lang.Object value,
java.lang.String key)
throws ComplexValuesException
value - the Map valuekey - the given key
ComplexValuesException - no item found with the given key
public static java.lang.Object getElement(java.lang.Object value,
java.lang.String index)
throws ComplexValuesException
value - the complex value
ComplexValuesException - not found (could be the case for a TablularType) or could not access.
public static java.lang.Object getItem(java.lang.Object value,
java.lang.String key)
throws ComplexValuesException
ComplexValuesExceptionpublic static boolean hasSimpleType(java.lang.Object value)
value - value to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||