|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.trax.TemplatesHandlerImpl
public class TemplatesHandlerImpl
Implementation of a JAXP1.1 TemplatesHandler
Field Summary | |
---|---|
private int |
_indentNumber
Number of spaces to add for output indentation. |
private Parser |
_parser
A reference to XSLTC's parser object. |
private java.lang.String |
_systemId
System ID for this stylesheet. |
private TemplatesImpl |
_templates
The created Templates object. |
private TransformerFactoryImpl |
_tfactory
A reference to the transformer factory that this templates object belongs to. |
private javax.xml.transform.URIResolver |
_uriResolver
This URIResolver is passed to all Transformers. |
Constructor Summary | |
---|---|
protected |
TemplatesHandlerImpl(int indentNumber,
TransformerFactoryImpl tfactory)
Default constructor |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Just forward SAX2 event to parser object. |
void |
endDocument()
Just forward SAX2 event to parser object. |
void |
endElement(java.lang.String uri,
java.lang.String localname,
java.lang.String qname)
Just forward SAX2 event to parser object. |
void |
endPrefixMapping(java.lang.String prefix)
Just forward SAX2 event to parser object. |
java.lang.String |
getSystemId()
Implements javax.xml.transform.sax.TemplatesHandler.getSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved. |
javax.xml.transform.Templates |
getTemplates()
Implements javax.xml.transform.sax.TemplatesHandler.getTemplates() When a TemplatesHandler object is used as a ContentHandler or DocumentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Just forward SAX2 event to parser object. |
org.xml.sax.InputSource |
loadSource(java.lang.String href,
java.lang.String context,
XSLTC xsltc)
This method implements XSLTC's SourceLoader interface. |
void |
processingInstruction(java.lang.String name,
java.lang.String value)
Just forward SAX2 event to parser object. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set internal system Id and forward SAX2 event to parser object. |
void |
setSystemId(java.lang.String id)
Implements javax.xml.transform.sax.TemplatesHandler.setSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved. |
void |
setURIResolver(javax.xml.transform.URIResolver resolver)
Store URIResolver needed for Transformers. |
void |
skippedEntity(java.lang.String name)
Just forward SAX2 event to parser object. |
void |
startDocument()
Re-initialize parser and forward SAX2 event. |
void |
startElement(java.lang.String uri,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes attributes)
Just forward SAX2 event to parser object. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Just forward SAX2 event to parser object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String _systemId
private int _indentNumber
private javax.xml.transform.URIResolver _uriResolver
private TransformerFactoryImpl _tfactory
private Parser _parser
private TemplatesImpl _templates
Constructor Detail |
---|
protected TemplatesHandlerImpl(int indentNumber, TransformerFactoryImpl tfactory)
Method Detail |
---|
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.sax.TemplatesHandler
public void setSystemId(java.lang.String id)
setSystemId
in interface javax.xml.transform.sax.TemplatesHandler
id
- Base URI for this stylesheetpublic void setURIResolver(javax.xml.transform.URIResolver resolver)
public javax.xml.transform.Templates getTemplates()
getTemplates
in interface javax.xml.transform.sax.TemplatesHandler
public org.xml.sax.InputSource loadSource(java.lang.String href, java.lang.String context, XSLTC xsltc)
loadSource
in interface SourceLoader
href
- The URI of the document to loadcontext
- The URI of the currently loaded documentxsltc
- The compiler that resuests the document
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
startPrefixMapping
in interface org.xml.sax.ContentHandler
public void endPrefixMapping(java.lang.String prefix)
endPrefixMapping
in interface org.xml.sax.ContentHandler
public void startElement(java.lang.String uri, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localname, java.lang.String qname)
endElement
in interface org.xml.sax.ContentHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
public void processingInstruction(java.lang.String name, java.lang.String value)
processingInstruction
in interface org.xml.sax.ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface org.xml.sax.ContentHandler
public void skippedEntity(java.lang.String name)
skippedEntity
in interface org.xml.sax.ContentHandler
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |