|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
TopicMap
Method Summary | |
java.lang.String |
generateId()
|
java.lang.String |
generateId(java.net.URL baseURL)
|
java.util.Collection |
getAssociations(Topic topic)
Returns a collection of all associations in which the specified topic plays a role. |
java.util.Collection |
getAssociationsInScope(Topic[] scope,
java.util.Collection associations)
Returns an unmodifiable collection of associations in a given scope. |
java.util.Collection |
getAssociationsInScope(Topic scope,
java.util.Collection associations)
Returns a collection of the 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(Topic type,
java.util.Collection associations)
Returns an unmodifiable collection of associations which are of the specified type. |
java.util.Collection |
getAssociationTypes(java.util.Collection associations)
Retrieves the type of all specified associations |
java.lang.String |
getDisplayName(Topic topic,
Topic[] inScope)
Returns a string which may be used as a display name in the specified scope. |
java.util.Collection |
getMembersOfType(Association assoc,
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(Topic topic,
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 |
getObjectsInScope(java.util.Collection scope,
java.util.Collection objects)
Gets the all topic map objects in the specified scope |
java.util.Collection |
getObjectsOfType(Topic type,
java.util.Collection objects)
Returns only those objects in the specified collection which are of the specifed type. |
java.util.Collection |
getObjectTypes(java.util.Collection objects)
Gets the types of the specified objects |
java.util.Iterator |
getOccurrencesIterator()
Returns an iterator over all of the occurrences of topics in the topic map |
java.util.Collection |
getPlayersOfRole(Association assoc,
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(Topic topic,
Topic[] inScope)
Returns a string which may be used as a sort name in the specified scope. |
java.util.Collection |
getSubClasses(Topic cls)
Retrieves the subclasses of the class defined by the Topic cls . |
java.util.Collection |
getSuperClasses(Topic cls)
Retrieves the superclasses of the class defined by the Topic cls . |
java.util.Collection |
getThemes()
Deprecated. from 0.9.0 use the ThemesIndex |
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. |
java.util.Collection |
getTopicTypes(java.util.Collection topics)
getTopicTypes Returns all of the Topics which describe the type of another topic. |
Method Detail |
public java.util.Collection getAssociationTypes(java.util.Collection associations)
associations
- The associations to be searched. If this parameter is null, all associations in the topic map are searched.
public java.util.Collection getAssociationsInScope(Topic scope, java.util.Collection associations)
scope
- The single-theme scope to be searched.associations
- The associations to be searched. If this is null then all associations in the topic map are searched.
public java.util.Collection getAssociationsInScope(Topic[] scope, java.util.Collection associations)
scope
- The set of themes to be searched.associations
- The associations to be searched. If this is null then all associations in the topic map are searched.
public java.util.Collection getAssociationsOfType(Topic type, java.util.Collection associations)
type
- The topic defining the type to be searched.associations
- The associations to be searched. If this is null, then all associations in the topic map are searched.public java.util.Iterator getAssociationsIterator()
public java.util.Collection getTopicTypes(java.util.Collection topics)
topics
- A Collection of the topics to return the types of. If
this is null, then the types of all topics in the map will be returned.public java.util.Iterator getTopicsIterator()
public java.util.Iterator getNamesIterator()
public java.util.Iterator getOccurrencesIterator()
public java.util.Collection getObjectsOfType(Topic type, java.util.Collection objects)
type
- The topic defining the type to filter onobjects
- The objects to be filteredpublic java.util.Collection getObjectsInScope(java.util.Collection scope, java.util.Collection objects)
scope
- The scope to be searched.objects
- The objects to be processed. If null, all objects in the topic map are processed.
public java.util.Collection getObjectScopes(java.util.Collection objects)
objects
- A List of the objects to be processed. If this is null then all objects in the topic map are processed.
public java.util.Collection getObjectTypes(java.util.Collection objects)
objects
- List of the objects to be processed
public java.util.Collection getTopicsByIdentity(java.lang.String identity)
identity
- The topic identity to be searched for
public java.util.Collection getThemes()
ThemesIndex
public java.util.Collection getMembersOfType(Topic topic, Locator subjectOrIndicator)
public java.util.Collection getMembersOfType(Association assoc, Locator subjectOrIndicator)
public java.util.Collection getPlayersOfRole(Association assoc, Topic roleSpec)
public java.lang.String getDisplayName(Topic topic, Topic[] inScope)
public java.lang.String getSortName(Topic topic, Topic[] inScope)
public java.util.Collection getAssociations(Topic topic)
public java.lang.String generateId()
public java.lang.String generateId(java.net.URL baseURL)
public java.util.Collection getSuperClasses(Topic cls)
cls
. This method makes use of the XTM-defined
subclass/superclass association and role types
cls
- The topic defining the class to retrieve the superclasses for.
cls
public java.util.Collection getSubClasses(Topic cls)
cls
. This method makes use of the XTM-defined
subclass/superclass association and role types.
cls
- The topic defining the class to retrieve the subclasses for.
cls
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |