FileDocCategorySizeDatePackage
FilterBuilderFactory.javaAPI DocApache Lucene 2.1.01643Wed Feb 14 10:46:20 GMT 2007org.apache.lucene.xmlparser

FilterBuilderFactory

public class FilterBuilderFactory extends Object implements FilterBuilder
author
maharwood

Fields Summary
HashMap
builders
Constructors Summary
Methods Summary
public voidaddBuilder(java.lang.String nodeName, FilterBuilder builder)

		builders.put(nodeName,builder);
	
public org.apache.lucene.search.FiltergetFilter(org.w3c.dom.Element n)

	
	      
		FilterBuilder builder=(FilterBuilder) builders.get(n.getNodeName());
		if(builder==null)
		{
			throw new ParserException("No FilterBuilder defined for node "+n.getNodeName()); 
		}
		return builder.getFilter(n); 
	
public FilterBuildergetFilterBuilder(java.lang.String nodeName)

		return (FilterBuilder) builders.get(nodeName);