|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeInstanceIndex
Index for type-instance relationships between Topic
s
and for Typed
Topic Maps constructs.
This index provides access to Topic
s used in
type-instance
relationships or as type of a Typed
construct.
Further, the retrieval of Association
s, Role
s,
Occurrence
s, and Name
s by their type property is
supported.
Method Summary | |
---|---|
java.util.Collection<Association> |
getAssociations(Topic type)
Returns the associations in the topic map whose type property equals type. |
java.util.Collection<Topic> |
getAssociationTypes()
Returns the topics in the topic map used in the type property of Association s. |
java.util.Collection<Name> |
getNames(Topic type)
Returns the topic names in the topic map whose type property equals type. |
java.util.Collection<Topic> |
getNameTypes()
Returns the topics in the topic map used in the type property of Name s. |
java.util.Collection<Occurrence> |
getOccurrences(Topic type)
Returns the occurrences in the topic map whose type property equals type. |
java.util.Collection<Topic> |
getOccurrenceTypes()
Returns the topics in the topic map used in the type property of Occurrence s. |
java.util.Collection<Role> |
getRoles(Topic type)
Returns the roles in the topic map whose type property equals type. |
java.util.Collection<Topic> |
getRoleTypes()
Returns the topics in the topic map used in the type property of Role s. |
java.util.Collection<Topic> |
getTopics(Topic type)
Returns the topics which are an instance of the specified type or all topics which have are not an instance of another topic (iff type is null ). |
java.util.Collection<Topic> |
getTopics(Topic[] types,
boolean matchAll)
Returns the topics in the topic map whose type property equals one of those types at least. |
java.util.Collection<Topic> |
getTopicTypes()
Returns the topics in topic map which are used as type in an "type-instance"-relationship. |
Methods inherited from interface org.tmapi.index.Index |
---|
close, isAutoUpdated, isOpen, open, reindex |
Method Detail |
---|
java.util.Collection<Topic> getTopics(Topic type)
type
is null
).
Note: Implementations may return only those topics whose types property contains the type and may ignore type-instance relationships which are modelled as association. Further, supertype-subtype relationships may also be ignored.
The return value may be empty but must never be null.
type
- The type of the Topic
s to be returned or null
to
return all topics which are not an instance of another topic.
Topic
s.java.util.Collection<Topic> getTopics(Topic[] types, boolean matchAll)
Note: Implementations may return only those topics whose types property contains the type and may ignore type-instance relationships which are modelled as association. Further, supertype-subtype relationships may also be ignored.
The return value may be empty but must never be null.
types
- Types of the Topic
s to be returned.matchAll
- If true, a topic must be an instance of
all types, if false the topic must be
an instance of one type at least.
Topic
s.java.util.Collection<Topic> getTopicTypes()
Note: Implementations may return only those topics which are member of the types property of other topics and may ignore type-instance relationships which are modelled as association. Further, supertype-subtype relationships may also be ignored.
The return value may be empty but must never be null.
Topic
s.java.util.Collection<Association> getAssociations(Topic type)
type
- The type of the Association
s to be returned.
Association
s.java.util.Collection<Topic> getAssociationTypes()
Association
s.
The return value may be empty but must never be null.
Topic
s.java.util.Collection<Role> getRoles(Topic type)
type
- The type of the Role
s to be returned.
Role
s.java.util.Collection<Topic> getRoleTypes()
Role
s.
The return value may be empty but must never be null.
Topic
s.java.util.Collection<Occurrence> getOccurrences(Topic type)
type
- The type of the Occurrence
s to be returned.
Occurrence
s.java.util.Collection<Topic> getOccurrenceTypes()
Occurrence
s.
The return value may be empty but must never be null.
Topic
s.java.util.Collection<Name> getNames(Topic type)
type
- The type of the Name
s to be returned.
Name
s.java.util.Collection<Topic> getNameTypes()
Name
s.
The return value may be empty but must never be null.
Topic
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |