com.sun.tools.xjc.util
Class SubtreeCutter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.sun.tools.xjc.util.SubtreeCutter
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader
- Direct Known Subclasses:
- AbstractExtensionBindingChecker
public abstract class SubtreeCutter
- extends XMLFilterImpl
XMLFilter
that can cut sub-trees.
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubtreeCutter
public SubtreeCutter()
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class XMLFilterImpl
- Throws:
SAXException
isCutting
public boolean isCutting()
startCutting
public void startCutting()
- Starts cutting a sub-tree. Should be called from within the
startElement(String, String, String, Attributes)
implementation
before the execution is passed to startElement(String, String, String, Attributes)
.
The current element will be cut.
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandler
in interface XMLReader
- Overrides:
setContentHandler
in class XMLFilterImpl
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class XMLFilterImpl
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class XMLFilterImpl
- Throws:
SAXException