net.sourceforge.fluxion.pussycat.util
Class AbstractPussycatSearcher<O>

java.lang.Object
  extended by net.sourceforge.fluxion.pussycat.util.AbstractPussycatSearcher<O>
All Implemented Interfaces:
PussycatSearcher<O>
Direct Known Subclasses:
PussycatOntologySearcher

public abstract class AbstractPussycatSearcher<O>
extends java.lang.Object
implements PussycatSearcher<O>


Field Summary
protected  java.util.HashMap<java.net.URI,java.util.Set> entityCache
           
protected  java.lang.Class filter
           
protected  java.lang.String pattern
           
protected  java.util.Set results
           
protected  O searchableObject
           
 
Constructor Summary
AbstractPussycatSearcher()
           
AbstractPussycatSearcher(java.lang.Class filter)
           
AbstractPussycatSearcher(java.lang.String pattern)
           
AbstractPussycatSearcher(java.lang.String pattern, java.lang.Class filter)
           
 
Method Summary
 void destroy()
           
 java.util.Set getEntities()
           
 java.lang.Class getFilter()
           
 java.lang.String getPattern()
           
 O getSearchableObject()
           
 java.lang.Class<O> getSearchableObjectClass()
           
protected abstract  void precache(O object)
           
 void removeCachedEntities(java.net.URI ontologyUri)
           
 void reset()
           
 void setFilter(java.lang.Class filter)
           
 void setPattern(java.lang.String pattern)
           
abstract  void visit(O object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

results

protected java.util.Set results

entityCache

protected java.util.HashMap<java.net.URI,java.util.Set> entityCache

pattern

protected java.lang.String pattern

filter

protected java.lang.Class filter

searchableObject

protected O searchableObject
Constructor Detail

AbstractPussycatSearcher

public AbstractPussycatSearcher()

AbstractPussycatSearcher

public AbstractPussycatSearcher(java.lang.String pattern)

AbstractPussycatSearcher

public AbstractPussycatSearcher(java.lang.Class filter)

AbstractPussycatSearcher

public AbstractPussycatSearcher(java.lang.String pattern,
                                java.lang.Class filter)
Method Detail

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String pattern)

getFilter

public java.lang.Class getFilter()

setFilter

public void setFilter(java.lang.Class filter)

removeCachedEntities

public void removeCachedEntities(java.net.URI ontologyUri)

reset

public void reset()

destroy

public void destroy()

getSearchableObject

public O getSearchableObject()

getSearchableObjectClass

public java.lang.Class<O> getSearchableObjectClass()

getEntities

public java.util.Set getEntities()

precache

protected abstract void precache(O object)

visit

public abstract void visit(O object)
                    throws PussycatException
Specified by:
visit in interface PussycatSearcher<O>
Throws:
PussycatException


Copyright © 2010. All Rights Reserved.