|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.slide.search.basic.BasicExpressionFactory
BasicExpressionFactory.java
| Field Summary | |
protected PropertyProvider |
propertyProvider
The PropertyProvider to use. |
protected IBasicQuery |
query
The IBasicQuery to use. |
protected ComparableResourcesPool |
requestedResourcePool
The pool of resources in the given scope. |
| Fields inherited from interface org.apache.slide.search.basic.IBasicExpressionFactory |
BASIC_EXPRESSION_FACTORY_CLASS |
| Constructor Summary | |
BasicExpressionFactory()
Creates a BasicExpressionFactory. |
|
BasicExpressionFactory(ComparableResourcesPool requestedResourcePool)
Creates a BasicExpressionFactory with the given requestedResourcePool to use. |
|
| Method Summary | |
IBasicExpression |
createExpression(org.jdom.Element element)
Creates a (non-merge) expression (compare...) for the given Element. |
IBasicExpression |
createMergeExpression(java.lang.String name,
java.lang.String namespace,
java.util.Collection expressionsToMerge)
Creates a MergeExpression for the given element (AND, OR). |
PropertyProvider |
getPropertyProvider()
Returns the PropertyProvider to use (set in method init()). |
IBasicQuery |
getQuery()
Returns the IBasicQuery to use (set in method init()). |
protected ComparableResourcesPool |
getRequestedResourcePool()
Returns the RequestedResourcesPool to use for the query. |
void |
init(IBasicQuery query,
PropertyProvider propertyProvider)
Initializes the factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ComparableResourcesPool requestedResourcePool
protected IBasicQuery query
protected PropertyProvider propertyProvider
| Constructor Detail |
public BasicExpressionFactory()
public BasicExpressionFactory(ComparableResourcesPool requestedResourcePool)
requestedResourcePool to use.
requestedResourcePool - the RequestedResourcePool to use.| Method Detail |
public void init(IBasicQuery query,
PropertyProvider propertyProvider)
throws BadQueryException
init in interface IBasicExpressionFactoryquery - the IBasicQuery.propertyProvider - the PropertyProvider to use (may be
null).
BadQueryExceptionpublic IBasicQuery getQuery()
init()).
getQuery in interface IBasicExpressionFactorypublic PropertyProvider getPropertyProvider()
init()).
getPropertyProvider in interface IBasicExpressionFactory
public IBasicExpression createMergeExpression(java.lang.String name,
java.lang.String namespace,
java.util.Collection expressionsToMerge)
throws BadQueryException
createMergeExpression in interface IBasicExpressionFactoryname - the name of the Element describing the merge expression.namespace - the namespace of the Element describing the merge expression.expressionsToMerge - the expressions to merge.
BadQueryException
public IBasicExpression createExpression(org.jdom.Element element)
throws BadQueryException
createExpression in interface IBasicExpressionFactoryelement - an Element describing the expression.
BadQueryException
protected ComparableResourcesPool getRequestedResourcePool()
throws BadQueryException
SerachException - if creation of the pool failed.
BadQueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||