public class VariableSchema extends TermSchema
Modifier and Type | Field and Description |
---|---|
static String |
BASE_NAME |
private static VariableSchema |
baseSchema |
static String |
NAME |
static String |
VALUE_TYPE |
RESULT_SLOT_NAME
encodingByOrder, MANDATORY, OPTIONAL, UNLIMITED
Modifier | Constructor and Description |
---|---|
private |
VariableSchema()
Construct a schema that vinculates an entity to be a generic
variable.
|
Modifier and Type | Method and Description |
---|---|
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.
|
add, add, add, add, addFacet, addSuperSchema, containsSlot, equals, getAllFacets, getFacets, getNames, getOwnNames, getSchema, getSuperSchemas, getTypeName, isAssignableFrom, isMandatory, isOwnSlot, toString, validateSlots
getEncodingByOrder, setEncodingByOrder
public static final String BASE_NAME
private static VariableSchema baseSchema
public static final String NAME
public static final String VALUE_TYPE
private VariableSchema()
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 ObjectSchemaImpl
abs
- The abstract descriptor to be checkedOntologyException
- If the abstract descriptor does not
complies with this schemapublic boolean isCompatibleWith(ObjectSchema s)
isCompatibleWith
in class ObjectSchemaImpl
protected boolean descendsFrom(ObjectSchema s)
descendsFrom
in class TermSchema