JADE_SL.schema
Class AggregateSchema

java.lang.Object
  extended byJADE_SL.schema.ObjectSchema
      extended byJADE_SL.schema.TermSchema
          extended byJADE_SL.schema.AggregateSchema

public class AggregateSchema
extends TermSchema

Author:
Federico Bergenti - Universita` di Parma

Nested Class Summary
 
Nested classes inherited from class JADE_SL.schema.ObjectSchema
 
Field Summary
static java.lang.String BASE_NAME
           
private static AggregateSchema baseSchema
           
 
Fields inherited from class JADE_SL.schema.ObjectSchema
MANDATORY, OPTIONAL, UNLIMITED
 
Constructor Summary
private AggregateSchema()
          Construct a schema that vinculates an entity to be a generic aggregate
  AggregateSchema(java.lang.String typeName)
          Creates an AggregateSchema with a given type-name.
 
Method Summary
protected  boolean descendsFrom(ObjectSchema s)
          Return true if - s is the base schema for the XXXSchema class this schema is an instance of (e.g. s is ConceptSchema.getBaseSchema() and this schema is an instance of ConceptSchema) - s is the base schema for a super-class of the XXXSchema class this schema is an instance of (e.g. s is TermSchema.getBaseSchema() and this schema is an instance of ConceptSchema)
 boolean equals(java.lang.Object o)
           
static ObjectSchema getBaseSchema()
          Retrieve the generic base schema for all aggregates.
 AbsObject newInstance()
          Creates an Abstract descriptor to hold an aggregate of the proper type.
 void validate(AbsObject abs, Ontology onto)
          Check whether a given abstract descriptor complies with this schema.
 
Methods inherited from class JADE_SL.schema.ObjectSchema
add, add, add, addFacet, addSuperSchema, containsSlot, getNames, getSchema, getTypeName, isCompatibleWith, toString, validateSlots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_NAME

public static final java.lang.String BASE_NAME
See Also:
Constant Field Values

baseSchema

private static AggregateSchema baseSchema
Constructor Detail

AggregateSchema

private AggregateSchema()
Construct a schema that vinculates an entity to be a generic aggregate


AggregateSchema

public AggregateSchema(java.lang.String typeName)
Creates an AggregateSchema with a given type-name.

Parameters:
typeName - The name of this AggregateSchema.
Method Detail

getBaseSchema

public static ObjectSchema getBaseSchema()
Retrieve the generic base schema for all aggregates.

Returns:
the generic base schema for all aggregates.

newInstance

public AbsObject newInstance()
                      throws OntologyException
Creates an Abstract descriptor to hold an aggregate of the proper type.

Overrides:
newInstance in class TermSchema
Throws:
OntologyException

validate

public void validate(AbsObject abs,
                     Ontology onto)
              throws OntologyException
Check whether a given abstract descriptor complies with this schema.

Overrides:
validate in class ObjectSchema
Parameters:
abs - The abstract descriptor to be checked
Throws:
OntologyException - If the abstract descriptor does not complies with this schema

descendsFrom

protected boolean descendsFrom(ObjectSchema s)
Return true if - s is the base schema for the XXXSchema class this schema is an instance of (e.g. s is ConceptSchema.getBaseSchema() and this schema is an instance of ConceptSchema) - s is the base schema for a super-class of the XXXSchema class this schema is an instance of (e.g. s is TermSchema.getBaseSchema() and this schema is an instance of ConceptSchema)

Overrides:
descendsFrom in class TermSchema

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class ObjectSchema


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.