public class AggregateHelper extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
ACC_ABSTRACT |
private static int |
ACC_INTERFACE |
Constructor and Description |
---|
AggregateHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
adjustAggregateValue(Object srcValue,
Class destClass)
Try to convert, if possible, the aggregate value srcValue into an instance of destClass
Possible source and destination classes are java array, java collection and jade collection
|
private static Object |
collectionToArray(Iterator it,
Class componentTypeClass,
int size) |
(package private) static Collection |
createConcreteJadeCollection(Class clazz) |
(package private) static Collection |
createConcreteJavaCollection(Class clazz) |
static ObjectSchema |
getSchema(Class clazz,
TermSchema elementSchema)
Get ontology schema associated to class
Try to manage as aggregate
|
private static final int ACC_ABSTRACT
private static final int ACC_INTERFACE
public static ObjectSchema getSchema(Class clazz, TermSchema elementSchema)
clazz
- class to get schemaelementSchema
- aggregate element schemapublic static Object adjustAggregateValue(Object srcValue, Class destClass) throws Exception
Exception
private static Object collectionToArray(Iterator it, Class componentTypeClass, int size)
static Collection createConcreteJavaCollection(Class clazz) throws InstantiationException, IllegalAccessException
static Collection createConcreteJadeCollection(Class clazz) throws InstantiationException, IllegalAccessException