|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.topicmap.unified.UnifiedTopicMapObject org.tm4j.topicmap.unified.UnifiedScopedObject
Field Summary |
Fields inherited from class org.tm4j.topicmap.unified.UnifiedTopicMapObject |
m_tm |
Constructor Summary | |
UnifiedScopedObject(UnifiedTopicMap tm,
ScopedObject base)
|
Method Summary | |
void |
addTheme(Topic theme)
Adds a topic to the collection which define the scope of validity for this object. |
void |
dispose()
This method should be invoked when the object is no longer needed. |
java.util.Set |
getScope()
Gets the collection of topics which define the scope of validity for this object. |
boolean |
inScope(Topic theme)
Determines whether the specified theme is in the scope of this object. |
boolean |
inScope(Topic[] themes)
Determines whether one or more of the specified themes are in the scope of this object. |
void |
removeTheme(Topic theme)
Removes a topic from the collection which defines the scope of validity for this object. |
void |
setScope(Topic[] themes)
Sets the collection of topics which define the scope of validity for this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UnifiedScopedObject(UnifiedTopicMap tm, ScopedObject base)
Method Detail |
public void addTheme(Topic theme)
ScopedObject
addTheme
in interface ScopedObject
theme
- the scoping topic to be addedpublic void dispose()
ScopedObject
dispose
in interface ScopedObject
public java.util.Set getScope()
ScopedObject
getScope
in interface ScopedObject
public boolean inScope(Topic theme)
ScopedObject
inScope
in interface ScopedObject
true
if the specified theme is in the scope
of this object, false
otherwise.public boolean inScope(Topic[] themes)
ScopedObject
inScope
in interface ScopedObject
true
if the one or more of the specified
themes are in the scope of this object, false
otherwise.public void removeTheme(Topic theme)
ScopedObject
theme
is not a part of the set of
scoping topics for this object.
removeTheme
in interface ScopedObject
theme
- the topic to be removed.public void setScope(Topic[] themes)
ScopedObject
setScope
in interface ScopedObject
themes
- the new set of scoping topics for this object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |