net.ontopia.topicmaps.utils
Class TMDeciderUtils

java.lang.Object
  extended by net.ontopia.topicmaps.utils.TMDeciderUtils

public class TMDeciderUtils
extends java.lang.Object

INTERNAL: Utility class for creating topic map-based deciders.

Since:
2.0

Constructor Summary
TMDeciderUtils()
           
 
Method Summary
static DeciderIF getTypeDecider(java.util.Collection oktypes)
          INTERNAL: Creates a decider that approves all objects that implement TypedIF and which have a type included in the collection.
static DeciderIF getTypePSIDecider(java.util.Collection okpsis)
          INTERNAL: Creates a decided that approves all objects that implement TypedIF and which has a type which has one of the subject identifiers as one of its subject identifiers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMDeciderUtils

public TMDeciderUtils()
Method Detail

getTypeDecider

public static DeciderIF getTypeDecider(java.util.Collection oktypes)
INTERNAL: Creates a decider that approves all objects that implement TypedIF and which have a type included in the collection. All other objects are rejected.

Parameters:
oktypes - a collection of TopicIF objects

getTypePSIDecider

public static DeciderIF getTypePSIDecider(java.util.Collection okpsis)
                                   throws java.net.MalformedURLException
INTERNAL: Creates a decided that approves all objects that implement TypedIF and which has a type which has one of the subject identifiers as one of its subject identifiers. All other objects are rejected.

Parameters:
okpsis - a collection of LocatorIF or String objects
Throws:
java.net.MalformedURLException


Copyright © 2000-2012 Ontopia.