Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xalan.xsltc.trax.TemplatesHandlerImpl
public class TemplatesHandlerImpl
extends java.lang.Object
implements ContentHandler, TemplatesHandler, SourceLoader
Nested Class Summary |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
String |
|
Templates |
|
void |
|
InputSource |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public void characters(char[] ch, int start, int length)
Just forward SAX2 event to parser object.
public void endDocument() throws SAXException
Just forward SAX2 event to parser object.
- Specified by:
- endDocument in interface ContentHandler
public void endElement(String uri, String localname, String qname)
Just forward SAX2 event to parser object.
- Specified by:
- endElement in interface ContentHandler
public void endPrefixMapping(String prefix)
Just forward SAX2 event to parser object.
- Specified by:
- endPrefixMapping in interface ContentHandler
public String getSystemId()
Implements javax.xml.transform.sax.TemplatesHandler.getSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
- Specified by:
- getSystemId in interface TemplatesHandler
- Returns:
- The systemID that was set with setSystemId(String id)
public 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.
- Specified by:
- getTemplates in interface TemplatesHandler
- Returns:
- The Templates object that was created during the SAX event process, or null if no Templates object has been created.
public void ignorableWhitespace(char[] ch, int start, int length)
Just forward SAX2 event to parser object.
public InputSource loadSource(String href, String context, XSLTC xsltc)
This method implements XSLTC's SourceLoader interface. It is used to glue a TrAX URIResolver to the XSLTC compiler's Input and Import classes.
- Specified by:
- loadSource in interface SourceLoader
- Parameters:
href
- The URI of the document to loadcontext
- The URI of the currently loaded documentxsltc
- The compiler that resuests the document
- Returns:
- An InputSource with the loaded document
public void processingInstruction(String name, String value)
Just forward SAX2 event to parser object.
- Specified by:
- processingInstruction in interface ContentHandler
public void setDocumentLocator(Locator locator)
Set internal system Id and forward SAX2 event to parser object.
- Specified by:
- setDocumentLocator in interface ContentHandler
public 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.
- Specified by:
- setSystemId in interface TemplatesHandler
- Parameters:
id
- Base URI for this stylesheet
public void setURIResolver(URIResolver resolver)
Store URIResolver needed for Transformers.
public void skippedEntity(String name)
Just forward SAX2 event to parser object.
- Specified by:
- skippedEntity in interface ContentHandler
public void startDocument()
Re-initialize parser and forward SAX2 event.
- Specified by:
- startDocument in interface ContentHandler
public void startElement(String uri, String localname, String qname, Attributes attributes) throws SAXException
Just forward SAX2 event to parser object.
- Specified by:
- startElement in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
Just forward SAX2 event to parser object.
- Specified by:
- startPrefixMapping in interface ContentHandler