All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.xmldbms.filters.FilterCompiler
Filter documents specify the following items:
For more information, see filters.dtd.
FilterCompiler assumes that the filter document is valid. If it is not, the class will either generate garbage or throw an exception. One way to guarantee that the document is valid is to pass a validating parser to the filter compiler.
For example, the following code creates a FilterSet object from the SalesFilter.ftr filter document.
// Instantiate a new filter compiler and set the XMLReader.
compiler = new FilterCompiler(xmlReader);
// Compile SalesFilter.ftr into a FilterSet object.
filterSet = compiler.compile(new InputSource(new FileReader("SalesFilter.ftr")));
public FilterCompiler(XMLReader xmlReader) throws SAXException
public FilterSet compile(XMLDBMSMap map,
InputSource src) throws XMLMiddlewareException
public void startDocument() throws SAXException
public void endDocument() throws SAXException
public void startElement(String uri,
String localName,
String qName,
Attributes attrs) throws SAXException
public void endElement(String uri,
String localName,
String qName) throws SAXException
public void characters(char ch[],
int start,
int length) throws SAXException
public void ignorableWhitespace(char ch[],
int start,
int length) throws SAXException
public void processingInstruction(String target,
String data) throws SAXException
public void startPrefixMapping(String prefix,
String uri) throws SAXException
public void endPrefixMapping(String prefix) throws SAXException
public void setDocumentLocator(Locator locator)
public void skippedEntity(String name) throws SAXException
All Packages Class Hierarchy This Package Previous Next Index