public class TemplatesHandlerImpl extends Object implements ContentHandler, TemplatesHandler, SourceLoader
Modifier | Constructor and Description |
---|---|
protected |
TemplatesHandlerImpl(int indentNumber,
TransformerFactoryImpl tfactory)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
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(String uri,
String localname,
String qname)
Just forward SAX2 event to parser object.
|
void |
endPrefixMapping(String prefix)
Just forward SAX2 event to parser object.
|
String |
getSystemId()
Implements javax.xml.transform.sax.TemplatesHandler.getSystemId()
Get the base ID (URI or system ID) from where relative URLs will be
resolved.
|
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.
|
InputSource |
loadSource(String href,
String context,
XSLTC xsltc)
This method implements XSLTC's SourceLoader interface.
|
void |
processingInstruction(String name,
String value)
Just forward SAX2 event to parser object.
|
void |
setDocumentLocator(Locator locator)
Set internal system Id and forward SAX2 event to parser object.
|
void |
setSystemId(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(URIResolver resolver)
Store URIResolver needed for Transformers.
|
void |
skippedEntity(String name)
Just forward SAX2 event to parser object.
|
void |
startDocument()
Re-initialize parser and forward SAX2 event.
|
void |
startElement(String uri,
String localname,
String qname,
Attributes attributes)
Just forward SAX2 event to parser object.
|
void |
startPrefixMapping(String prefix,
String uri)
Just forward SAX2 event to parser object.
|
protected TemplatesHandlerImpl(int indentNumber, TransformerFactoryImpl tfactory)
public String getSystemId()
getSystemId
in interface TemplatesHandler
public void setSystemId(String id)
setSystemId
in interface TemplatesHandler
id
- Base URI for this stylesheetpublic void setURIResolver(URIResolver resolver)
public Templates getTemplates()
getTemplates
in interface TemplatesHandler
public InputSource loadSource(String href, 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 documentpublic void startDocument()
startDocument
in interface ContentHandler
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void startElement(String uri, String localname, String qname, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String uri, String localname, String qname)
endElement
in interface ContentHandler
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void processingInstruction(String name, String value)
processingInstruction
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
Copyright © 2018 JBoss by Red Hat. All rights reserved.