public class AggregateSchema extends TermSchema
Modifier and Type | Field and Description |
---|---|
static String |
BASE_NAME |
private static AggregateSchema |
baseSchema |
private TermSchema |
elementsSchema |
RESULT_SLOT_NAME
encodingByOrder, MANDATORY, OPTIONAL, UNLIMITED
Modifier | Constructor and Description |
---|---|
private |
AggregateSchema()
Construct a schema that vinculates an entity to be a generic
aggregate
|
|
AggregateSchema(String typeName)
Creates an
AggregateSchema with a given type-name. |
|
AggregateSchema(String typeName,
TermSchema elementsSchema)
Creates an
AggregateSchema 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.
|
boolean |
equals(Object o)
The difference between types of aggregates (such as SET and
SEQUENCE) is quite fuzy.
|
static ObjectSchema |
getBaseSchema()
Retrieve the generic base schema for all aggregates.
|
TermSchema |
getElementsSchema() |
boolean |
isAssignableFrom(ObjectSchema s)
This method checks whether or not an abstract object that is an instance
of schema s can be used in place of an abstract object that is an instance
of this schema.
|
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.
|
add, add, add, add, addFacet, addSuperSchema, containsSlot, getAllFacets, getFacets, getNames, getOwnNames, getSchema, getSuperSchemas, getTypeName, isCompatibleWith, isMandatory, isOwnSlot, toString, validateSlots
getEncodingByOrder, setEncodingByOrder
public static final String BASE_NAME
private static AggregateSchema baseSchema
private TermSchema elementsSchema
private AggregateSchema()
public AggregateSchema(String typeName)
AggregateSchema
with a given type-name.typeName
- The name of this AggregateSchema
.public AggregateSchema(String typeName, TermSchema elementsSchema)
AggregateSchema
with a given type-name.typeName
- The name of this AggregateSchema
.public static ObjectSchema getBaseSchema()
public AbsObject newInstance() throws OntologyException
newInstance
in class TermSchema
OntologyException
public TermSchema getElementsSchema()
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 schemaprotected boolean descendsFrom(ObjectSchema s)
descendsFrom
in class TermSchema
public boolean equals(Object o)
equals
in class ObjectSchemaImpl
public boolean isAssignableFrom(ObjectSchema s)
ObjectSchema
isAssignableFrom
in class ObjectSchemaImpl