|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.util.ErrorObserverAdapter
org.exolab.adaptx.xslt.util.StylesheetHandler
A class which implements DocumentHandler and is used by the XSLReader when reading an XSLT stylsheet.
Field Summary |
Fields inherited from interface org.exolab.adaptx.util.ErrorObserver |
FATAL, NORMAL, WARNING |
Constructor Summary | |
StylesheetHandler()
Creates a new StylesheetHandler |
|
StylesheetHandler(XSLTReader xsltReader)
Creates a new StylesheetHandler using the given XSLReader. |
Method Summary | |
void |
characters(char[] chars,
int start,
int length)
Signals the start of characters |
void |
endDocument()
Signals the end of the document |
void |
endElement(java.lang.String name)
Signals the start of element |
XSLTStylesheet |
getStylesheet()
Return the XSLStylesheet created by this StylesheetHandler |
void |
ignorableWhitespace(char[] chars,
int start,
int length)
Signals the start of ignorable whitespace characters |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Signals to recieve a processing instruction |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Sets the document locator |
void |
setURILocation(URILocation location)
Sets the URILocation for the stylesheet being read |
void |
setURIResolver(URIResolver resolver)
Sets the URIResolver for this StylesheetHandler |
void |
startDocument()
Signals the start of a document |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
Signals the start of element |
Methods inherited from class org.exolab.adaptx.util.ErrorObserverAdapter |
addErrorObserver, receiveError, receiveError, receiveError, receiveError, receiveError, receiveError, removeAllErrorObservers, removeErrorObserver |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StylesheetHandler()
public StylesheetHandler(XSLTReader xsltReader)
xsltReader
- the XSLTReader to use when reading imported
or included stylesheetsMethod Detail |
public XSLTStylesheet getStylesheet()
public void setURILocation(URILocation location)
location
- the URILocation for the stylesheetpublic void setURIResolver(URIResolver resolver)
resolver
- the URIResolver this StylesheetHandler should
use for resolving all URIs.public void characters(char[] chars, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.DocumentHandler
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- the number of characters to recieve
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.DocumentHandler
name
- the name of the element
org.xml.sax.SAXException
public void ignorableWhitespace(char[] chars, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.DocumentHandler
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- the number of characters to recieve
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.DocumentHandler
target
- the target of the processing instructiondata
- the content of the processing instruction
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.DocumentHandler
locator
- the Locator used by this DocumentHandlerpublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.DocumentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.DocumentHandler
name
- the name of the elementatts
- the AttributeList containing the associated
attributes for the element
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |