|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.query.QueryItemManager
public class QueryItemManager
Manages prebuilt QueryItem objects, so the plugin doesn't have to re-parse and such on each display of a wikipage. Handles case of possibly same queryString but on different WikiEngine instances (different wikis).
| Constructor Summary | |
|---|---|
QueryItemManager()
|
|
| Method Summary | |
|---|---|
QueryItem |
getQuery(WikiEngine engine,
String queryString)
The same queryString, evaluated against different engines probably will not give the same results (typically different engine instance means different wiki's. |
QueryItem |
getQueryForExpression(WikiEngine engine,
Expression expr)
Creates and/or retrieves a QueryItem based on an externally-created Expression (i.e., one not parsed into existence by getQuery(WikiEngine,String))
to the list of managed queries. |
QueryItem |
getQueryForExpression(WikiEngine engine,
Expression expr,
boolean create)
Retrieves a QueryItem based on an externally-created Expression (i.e., one not parsed into existence by getQuery(WikiEngine,String))
to the list of managed queries. |
List |
getQueryList()
|
void |
remove(QueryItem item)
Called by the QueryItemReaper when it finds that the query must die. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryItemManager()
| Method Detail |
|---|
public List getQueryList()
public QueryItem getQuery(WikiEngine engine,
String queryString)
throws QueryException
engine - queryString -
QueryException
public QueryItem getQueryForExpression(WikiEngine engine,
Expression expr)
getQuery(WikiEngine,String))
to the list of managed queries.
engine - the WikiEngine handling this plugin's context.expr - the Expression used to obtain the QueryItem.
public QueryItem getQueryForExpression(WikiEngine engine,
Expression expr,
boolean create)
getQuery(WikiEngine,String))
to the list of managed queries. If create is true, will create
a QueryItem if it did not previously exist.
engine - the WikiEngine handling this plugin's context.expr - the Expression used to obtain the QueryItem.create - if true, will create a QueryItem if it did not yet exist.
public void remove(QueryItem item)
item - the QueryItem to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||