Class AggregateHelper


  • public class AggregateHelper
    extends Object
    • Constructor Detail

      • AggregateHelper

        public AggregateHelper()
    • 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 schema
        elementSchema - 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