|
||||||||||
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 IBasicExpressionFactory
query
- the IBasicQuery.propertyProvider
- the PropertyProvider to use (may be
null
).
BadQueryException
public IBasicQuery getQuery()
init()
).
getQuery
in interface IBasicExpressionFactory
public 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 IBasicExpressionFactory
name
- 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 IBasicExpressionFactory
element
- 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 |