|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.jclark.xsl.trax.TemplatesHandlerImpl
class TemplatesHandlerImpl
An implementation of javax.xml.transform.sax.TemplatesHandler
.
Collects SAX events representing an XSLT stylesheet, and provides
access to an object representing the "compiled" sheet
Constructor Summary | |
---|---|
protected |
TemplatesHandlerImpl(TransformerFactoryImpl factory,
XMLProcessor sheetModelBuilder)
construct with a reference to the factory, and a processor which can construct an object model from the SAX events representing the stylesheet |
Method Summary | |
---|---|
void |
endDocument()
end of stylesheet SAX events, compile it |
java.lang.String |
getSystemId()
qets the base URI associated with the stylesheet |
javax.xml.transform.Templates |
getTemplates()
When a TemplatesHandler object is used as a ContentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed. |
void |
setSystemId(java.lang.String systemId)
sets the base URI we want to associate with the stylesheet |
void |
startDocument()
SAX implementation: recieve notification of start of parse, redirect all subsequent SAX events to our embedded object model builder |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
characters, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping |
Constructor Detail |
---|
protected TemplatesHandlerImpl(TransformerFactoryImpl factory, XMLProcessor sheetModelBuilder) throws org.xml.sax.SAXException
org.xml.sax.SAXException
Method Detail |
---|
public javax.xml.transform.Templates getTemplates()
getTemplates
in interface javax.xml.transform.sax.TemplatesHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException
public void setSystemId(java.lang.String systemId)
setSystemId
in interface javax.xml.transform.sax.TemplatesHandler
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.sax.TemplatesHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |