net.ontopia.topicmaps.utils.deciders
Class WithinScopeDecider

java.lang.Object
  extended by net.ontopia.topicmaps.utils.deciders.WithinScopeDecider
All Implemented Interfaces:
DeciderIF

public class WithinScopeDecider
extends java.lang.Object
implements DeciderIF

INTERNAL: Decider that decides whether the scoped object is broader than the context. The context must be identical or a subset of the scopes. If there is no context, there can be no "ok".


Field Summary
protected  java.util.Collection context
           
 
Constructor Summary
WithinScopeDecider(java.util.Collection context)
           
 
Method Summary
 boolean ok(java.lang.Object scoped)
          PUBLIC: Returns true if the object is accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected java.util.Collection context
Constructor Detail

WithinScopeDecider

public WithinScopeDecider(java.util.Collection context)
Method Detail

ok

public boolean ok(java.lang.Object scoped)
Description copied from interface: DeciderIF
PUBLIC: Returns true if the object is accepted.

Specified by:
ok in interface DeciderIF


Copyright © 2000-2012 Ontopia.