edu.berkeley.cs.db.yfilter.filter
Class EXfilter
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--edu.berkeley.cs.db.yfilter.filter.EXfilter
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- Direct Known Subclasses:
- EXfilterBasic
- public abstract class EXfilter
- extends org.xml.sax.helpers.DefaultHandler
Method Summary |
abstract int |
addQuery(Query query)
|
void |
characters(char[] ch,
int start,
int count)
|
void |
clear()
clear the content for the next message |
abstract void |
deleteQuery(Query query,
int queryId)
|
void |
endDocument()
|
void |
endElement()
|
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String eleName)
|
static void |
main(java.lang.String[] args)
|
void |
setEventSequence(java.util.ArrayList events)
|
void |
setXMLTree(XMLTree tree)
|
void |
startDocument()
event-based processing according to the SAX programming interface |
void |
startElement()
|
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String elementName,
org.xml.sax.Attributes attrs)
|
void |
startParsing()
this function reads an element stream from a parsed representation
and calls a similar set of handlers for each element encountered |
protected void |
startParsing(java.lang.String filename)
this function calls event based parsing that in turns calls the
event handles provided by the subclasses |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_tree
protected XMLTree m_tree
m_events
protected ParsingContext[] m_events
m_eventIndex
protected java.util.Hashtable m_eventIndex
m_contextPath
protected java.util.Stack m_contextPath
m_trace
protected boolean m_trace
m_out
protected java.io.PrintStream m_out
DEBUG_QUERY_PARSING
public static boolean DEBUG_QUERY_PARSING
DEBUG_XML_PARSING
public static boolean DEBUG_XML_PARSING
EXfilter
public EXfilter()
setXMLTree
public void setXMLTree(XMLTree tree)
setEventSequence
public void setEventSequence(java.util.ArrayList events)
addQuery
public abstract int addQuery(Query query)
deleteQuery
public abstract void deleteQuery(Query query,
int queryId)
startParsing
protected void startParsing(java.lang.String filename)
- this function calls event based parsing that in turns calls the
event handles provided by the subclasses
- Parameters:
filename
-
startParsing
public void startParsing()
- this function reads an element stream from a parsed representation
and calls a similar set of handlers for each element encountered
startDocument
public void startDocument()
- event-based processing according to the SAX programming interface
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(java.lang.String uri,
java.lang.String local,
java.lang.String elementName,
org.xml.sax.Attributes attrs)
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
characters
public void characters(char[] ch,
int start,
int count)
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
endElement
public void endElement(java.lang.String uri,
java.lang.String local,
java.lang.String eleName)
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
endDocument
public void endDocument()
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement()
endElement
public void endElement()
clear
public void clear()
- clear the content for the next message
main
public static void main(java.lang.String[] args)