jade.content.schema
Class TermSchema

java.lang.Object
  |
  +--jade.content.schema.ObjectSchema
        |
        +--jade.content.schema.ObjectSchemaImpl
              |
              +--jade.content.schema.TermSchema
Direct Known Subclasses:
AggregateSchema, ConceptSchema, IRESchema, PrimitiveSchema, VariableSchema

public class TermSchema
extends jade.content.schema.ObjectSchemaImpl

Author:
Federico Bergenti - Universita` di Parma
See Also:
Serialized Form

Field Summary
static java.lang.String BASE_NAME
           
 
Fields inherited from class jade.content.schema.ObjectSchema
BASE_NAME, baseSchema, MANDATORY, OPTIONAL, UNLIMITED
 
Constructor Summary
protected TermSchema(java.lang.String typeName)
          Creates a TermSchema 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)
static ObjectSchema getBaseSchema()
          Retrieve the generic base schema for terms.
 AbsObject newInstance()
          Creates an Abstract descriptor to hold a term of the proper type.
 
Methods inherited from class jade.content.schema.ObjectSchemaImpl
add, add, add, add, addFacet, addSuperSchema, containsSlot, equals, getFacets, getNames, getSchema, getTypeName, isCompatibleWith, toString, validate, validateSlots
 
Methods inherited from class jade.content.schema.ObjectSchema
getEncodingByOrder, setEncodingByOrder
 
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
Constructor Detail

TermSchema

protected TermSchema(java.lang.String typeName)
Creates a TermSchema with a given type-name.
Parameters:
typeName - The name of this TermSchema.
Method Detail

getBaseSchema

public static ObjectSchema getBaseSchema()
Retrieve the generic base schema for terms.
Returns:
the generic base schema for terms.

newInstance

public AbsObject newInstance()
                      throws OntologyException
Creates an Abstract descriptor to hold a term of the proper type.
Overrides:
newInstance in class jade.content.schema.ObjectSchemaImpl

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 jade.content.schema.ObjectSchemaImpl