|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.content.schema.ObjectSchema | +--jade.content.schema.ObjectSchemaImpl | +--jade.content.schema.TermSchema | +--jade.content.schema.VariableSchema
This class represents the schema of a variable.
Field Summary | |
static java.lang.String |
BASE_NAME
|
static java.lang.String |
NAME
|
static java.lang.String |
VALUE_TYPE
|
Fields inherited from class jade.content.schema.ObjectSchema |
baseSchema, MANDATORY, OPTIONAL, UNLIMITED |
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. |
static ObjectSchema |
getBaseSchema()
Retrieve the generic base schema for all variables. |
boolean |
isCompatibleWith(ObjectSchema s)
A variable can be put whereever a term of whatever type is required --> A VariableSchema is compatible with s if s descends from TermSchema.getBaseSchema() |
AbsObject |
newInstance()
Creates an Abstract descriptor to hold a variable |
void |
validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this schema. |
Methods inherited from class jade.content.schema.TermSchema |
add, add, add, add, addFacet, addSuperSchema, containsSlot, equals, getFacets, getNames, getSchema, getTypeName, isMandatory, toString, 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 |
public static final java.lang.String BASE_NAME
public static final java.lang.String NAME
public static final java.lang.String VALUE_TYPE
Method Detail |
public static ObjectSchema getBaseSchema()
public AbsObject newInstance() throws OntologyException
newInstance
in class TermSchema
OntologyException
public void validate(AbsObject abs, Ontology onto) throws OntologyException
validate
in class jade.content.schema.ObjectSchemaImpl
abs
- The abstract descriptor to be checked
OntologyException
- If the abstract descriptor does not
complies with this schemapublic boolean isCompatibleWith(ObjectSchema s)
isCompatibleWith
in class jade.content.schema.ObjectSchemaImpl
protected boolean descendsFrom(ObjectSchema s)
descendsFrom
in class TermSchema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |