FileDocCategorySizeDatePackage
FilterBuilderFactory.javaAPI DocApache Lucene 1.9711Mon Feb 27 11:12:18 GMT 2006org.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);