Package net.ontopia.topicmaps.utils
Class SubjectIdentityDecider<T extends TMObjectIF>
- java.lang.Object
-
- net.ontopia.topicmaps.utils.SubjectIdentityDecider<T>
-
- All Implemented Interfaces:
Predicate<T>
public class SubjectIdentityDecider<T extends TMObjectIF> extends Object implements Predicate<T>
INTERNAL: Decider that decides whether the object is an instance of a topic with the given subject identifier. The decider returns true when the object has the given subject identifier, or it is an instance of a topic with the given subject identifier.
-
-
Field Summary
Fields Modifier and Type Field Description protected LocatorIF
subject_identifier
PROTECTED: the given subject identifier.
-
Constructor Summary
Constructors Constructor Description SubjectIdentityDecider(LocatorIF subject_identifier)
INTERNAL: Creates a decider which uses the given subject identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(T object)
INTERNAL: Decides whether an object (directly or indirectly) has a given subject identifier.
-
-
-
Field Detail
-
subject_identifier
protected LocatorIF subject_identifier
PROTECTED: the given subject identifier.
-
-
Constructor Detail
-
SubjectIdentityDecider
public SubjectIdentityDecider(LocatorIF subject_identifier)
INTERNAL: Creates a decider which uses the given subject identifier.- Parameters:
subject_identifier
- locatorIF which is the given subject identifier
-
-
Method Detail
-
test
public boolean test(T object)
INTERNAL: Decides whether an object (directly or indirectly) has a given subject identifier.- Specified by:
test
in interfacePredicate<T extends TMObjectIF>
- Parameters:
object
- an object which must be a TypedIF or TopicIF- Returns:
- boolean; true iff the given object has the given subject identifier (directly or indirectly)
-
-