|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes a Topic Map construct which is
scoped, and whose validity is thereby constrained to
the set of topics that comprise the scope.
Association
s, BaseName
s, and Occurrence
s
may be restricted by a scope.
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[] scopingTopics)
Sets the collection of topics which define the scope of validity for this object. |
Method Detail |
public void dispose()
public java.util.Set getScope()
public void setScope(Topic[] scopingTopics) throws java.beans.PropertyVetoException
scopingTopics
- the new set of scoping topics for this object
java.beans.PropertyVetoException
- if the update of the scope is vetoed by a listenerpublic void addTheme(Topic theme) throws java.beans.PropertyVetoException
theme
- the scoping topic to be added
java.beans.PropertyVetoException
- if the update of the scope is vetoed by a listenerpublic void removeTheme(Topic theme) throws java.beans.PropertyVetoException
theme
is not a part of the set of
scoping topics for this object.
theme
- the topic to be removed.
java.beans.PropertyVetoException
- if the update of the scope is vetoed by a listenerpublic boolean inScope(Topic theme)
true
if the specified theme is in the scope
of this object, false
otherwise.public boolean inScope(Topic[] themes)
true
if the one or more of the specified
themes are in the scope of this object, false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |