Package jade.content.onto
Class AggregateHelper
- java.lang.Object
-
- jade.content.onto.AggregateHelper
-
public class AggregateHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description AggregateHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectadjustAggregateValue(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 collectionstatic ObjectSchemagetSchema(Class clazz, TermSchema elementSchema)Get ontology schema associated to class Try to manage as aggregate
-
-
-
Method Detail
-
getSchema
public static ObjectSchema getSchema(Class clazz, TermSchema elementSchema)
Get ontology schema associated to class Try to manage as aggregate- Parameters:
clazz- class to get schemaelementSchema- aggregate element schema- Returns:
- associated class schema
-
adjustAggregateValue
public static Object adjustAggregateValue(Object srcValue, Class destClass) throws Exception
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- Throws:
Exception
-
-