Home » lucene-3.0.1-src » org.apache.lucene.queryParser.core.config » [javadoc | source]
abstract public class: QueryConfigHandler [javadoc | source]

Direct Known Subclasses:

This class can be used to hold any query configuration and no field configuration. For field configuration, it creates a empty FieldConfig object and delegate it to field config listeners, these are responsible for setting up all the field configuration. QueryConfigHandler should be extended by classes that intends to provide configuration to QueryNodeProcessor objects. This class extends AttributeSource , so Attribute s can be attached to it. The class that extends QueryConfigHandler should also provide FieldConfig objects for each collection field.
Method from org.apache.lucene.queryParser.core.config.QueryConfigHandler Summary:
addFieldConfigListener,   getFieldConfig
Methods from org.apache.lucene.util.AttributeSource:
addAttribute,   addAttributeImpl,   captureState,   clearAttributes,   cloneAttributes,   equals,   getAttribute,   getAttributeClassesIterator,   getAttributeFactory,   getAttributeImplsIterator,   hasAttribute,   hasAttributes,   hashCode,   restoreState,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.queryParser.core.config.QueryConfigHandler Detail:
 public  void addFieldConfigListener(FieldConfigListener listener) 
    Adds a listener. The added listeners are called in the order they are added.
 public FieldConfig getFieldConfig(CharSequence fieldName) 
    Returns an implementation of FieldConfig for a specific field name. If the implemented QueryConfigHandler does not know a specific field name, it may return null, indicating there is no configuration for that field.