net.ontopia.topicmaps.query.impl.basic
Class JavaModule

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.basic.JavaModule
All Implemented Interfaces:
ModuleIF

public class JavaModule
extends java.lang.Object
implements ModuleIF

EXPERIMENTAL: A query module that is able to instantiate predicates when given a java class name.

Example: import "urn:x-java:net.ontopia.topicmaps.query.spi.LuceneSearcher?index=/tmp/myindex" as lucene


Field Summary
static java.lang.String MODULE_PREFIX
           
protected  java.lang.String moduleURI
           
protected  TopicMapIF topicmap
           
 
Constructor Summary
JavaModule(TopicMapIF topicmap, java.lang.String moduleURI)
           
 
Method Summary
 PredicateIF getPredicate(java.lang.String name)
          INTERNAL: Returns the predicate with the given local name inside the module.
protected  java.util.Map parseParameters(java.lang.String parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE_PREFIX

public static final java.lang.String MODULE_PREFIX
See Also:
Constant Field Values

topicmap

protected TopicMapIF topicmap

moduleURI

protected java.lang.String moduleURI
Constructor Detail

JavaModule

public JavaModule(TopicMapIF topicmap,
                  java.lang.String moduleURI)
Method Detail

getPredicate

public PredicateIF getPredicate(java.lang.String name)
Description copied from interface: ModuleIF
INTERNAL: Returns the predicate with the given local name inside the module.

Specified by:
getPredicate in interface ModuleIF
Parameters:
name - The local name of the predicate; that is the part of the QName after the colon.

parseParameters

protected java.util.Map parseParameters(java.lang.String parameters)


Copyright © 2000-2012 Ontopia.