|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An index of all themes used to scope characteristics in a topic map.
Field Summary | |
static int |
SCOPE_MATCH_ALL
|
static int |
SCOPE_MATCH_ANY
|
static int |
SCOPE_MATCH_EXACT
|
Method Summary | |
java.util.Collection |
getScopedObjects(Topic theme)
Returns a Collection of all scoped objects in the topic map where theme or a topic merged with theme
is one theme in the scope of the object. |
java.util.Collection |
getScopedObjects(Topic[] themes,
int scopeMatch)
Returns a Collection of all scoped objects in the topic map where themes matches the themes in the scope of the object. |
java.util.Collection |
getScopedObjects(Topic theme,
boolean includeMergedTopics)
Returns a Collection of all scoped objects in the topic map where theme is one theme in the scope of the object. |
java.util.Collection |
getThemes()
Returns a Collection of all topics used as themes in the topic map. |
Methods inherited from interface org.tm4j.topicmap.index.Index |
close, isOpen, open, reindex |
Field Detail |
public static final int SCOPE_MATCH_ALL
public static final int SCOPE_MATCH_ANY
public static final int SCOPE_MATCH_EXACT
Method Detail |
public java.util.Collection getThemes()
public java.util.Collection getScopedObjects(Topic theme)
theme
or a topic merged with theme
is one theme in the scope of the object.
theme
- the scope theme to query for.
public java.util.Collection getScopedObjects(Topic theme, boolean includeMergedTopics)
theme
is one theme in the scope of the object. If
includeMergedTopics
is true
then
the returned collection also includes all objects where a topic merged
with theme
is a theme in the scope of the object.
theme
- the scope theme to query forincludeMergedTopics
- whether or not to include topics merged with
theme
in the index lookup.
public java.util.Collection getScopedObjects(Topic[] themes, int scopeMatch)
themes
matches the themes in the scope of the object.
themes
- the themes to be matched by the queryscopeMatch
- specifes he type of matching done is controlled by the scopeMatch
parameter. The allowed values are specified as constants on this interface:
themes
are also in the scope of the scoped object.
themes
are in the scope of the scoped object.
themes
are exactly those in the scope of the scoped object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |