org.tm4j.topicmap .TopicMapUtils
Description
This interface defines the basic set of utility functions expected from a topic map engine. Different concrete instances of the TopicMap interface may define their own concrete instance of this interface.
Method Summary | |
---|---|
java.lang.String | generateId() |
java.lang.String | generateId(java.net.URL baseURL) |
java.util.Collection |
getAssociationTypes(java.util.Collection associations)
Retrieves the type of all specified associations
|
java.util.Collection |
getAssociations(org.tm4j.topicmap.Topic topic)
Returns a collection of all associations in which the specified topic
plays a role.
|
java.util.Collection |
getAssociationsInScope(org.tm4j.topicmap.Topic scope,java.util.Collection associations)
Returns a collection of the associations in a given scope.
|
java.util.Collection |
getAssociationsInScope(org.tm4j.topicmap.Topic[] scope,java.util.Collection associations)
Returns an unmodifiable collection of associations in a given scope.
|
java.util.Iterator |
getAssociationsIterator()
Returns an iterator over all of the Associations in the topic map.
|
java.util.Collection |
getAssociationsOfType(org.tm4j.topicmap.Topic type,java.util.Collection associations)
Returns an unmodifiable collection of associations which are of the specified type.
|
java.lang.String |
getDisplayName(org.tm4j.topicmap.Topic topic,org.tm4j.topicmap.Topic[] inScope)
Returns a string which may be used as a display name in the specified scope.
|
java.util.Collection |
getMembersOfType(org.tm4j.topicmap.Association assoc,org.tm4j.net.Locator subjectOrIndicator)
Returns the set of Members of the specified Association for which the
subject or subject indicator of the roleSpec matches the specified locator
|
java.util.Collection |
getMembersOfType(org.tm4j.topicmap.Topic topic,org.tm4j.net.Locator subjectOrIndicator)
Returns the set of Members of the specified Topic for which the
subject or subject indicator of the roleSpec matches the specified locator.
|
java.util.Iterator |
getNamesIterator()
Returns an iterator over all of the base names of topics in the topic map.
|
java.util.Collection |
getObjectScopes(java.util.Collection objects)
Get the scopes of all specified topic map objects.
|
java.util.Collection |
getObjectTypes(java.util.Collection objects)
Gets the types of the specified objects
|
java.util.Collection |
getObjectsInScope(java.util.Collection scope,java.util.Collection objects)
Gets the all topic map objects in the specified scope
|
java.util.Collection |
getObjectsOfType(org.tm4j.topicmap.Topic type,java.util.Collection objects)
Returns only those objects in the specified collection which are of the specifed type.
|
java.util.Iterator |
getOccurrencesIterator()
Returns an iterator over all of the occurrences of topics in the topic map
|
java.util.Collection |
getPlayersOfRole(org.tm4j.topicmap.Association assoc,org.tm4j.topicmap.Topic roleSpec)
Returns the set of topics which are players in Members of the specified association
where the Member plays role defined by roleSpec.
|
java.lang.String |
getSortName(org.tm4j.topicmap.Topic topic,org.tm4j.topicmap.Topic[] inScope)
Returns a string which may be used as a sort name in the specified scope.
|
java.util.Collection |
getSubClasses(org.tm4j.topicmap.Topic cls)
Retrieves the subclasses of the class defined by the Topic
cls .
|
java.util.Collection |
getSuperClasses(org.tm4j.topicmap.Topic cls)
Retrieves the superclasses of the class defined by the
Topic cls .
|
java.util.Collection |
getThemes()
Returns the set of Topics in this topic map which are used as a theme in the
scope of one or more other topic map objects.
|
java.util.Collection |
getTopicTypes(java.util.Collection topics)
getTopicTypes
Returns all of the Topics which describe the type of another topic.
|
java.util.Collection |
getTopicsByIdentity(java.lang.String identity)
getTopicsByIdentity
Gets the Topic objects which have the specified identity.
|
java.util.Iterator |
getTopicsIterator()
Returns an iterator over all of the topics in the topic map.
|
Meta Data (1)
Related Topics
Imports
java.net.URL
[
Importee
]
Is Contained By
Is Imported By
Is Type For
See Also