com.jclark.xsl.sax
Class ResultBase
java.lang.Object
|
+--com.jclark.xsl.sax.ResultBase
- All Implemented Interfaces:
- org.xml.sax.AttributeList, Result
- Direct Known Subclasses:
- MultiNamespaceResult
- public abstract class ResultBase
- extends java.lang.Object
- implements Result, org.xml.sax.AttributeList
Constructor Summary |
(package private) |
ResultBase(org.xml.sax.DocumentHandler documentHandler,
org.xml.sax.ErrorHandler errorHandler)
|
(package private) |
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
XSLException
rawCharacters
public void rawCharacters(java.lang.String str)
throws XSLException
- Specified by:
rawCharacters
in interface Result
XSLException
characters
public void characters(java.lang.String str)
throws XSLException
- Specified by:
characters
in interface Result
XSLException
comment
public void comment(java.lang.String str)
throws XSLException
- Specified by:
comment
in interface Result
XSLException
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws XSLException
- Specified by:
processingInstruction
in interface Result
XSLException
startElement
public void startElement(Name elementType,
NamespacePrefixMap nsMap)
throws XSLException
- Specified by:
startElement
in interface Result
XSLException
endElement
public void endElement(Name elementType)
throws XSLException
- Specified by:
endElement
in interface Result
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
XSLException
endElementContent
protected abstract void endElementContent(Name elementType)
throws XSLException
XSLException
attribute
public void attribute(Name name,
java.lang.String value)
throws XSLException
- Specified by:
attribute
in interface Result
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
XSLException
setOutputMethod
org.xml.sax.DocumentHandler setOutputMethod(Name name,
OutputMethod method)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
end
public void end()
throws XSLException
- Specified by:
end
in interface Result
XSLException
throwXSLException
protected void throwXSLException(org.xml.sax.SAXException e)
throws XSLException
XSLException
resultTreeFragment
public abstract void resultTreeFragment(ResultTreeFragment frag)
throws XSLException
XSLException
message
public void message(Node node,
java.lang.String str)
throws XSLException
- Specified by:
message
in interface Result
XSLException