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 Details

    • subject_identifier

      protected LocatorIF subject_identifier
      PROTECTED: the given subject identifier.
  • Constructor Details

    • 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 Details

    • test

      public boolean test(T object)
      INTERNAL: Decides whether an object (directly or indirectly) has a given subject identifier.
      Specified by:
      test in interface Predicate<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)