net.ontopia.topicmaps.nav2.impl.basic
Class TypeDecider

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.impl.basic.TypeDecider
All Implemented Interfaces:
NavigatorDeciderIF<TopicIF>, DeciderIF<TopicIF>

public class TypeDecider
extends Object
implements DeciderIF<TopicIF>, NavigatorDeciderIF<TopicIF>

INTERNAL: Decider for verifying if a given topic type is identical or a subclass of a reference topic type (for example occurrence type).


Field Summary
static String OCC_DESCRIPTION
           
static String OCC_METADATA
           
 
Constructor Summary
TypeDecider(NavigatorPageIF contextTag, String type)
          INTERNAL: Constructor which tries to retrieve the PSI for the related topic types from the navigator configuration
TypeDecider(String type)
          INTERNAL: default constructor.
 
Method Summary
 boolean ok(NavigatorPageIF contextTag, TopicIF typingTopic)
          INTERNAL: if implemented criteria are matched: deliver true, otherwise false.
 boolean ok(TopicIF obj)
          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

OCC_METADATA

public static final String OCC_METADATA
See Also:
Constant Field Values

OCC_DESCRIPTION

public static final String OCC_DESCRIPTION
See Also:
Constant Field Values
Constructor Detail

TypeDecider

public TypeDecider(String type)
            throws MalformedURLException
INTERNAL: default constructor. Use the constants of this class to specify to which type should be compared.

Throws:
MalformedURLException

TypeDecider

public TypeDecider(NavigatorPageIF contextTag,
                   String type)
            throws MalformedURLException
INTERNAL: Constructor which tries to retrieve the PSI for the related topic types from the navigator configuration

Throws:
MalformedURLException
Method Detail

ok

public boolean ok(NavigatorPageIF contextTag,
                  TopicIF typingTopic)
Description copied from interface: NavigatorDeciderIF
INTERNAL: if implemented criteria are matched: deliver true, otherwise false.

Specified by:
ok in interface NavigatorDeciderIF<TopicIF>

ok

public boolean ok(TopicIF obj)
Description copied from interface: DeciderIF
PUBLIC: Returns true if the object is accepted.

Specified by:
ok in interface DeciderIF<TopicIF>


Copyright © 2000-2012 Ontopia.