|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.schema.impl.osl.ScopeSpecification
public class ScopeSpecification
INTERNAL: Represents a specification of a particular class of scopes. Used by many constraint objects to represent their allowed scopes.
Field Summary | |
---|---|
protected int |
match
|
static int |
MATCH_EXACT
INTERNAL: Means that the scope match must be exact. |
static int |
MATCH_SUBSET
INTERNAL: Means that the allowed scope can be a subset of the specified scope. |
static int |
MATCH_SUPERSET
INTERNAL: Means that the allowed scope can be a superset of the specified scope. |
protected java.util.Collection |
topicMatchers
|
Constructor Summary | |
---|---|
ScopeSpecification()
|
Method Summary | |
---|---|
void |
addThemeMatcher(TMObjectMatcherIF matcher)
INTERNAL: Add a new allowed theme. |
int |
getMatch()
INTERNAL: Returns a value indicating the match policy used. |
java.util.Collection |
getThemeMatchers()
INTERNAL: Returns the matchers of the allowed themes. |
boolean |
matches(TMObjectIF object)
INTERNAL: Matches the specified scope against that of a topic map object (which must implement ScopedIF). |
void |
removeThemeMatcher(TMObjectMatcherIF matcher)
INTERNAL: Removes a topic matcher from the set of allowed themes. |
void |
setMatch(int match)
INTERNAL: Sets the match policy used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MATCH_EXACT
public static final int MATCH_SUPERSET
public static final int MATCH_SUBSET
protected java.util.Collection topicMatchers
protected int match
Constructor Detail |
---|
public ScopeSpecification()
Method Detail |
---|
public int getMatch()
public void setMatch(int match)
public void addThemeMatcher(TMObjectMatcherIF matcher)
public java.util.Collection getThemeMatchers()
public void removeThemeMatcher(TMObjectMatcherIF matcher)
public boolean matches(TMObjectIF object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |