Package net.ontopia.topicmaps.utils
Class SubjectIdentityDecider<T extends TMObjectIF>
java.lang.Object
net.ontopia.topicmaps.utils.SubjectIdentityDecider<T>
- All Implemented Interfaces:
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 -
Constructor Summary
ConstructorsConstructorDescriptionSubjectIdentityDecider(LocatorIF subject_identifier) INTERNAL: Creates a decider which uses the given subject identifier. -
Method Summary
-
Field Details
-
subject_identifier
PROTECTED: the given subject identifier.
-
-
Constructor Details
-
SubjectIdentityDecider
INTERNAL: Creates a decider which uses the given subject identifier.- Parameters:
subject_identifier- locatorIF which is the given subject identifier
-
-
Method Details
-
test
INTERNAL: Decides whether an object (directly or indirectly) has a given subject identifier.- Specified by:
testin 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)
-