SMILA (incubation) API documentation

org.eclipse.smila.search.lucene
Class TemplateAccess

java.lang.Object
  extended by org.eclipse.smila.search.lucene.TemplateAccess
All Implemented Interfaces:
ITemplateAccess

public class TemplateAccess
extends java.lang.Object
implements ITemplateAccess

Author:
GSchmidt To change this generated comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
TemplateAccess()
           
 
Method Summary
 ITerm applyFieldTemplate(DField dField, DFieldTemplate dTemplate, IndexConnection ic)
          Apply field template.
 IQueryExpression applyTemplate(DQuery dQuery, DTemplate dTemplate, IndexConnection ic)
          
protected  void evaluateTemplateFields(DTerm newField, DField dField, IndexConnection ic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateAccess

public TemplateAccess()
Method Detail

applyTemplate

public IQueryExpression applyTemplate(DQuery dQuery,
                                      DTemplate dTemplate,
                                      IndexConnection ic)
                               throws TemplateException,
                                      NodeTransformerException,
                                      IndexException

Specified by:
applyTemplate in interface ITemplateAccess
Parameters:
dQuery - Simple search query expression.
dTemplate - Template.
ic - Index connection.
Returns:
Advanced search.
Throws:
TemplateException - Invalid search template.
NodeTransformerException - Unable to apply node transformers.
IndexException - Unable to apply transformers.
See Also:
ITemplateAccess.applyTemplate(org.eclipse.smila.search.utils.search.DQuery, org.eclipse.smila.search.templates.messages.searchtemplates.DTemplate, org.eclipse.smila.search.index.IndexConnection)

applyFieldTemplate

public ITerm applyFieldTemplate(DField dField,
                                DFieldTemplate dTemplate,
                                IndexConnection ic)
                         throws TemplateException,
                                NodeTransformerException,
                                IndexException
Description copied from interface: ITemplateAccess
Apply field template.

Specified by:
applyFieldTemplate in interface ITemplateAccess
Parameters:
dField - Field from simple search.
dTemplate - Template.
ic - Index connection.
Returns:
Subquery expression as ITerm.
Throws:
TemplateException - Invalid search template.
NodeTransformerException - Unable to apply node transformers.
IndexException - Unable to apply transformers.

evaluateTemplateFields

protected void evaluateTemplateFields(DTerm newField,
                                      DField dField,
                                      IndexConnection ic)
                               throws NodeTransformerException,
                                      TemplateException,
                                      IndexException
Throws:
NodeTransformerException
TemplateException
IndexException

SMILA (incubation) API documentation