org.topbraidcomposer.core.search
Class ResourceSearch

java.lang.Object
  extended by org.topbraidcomposer.core.search.ResourceSearch

public class ResourceSearch
extends java.lang.Object

A singleton that can deliver resources that match a given search string.

Author:
Holger Knublauch

Constructor Summary
ResourceSearch()
           
 
Method Summary
static ResourceSearch get()
          Gets the currently used ResourceSearch engine.
 void search(com.hp.hpl.jena.rdf.model.Model model, java.lang.String pattern, IRDFNodeFilter filter, ISearchHandler handler)
           
 void search(com.hp.hpl.jena.rdf.model.Model model, java.lang.String pattern, ISearchHandler handler)
          Searches for matching resources in a given model and then calls a handler to process the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSearch

public ResourceSearch()
Method Detail

get

public static ResourceSearch get()
Gets the currently used ResourceSearch engine.

Returns:
the ResourceSearch

search

public void search(com.hp.hpl.jena.rdf.model.Model model,
                   java.lang.String pattern,
                   ISearchHandler handler)
            throws java.lang.reflect.InvocationTargetException
Searches for matching resources in a given model and then calls a handler to process the results.

Parameters:
model - the Model to search in
pattern - the search pattern (e.g., "Per*")
handler - the handler that shall be called after completion
Throws:
java.lang.reflect.InvocationTargetException

search

public void search(com.hp.hpl.jena.rdf.model.Model model,
                   java.lang.String pattern,
                   IRDFNodeFilter filter,
                   ISearchHandler handler)
            throws java.lang.reflect.InvocationTargetException
Throws:
java.lang.reflect.InvocationTargetException