|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.utils.ScopeUtils
public class ScopeUtils
INTERNAL: Scope processing utilities.
Constructor Summary | |
---|---|
ScopeUtils()
|
Method Summary | ||
---|---|---|
static boolean |
isApplicableInContext(ScopedIF obj,
Collection<TopicIF> context)
Checks to see if the ScopedIF's scope is applicable in the user context. |
|
static boolean |
isIntersectionOfContext(ScopedIF obj,
Collection<TopicIF> context)
Checks to see if the ScopedIF's scope intersects with the user context. |
|
static boolean |
isIntersectionOfContext(ScopedIF obj,
TopicIF[] context)
EXPERIMENTAL: |
|
static boolean |
isSubsetOfContext(ScopedIF obj,
Collection<TopicIF> context)
Checks to see if the ScopedIF's scope is a subset of the user context. |
|
static boolean |
isSupersetOfContext(ScopedIF obj,
Collection<TopicIF> context)
Checks to see if the ScopedIF's scope is a superset of the user context. |
|
static boolean |
isSupersetOfContext(ScopedIF obj,
TopicIF[] context)
EXPERIMENTAL: |
|
static
|
rankByScope(Collection<S> scoped,
Collection<TopicIF> scope)
Ranks the ScopedIFs by the applicability to the specified scope. |
|
static
|
rankByScope(Collection<S> scoped,
TopicIF theme)
Ranks the ScopedIFs by the applicability to the specified scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScopeUtils()
Method Detail |
---|
public static boolean isApplicableInContext(ScopedIF obj, Collection<TopicIF> context)
obj
- The ScopedIF object to compare with.context
- The user context; a collection of TopicIFs.
public static boolean isSupersetOfContext(ScopedIF obj, Collection<TopicIF> context)
Note that the unconstrained scope is in this case considered an empty set.
obj
- The ScopedIF object to compare with.context
- The user context; a collection of TopicIFs.
public static boolean isSupersetOfContext(ScopedIF obj, TopicIF[] context)
public static boolean isSubsetOfContext(ScopedIF obj, Collection<TopicIF> context)
Note that the unconstrained scope is in this case considered an empty set.
obj
- The ScopedIF object to compare with.context
- The user context; a collection of TopicIFs.
public static boolean isIntersectionOfContext(ScopedIF obj, Collection<TopicIF> context)
Note that the unconstrained scope is in this case considered an empty set.
obj
- The ScopedIF object to compare with.context
- The user context; a collection of TopicIFs.
public static boolean isIntersectionOfContext(ScopedIF obj, TopicIF[] context)
public static <S extends ScopedIF> List<S> rankByScope(Collection<S> scoped, TopicIF theme)
public static <S extends ScopedIF> List<S> rankByScope(Collection<S> scoped, Collection<TopicIF> scope)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |