com.jclark.xsl.sax
Class ResultBase
java.lang.Object
com.jclark.xsl.sax.ResultBase
- All Implemented Interfaces:
- Result, org.xml.sax.AttributeList
- Direct Known Subclasses:
- MultiNamespaceResult
public abstract class ResultBase
- extends java.lang.Object
- implements Result, org.xml.sax.AttributeList
Constructor Summary |
ResultBase(org.xml.sax.DocumentHandler documentHandler,
org.xml.sax.ErrorHandler errorHandler)
|
ResultBase(OutputMethodHandler outputMethodHandler,
org.xml.sax.ErrorHandler errorHandler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.AttributeList |
getName |
errorHandler
org.xml.sax.ErrorHandler errorHandler
outputMethodHandler
OutputMethodHandler outputMethodHandler
ResultBase
ResultBase(OutputMethodHandler outputMethodHandler,
org.xml.sax.ErrorHandler errorHandler)
ResultBase
ResultBase(org.xml.sax.DocumentHandler documentHandler,
org.xml.sax.ErrorHandler errorHandler)
flush
public void flush()
throws XSLException
- Throws:
XSLException
rawCharacters
public void rawCharacters(java.lang.String str)
throws XSLException
- Specified by:
rawCharacters
in interface Result
- Throws:
XSLException
characters
public void characters(java.lang.String str)
throws XSLException
- Specified by:
characters
in interface Result
- Throws:
XSLException
comment
public void comment(java.lang.String str)
throws XSLException
- Specified by:
comment
in interface Result
- Throws:
XSLException
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws XSLException
- Specified by:
processingInstruction
in interface Result
- Throws:
XSLException
startElement
public void startElement(Name elementType,
NamespacePrefixMap nsMap)
throws XSLException
- Specified by:
startElement
in interface Result
- Throws:
XSLException
endElement
public void endElement(Name elementType)
throws XSLException
- Specified by:
endElement
in interface Result
- Throws:
XSLException
getDocumentHandler
protected final org.xml.sax.DocumentHandler getDocumentHandler()
getLength
public int getLength()
- Specified by:
getLength
in interface org.xml.sax.AttributeList
getAttributeName
protected final Name getAttributeName(int i)
getValue
public java.lang.String getValue(int i)
- Specified by:
getValue
in interface org.xml.sax.AttributeList
getType
public java.lang.String getType(int i)
- Specified by:
getType
in interface org.xml.sax.AttributeList
getType
public java.lang.String getType(java.lang.String name)
- Specified by:
getType
in interface org.xml.sax.AttributeList
getValue
public java.lang.String getValue(java.lang.String name)
- Specified by:
getValue
in interface org.xml.sax.AttributeList
startElementContent
protected abstract void startElementContent(Name elementType,
NamespacePrefixMap nsMap)
throws XSLException
- Throws:
XSLException
endElementContent
protected abstract void endElementContent(Name elementType)
throws XSLException
- Throws:
XSLException
attribute
public void attribute(Name name,
java.lang.String value)
throws XSLException
- Specified by:
attribute
in interface Result
- Throws:
XSLException
grow
static java.lang.String[] grow(java.lang.String[] v)
grow
static Name[] grow(Name[] v)
start
public void start(OutputMethod outputMethod)
throws XSLException
- Specified by:
start
in interface Result
- Throws:
XSLException
setOutputMethod
org.xml.sax.DocumentHandler setOutputMethod(Name name,
OutputMethod method)
throws java.io.IOException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
end
public void end()
throws XSLException
- Specified by:
end
in interface Result
- Throws:
XSLException
throwXSLException
protected void throwXSLException(org.xml.sax.SAXException e)
throws XSLException
- Throws:
XSLException
resultTreeFragment
public abstract void resultTreeFragment(ResultTreeFragment frag)
throws XSLException
- Throws:
XSLException
message
public void message(Node node,
java.lang.String str)
throws XSLException
- Specified by:
message
in interface Result
- Throws:
XSLException