net.ontopia.topicmaps.utils.deciders
Class InstanceDecider
java.lang.Object
net.ontopia.topicmaps.utils.deciders.InstanceDecider
- All Implemented Interfaces:
- DeciderIF
public class InstanceDecider
- extends java.lang.Object
- implements DeciderIF
INTERNAL: Decider that takes either TypedIF or TopicIF and
returns ok if it is an instance of one of the types it was
constructed with.
Field Summary |
protected static org.slf4j.Logger |
log
|
protected java.util.Collection |
types
|
Constructor Summary |
InstanceDecider(java.util.Collection types)
Constructor which takes a Collection of types. |
Method Summary |
boolean |
ok(java.lang.Object object)
Returns true if the type of a TypedIF object matches and returns
true if one of the types of a MultiTyped match . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.slf4j.Logger log
types
protected java.util.Collection types
InstanceDecider
public InstanceDecider(java.util.Collection types)
- Constructor which takes a Collection of types.
ok
public boolean ok(java.lang.Object object)
- Returns true if the type of a TypedIF object matches and returns
true if one of the types of a MultiTyped match .
- Specified by:
ok
in interface DeciderIF
Copyright © 2000-2012 Ontopia.