jade.content.onto
Class AggregateHelper

java.lang.Object
  extended by jade.content.onto.AggregateHelper

public class AggregateHelper
extends java.lang.Object


Constructor Summary
AggregateHelper()
           
 
Method Summary
static java.lang.Object adjustAggregateValue(java.lang.Object srcValue, java.lang.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
static ObjectSchema getSchema(java.lang.Class clazz, TermSchema elementSchema)
          Get ontology schema associated to class Try to manage as aggregate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateHelper

public AggregateHelper()
Method Detail

getSchema

public static ObjectSchema getSchema(java.lang.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 java.lang.Object adjustAggregateValue(java.lang.Object srcValue,
                                                    java.lang.Class destClass)
                                             throws java.lang.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:
java.lang.Exception