public class FlexObject extends Object
| Constructor and Description |
|---|
FlexObject()
Empty constructor initializer.
|
FlexObject(int size)
Parameterized constructor initializer.
|
FlexObject(Object[] items)
Parameterized constructor initializer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear existing items array.
|
void |
clear(int size)
Clear existing items array with new items list size.
|
static FlexObject |
constructFlexList(Object[] objectsList,
String contextPath,
Object key,
String evaluator,
String result)
Constructs list of FlexObjects based on public methods of objects.
|
static FlexObject |
constructFlexList(Object[] objectsList,
String contextPath,
Object key,
String evaluator,
String result,
Long totalRecords,
Integer listSize,
Boolean first,
Boolean last)
Constructs list of FlexObjects based on public methods of objects.
|
static FlexObject |
constructFlexObject(Object object,
String contextPath)
Constructs FlexObject based on public methods of provided object.
|
static Object |
fieldEvaluator(Object object,
String field)
Evaluates a field through public method.
|
Object[] |
getItems()
Gets items.
|
void |
newItem(Object value)
Sets new item.
|
void |
setItems(Object[] items)
Sets items.
|
public FlexObject()
public FlexObject(int size)
size - public FlexObject(Object[] items)
items - public Object[] getItems()
public void setItems(Object[] items)
items - public void newItem(Object value)
value - public void clear()
public void clear(int size)
size - public static Object fieldEvaluator(Object object, String field) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
object - field - NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionpublic static FlexObject constructFlexObject(Object object, String contextPath) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
object - contextPath - NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionpublic static FlexObject constructFlexList(Object[] objectsList, String contextPath, Object key, String evaluator, String result) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
objectsList - contextPath - key - evaluator - result - NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionpublic static FlexObject constructFlexList(Object[] objectsList, String contextPath, Object key, String evaluator, String result, Long totalRecords, Integer listSize, Boolean first, Boolean last) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
objectsList - contextPath - key - evaluator - result - totalRecords - listSize - first - last - NoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionCopyright © 2018. All rights reserved.