| java.lang.Object org.xml.sax.helpers.XMLFilterImpl org.openlaszlo.compiler.SourceLocatorSAXOutputter
SourceLocatorSAXOutputter | public class SourceLocatorSAXOutputter extends XMLFilterImpl (Code) | | Generate SAX events from a Laszlo Parser JDOM tree, with filename
and linenumber info updated from the ElementWithLocationInfo
elements.
This does the bare minimum needed to feed the RELAXNG
validator. It is not namespace aware.
|
SOURCEINFO_ATTRIBUTE_NAME | final public static String SOURCEINFO_ATTRIBUTE_NAME(Code) | | |
SourceLocatorSAXOutputter | public SourceLocatorSAXOutputter()(Code) | |
This will create a SAXOutputter without any
registered handler. The application is then responsible for
registering them using the setXxxHandler() methods.
|
SourceLocatorSAXOutputter | public SourceLocatorSAXOutputter(ContentHandler contentHandler)(Code) | |
This will create a SAXOutputter with the
specified ContentHandler .
Parameters: contentHandler - contains ContentHandler callback methods |
getContentHandler | public ContentHandler getContentHandler()(Code) | |
Returns the registered ContentHandler .
the current ContentHandler ornull if none was registered. |
getErrorHandler | public ErrorHandler getErrorHandler()(Code) | |
Return the registered ErrorHandler .
the current ErrorHandler ornull if none was registered. |
output | public void output(Document document) throws JDOMException(Code) | |
This will output the JDOM Document , firing off the
SAX events that have been registered.
Parameters: document - JDOM Document to output. |
setContentHandler | public void setContentHandler(ContentHandler contentHandler)(Code) | |
This will set the ContentHandler .
Parameters: contentHandler - contains ContentHandler callback methods. |
setErrorHandler | public void setErrorHandler(ErrorHandler errorHandler)(Code) | |
This will set the ErrorHandler .
Parameters: errorHandler - contains ErrorHandler callback methods. |
setWriteMetaData | public void setWriteMetaData(boolean writeMetaData)(Code) | | |
Methods inherited from org.xml.sax.helpers.XMLFilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|