|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jclark.xsl.sax.ResultBase
public abstract class ResultBase
abstract base class represents the results of executing a stylesheet Action -- constructs result components. events are fired to the Result, which in turn fires events to a SAX (1) DocumentHandler
Field Summary | |
---|---|
(package private) org.xml.sax.ErrorHandler |
errorHandler
|
(package private) OutputMethodHandler |
outputMethodHandler
|
Constructor Summary | |
---|---|
ResultBase(org.xml.sax.DocumentHandler documentHandler,
org.xml.sax.ErrorHandler errorHandler)
Construct with a DocummentHandler already determined |
|
ResultBase(OutputMethodHandler outputMethodHandler,
org.xml.sax.ErrorHandler errorHandler)
Construct with an outputMethodHandler from which we'll obtain the appropriate DocumentHandler |
Method Summary | |
---|---|
void |
attribute(Name name,
java.lang.String value)
construct an Attribute with the given name ... |
void |
characters(java.lang.String str)
construct some characters in the result |
void |
comment(java.lang.String str)
construct a comment in our result |
void |
end()
flush any pending construction work, nothing else will be built |
void |
endElement(Name elementType)
Finish constructing an Element |
protected abstract void |
endElementContent(Name elementType)
|
void |
flush()
call this when we're sure we're not getting any more attribute node constructing actions |
protected Name |
getAttributeName(int i)
|
protected org.xml.sax.DocumentHandler |
getDocumentHandler()
|
int |
getLength()
|
java.lang.String |
getType(int i)
|
java.lang.String |
getType(java.lang.String name)
|
java.lang.String |
getValue(int i)
|
java.lang.String |
getValue(java.lang.String name)
|
(package private) static Name[] |
grow(Name[] v)
|
(package private) static java.lang.String[] |
grow(java.lang.String[] v)
|
void |
message(Node node,
java.lang.String str)
Support the xsl:message element. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
construct a processingInstruction in the result |
void |
rawCharacters(java.lang.String str)
rawCharacters are distinct from plain 'ol characters in that we don't try to do any escaping |
abstract void |
resultTreeFragment(ResultTreeFragment frag)
|
(package private) org.xml.sax.DocumentHandler |
setOutputMethod(Name name,
OutputMethod method)
get the appropriate DocumentHandler from the outputMethodHandler (we've already obtained for our destiantion) for the named output method |
void |
start(OutputMethod outputMethod)
initialize, (and possibly construct) the DocumentHandler |
void |
startElement(Name elementType,
NamespacePrefixMap nsMap)
start construction an Element |
protected abstract void |
startElementContent(Name elementType,
NamespacePrefixMap nsMap)
we're finished with adding attributes? |
protected void |
throwXSLException(org.xml.sax.SAXException e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jclark.xsl.tr.Result |
---|
createResult |
Methods inherited from interface org.xml.sax.AttributeList |
---|
getName |
Field Detail |
---|
org.xml.sax.ErrorHandler errorHandler
OutputMethodHandler outputMethodHandler
Constructor Detail |
---|
ResultBase(OutputMethodHandler outputMethodHandler, org.xml.sax.ErrorHandler errorHandler)
ResultBase(org.xml.sax.DocumentHandler documentHandler, org.xml.sax.ErrorHandler errorHandler)
Method Detail |
---|
public void flush() throws XSLException
XSLException
public void rawCharacters(java.lang.String str) throws XSLException
rawCharacters
in interface Result
XSLException
public void characters(java.lang.String str) throws XSLException
characters
in interface Result
XSLException
public void comment(java.lang.String str) throws XSLException
comment
in interface Result
XSLException
public void processingInstruction(java.lang.String target, java.lang.String data) throws XSLException
processingInstruction
in interface Result
XSLException
public void startElement(Name elementType, NamespacePrefixMap nsMap) throws XSLException
startElement
in interface Result
XSLException
public void endElement(Name elementType) throws XSLException
Result
endElement
in interface Result
XSLException
protected final org.xml.sax.DocumentHandler getDocumentHandler()
public int getLength()
getLength
in interface org.xml.sax.AttributeList
protected final Name getAttributeName(int i)
public java.lang.String getValue(int i)
getValue
in interface org.xml.sax.AttributeList
public java.lang.String getType(int i)
getType
in interface org.xml.sax.AttributeList
public java.lang.String getType(java.lang.String name)
getType
in interface org.xml.sax.AttributeList
public java.lang.String getValue(java.lang.String name)
getValue
in interface org.xml.sax.AttributeList
protected abstract void startElementContent(Name elementType, NamespacePrefixMap nsMap) throws XSLException
XSLException
protected abstract void endElementContent(Name elementType) throws XSLException
XSLException
public void attribute(Name name, java.lang.String value) throws XSLException
attribute
in interface Result
XSLException
static java.lang.String[] grow(java.lang.String[] v)
static Name[] grow(Name[] v)
public void start(OutputMethod outputMethod) throws XSLException
start
in interface Result
outputMethod
- whatever the stylesheeet has told us
about how it wants the trasnformed results output
XSLException
org.xml.sax.DocumentHandler setOutputMethod(Name name, OutputMethod method) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void end() throws XSLException
end
in interface Result
XSLException
protected void throwXSLException(org.xml.sax.SAXException e) throws XSLException
XSLException
public abstract void resultTreeFragment(ResultTreeFragment frag) throws XSLException
XSLException
public void message(Node node, java.lang.String str) throws XSLException
Result
xsl:message
element.
message
in interface Result
node
- The source context node under consideration
when the message action is performed. May be used for
locator information
XSLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |