public class IRESchema extends TermSchema
Modifier and Type | Field and Description |
---|---|
static String |
BASE_NAME |
private static IRESchema |
baseSchema |
static String |
PROPOSITION |
static String |
VARIABLE |
RESULT_SLOT_NAME
encodingByOrder, MANDATORY, OPTIONAL, UNLIMITED
Modifier | Constructor and Description |
---|---|
private |
IRESchema()
Construct a schema that vinculates an entity to be a generic
ire
|
|
IRESchema(String typeName)
Creates a
IRESchema with a given type-name. |
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 ire-s.
|
boolean |
isCompatibleWith(ObjectSchema s)
An IRE can be put whereever a term of whatever type is
required --> An IRESchema is
compatible with s if s descends from TermSchema.getBaseSchema()
|
AbsObject |
newInstance()
Creates an Abstract descriptor to hold a ire of
the proper type.
|
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 IRESchema baseSchema
public static final String VARIABLE
public static final String PROPOSITION
private IRESchema()
public IRESchema(String typeName)
IRESchema
with a given type-name.
All ire-s have a variable and a proposition.typeName
- The name of this IRESchema
(e.g. IOTA, ANY, ALL).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