|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xalan.xsltc.trax.TemplatesHandlerImpl
Implementation of a JAXP1.1 TemplatesHandler
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. |
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(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(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(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,
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getSystemId()
getSystemId
in interface TemplatesHandler
public void setSystemId(java.lang.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(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 ContentHandler
ContentHandler.endDocument()
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.startDocument()
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
startPrefixMapping
in interface ContentHandler
prefix
- The Namespace prefix being declared.
An empty string is used for the default element namespace,
which has no prefix.uri
- The Namespace URI the prefix is mapped to.ContentHandler.endPrefixMapping(java.lang.String)
,
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endPrefixMapping(java.lang.String prefix)
endPrefixMapping
in interface ContentHandler
prefix
- The prefix that was being mapping.
This is the empty string when a default mapping scope ends.ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
,
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void startElement(java.lang.String uri, java.lang.String localname, java.lang.String qname, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localname
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qname
- The qualified name (with prefix), or the
empty string if qualified names are not available.attributes
- The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
,
Attributes
public void endElement(java.lang.String uri, java.lang.String localname, java.lang.String qname)
endElement
in interface ContentHandler
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localname
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qname
- The qualified XML 1.0 name (with prefix), or the
empty string if qualified names are not available.public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.ContentHandler.ignorableWhitespace(char[], int, int)
,
Locator
public void processingInstruction(java.lang.String name, java.lang.String value)
processingInstruction
in interface ContentHandler
name
- The processing instruction target.value
- The processing instruction data, or null if
none was supplied. The data does not include any
whitespace separating it from the target.public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.ContentHandler.characters(char[], int, int)
public void skippedEntity(java.lang.String name)
skippedEntity
in interface ContentHandler
name
- The name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the string
"[dtd]".public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- An object that can return the location of
any SAX document event.Locator
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |