public class SchemaUtils extends Object
Constructor and Description |
---|
SchemaUtils() |
Modifier and Type | Method and Description |
---|---|
protected ConstraintIF |
findClass(TMObjectIF object,
Collection classes) |
protected ConstraintIF |
findClass(TopicIF topic,
Collection classes) |
Collection |
getAllowedAssocTypes(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns a collection of association types that can
be played by the given topic.
|
Collection |
getAllTopicNameConstraints(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns the complete set of topic name constraints in
this collection, including those of sub collections.
|
protected Collection |
getCharacteristicsInScope(Collection objects,
Collection scope)
INTERNAL: Return all objects that are in the given scope.
|
Collection |
getExtOccConstraints(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns the complete set of constraints for external
occurrences for the given topic in the specified schema.
|
Collection |
getIntOccConstraints(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns the complete set of constraints for internal
occurrences for the given topic in the specified schema.
|
Collection |
getMatchingTopics(TopicMapIF tm,
ScopeSpecification scopeSpec)
INTERNAL: Gets the topic objects which define a context theme by
the given scope specification typically attached to a constraint
object.
|
Collection |
getMatchingTopics(TopicMapIF tm,
TypeSpecification typeSpec)
INTERNAL: Gets the topic objects which define a class type by
the given type specification typically attached to a constraint
object.
|
protected Collection |
getObjectsOfType(Collection allTypes,
Collection curTypes)
INTERNAL: Return all typing objects that are equal to one
of the given types.
|
protected Collection |
getOccurrenceConstraints(OSLSchema schema,
TopicIF topic,
boolean internal) |
TypeStorage |
getRemainingExtOccTypes(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns a set of topic objects which belong to external
occurrence types that are allowed to add to the given topic.
|
TypeStorage |
getRemainingIntOccTypes(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns a set of topic objects which belong to internal
occurrence types that are allowed to add to the given topic.
|
protected TypeStorage |
getRemainingOccTypes(OSLSchema schema,
TopicIF topic,
Collection occCons) |
TypeStorage |
getRemainingRoleTypes(OSLSchema schema,
AssociationIF assoc)
INTERNAL: Returns a set of topic objects which belong to role types
that are allowed to add to the given association.
|
ScopeStorage |
getRemainingTopicNameThemes(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns a set of topic objects which belong to themes
that are allowed to add to the topic name by the given topic.
|
Collection |
getRoleConstraints(OSLSchema schema,
AssociationIF assoc)
INTERNAL: Returns the collection of role constraints in this
class definition.
|
TopicIF |
getRoleType4AssocType(OSLSchema schema,
TopicIF assocType,
TopicIF player)
INTERNAL: Get the allowed association role type for the given
association type with the help of the schema.
|
public Collection getMatchingTopics(TopicMapIF tm, ScopeSpecification scopeSpec)
public Collection getMatchingTopics(TopicMapIF tm, TypeSpecification typeSpec)
public Collection getAllTopicNameConstraints(OSLSchema schema, TopicIF topic)
public ScopeStorage getRemainingTopicNameThemes(OSLSchema schema, TopicIF topic)
public Collection getIntOccConstraints(OSLSchema schema, TopicIF topic)
public Collection getExtOccConstraints(OSLSchema schema, TopicIF topic)
protected Collection getOccurrenceConstraints(OSLSchema schema, TopicIF topic, boolean internal)
public TypeStorage getRemainingIntOccTypes(OSLSchema schema, TopicIF topic)
public TypeStorage getRemainingExtOccTypes(OSLSchema schema, TopicIF topic)
protected TypeStorage getRemainingOccTypes(OSLSchema schema, TopicIF topic, Collection occCons)
public Collection getRoleConstraints(OSLSchema schema, AssociationIF assoc)
public Collection getAllowedAssocTypes(OSLSchema schema, TopicIF topic)
public TopicIF getRoleType4AssocType(OSLSchema schema, TopicIF assocType, TopicIF player)
public TypeStorage getRemainingRoleTypes(OSLSchema schema, AssociationIF assoc)
protected ConstraintIF findClass(TopicIF topic, Collection classes)
protected ConstraintIF findClass(TMObjectIF object, Collection classes)
protected Collection getCharacteristicsInScope(Collection objects, Collection scope)
protected Collection getObjectsOfType(Collection allTypes, Collection curTypes)