net.ontopia.topicmaps.utils
Class SubjectIdentityDecider
java.lang.Object
net.ontopia.topicmaps.utils.SubjectIdentityDecider
- All Implemented Interfaces:
- DeciderIF
public class SubjectIdentityDecider
- extends Object
- implements DeciderIF
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.
Method Summary |
boolean |
ok(Object object)
INTERNAL: Decides whether an object (directly or indirectly) has a
given subject identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subject_identifier
protected LocatorIF subject_identifier
- PROTECTED: the given subject identifier.
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
ok
public boolean ok(Object object)
- INTERNAL: Decides whether an object (directly or indirectly) has a
given subject identifier.
- Specified by:
ok
in interface DeciderIF
- 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)
Copyright © 2000-2012 Ontopia.