Package 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
XMLFilterthat can cut sub-trees.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description SubtreeCutter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(String namespaceURI, String localName, String qName)booleanisCutting()voidsetContentHandler(ContentHandler handler)voidstartCutting()Starts cutting a sub-tree.voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes atts)-
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
-
-
-
-
Method Detail
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classXMLFilterImpl- Throws:
SAXException
-
isCutting
public boolean isCutting()
-
startCutting
public void startCutting()
Starts cutting a sub-tree. Should be called from within thestartElement(String, String, String, Attributes)implementation before the execution is passed tostartElement(String, String, String, Attributes). The current element will be cut.
-
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandlerin interfaceXMLReader- Overrides:
setContentHandlerin classXMLFilterImpl
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-
-