|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.webed.impl.utils.SchemaUtils
public class SchemaUtils
INTERNAL: Utitlity class for providing help around making topic map schema support available to the web editor.
Constructor Summary | |
---|---|
SchemaUtils()
|
Method Summary | |
---|---|
protected ConstraintIF |
findClass(TMObjectIF object,
java.util.Collection classes)
|
protected ConstraintIF |
findClass(TopicIF topic,
java.util.Collection classes)
|
java.util.Collection |
getAllowedAssocTypes(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns a collection of association types that can be played by the given topic. |
java.util.Collection |
getAllTopicNameConstraints(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns the complete set of topic name constraints in this collection, including those of sub collections. |
protected java.util.Collection |
getCharacteristicsInScope(java.util.Collection objects,
java.util.Collection scope)
INTERNAL: Return all objects that are in the given scope. |
java.util.Collection |
getExtOccConstraints(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns the complete set of constraints for external occurrences for the given topic in the specified schema. |
java.util.Collection |
getIntOccConstraints(OSLSchema schema,
TopicIF topic)
INTERNAL: Returns the complete set of constraints for internal occurrences for the given topic in the specified schema. |
java.util.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. |
java.util.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 java.util.Collection |
getObjectsOfType(java.util.Collection allTypes,
java.util.Collection curTypes)
INTERNAL: Return all typing objects that are equal to one of the given types. |
protected java.util.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,
java.util.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. |
java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaUtils()
Method Detail |
---|
public java.util.Collection getMatchingTopics(TopicMapIF tm, ScopeSpecification scopeSpec)
public java.util.Collection getMatchingTopics(TopicMapIF tm, TypeSpecification typeSpec)
public java.util.Collection getAllTopicNameConstraints(OSLSchema schema, TopicIF topic)
public ScopeStorage getRemainingTopicNameThemes(OSLSchema schema, TopicIF topic)
public java.util.Collection getIntOccConstraints(OSLSchema schema, TopicIF topic)
public java.util.Collection getExtOccConstraints(OSLSchema schema, TopicIF topic)
protected java.util.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, java.util.Collection occCons)
public java.util.Collection getRoleConstraints(OSLSchema schema, AssociationIF assoc)
public java.util.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, java.util.Collection classes)
protected ConstraintIF findClass(TMObjectIF object, java.util.Collection classes)
protected java.util.Collection getCharacteristicsInScope(java.util.Collection objects, java.util.Collection scope)
protected java.util.Collection getObjectsOfType(java.util.Collection allTypes, java.util.Collection curTypes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |