|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jclark.xsl.sax.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
| Method Summary | |
void |
attribute(Name name,
java.lang.String value)
construct an Attribute with the given name ... if we're not at an appropriate point, eg, we've already started putting text into an element, do nothing |
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)
|
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)
|
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 |
| Method Detail |
public void flush()
throws XSLException
XSLException
public void rawCharacters(java.lang.String str)
throws XSLException
rawCharacters in interface ResultXSLException
public void characters(java.lang.String str)
throws XSLException
characters in interface ResultXSLException
public void comment(java.lang.String str)
throws XSLException
comment in interface ResultXSLException
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws XSLException
processingInstruction in interface ResultXSLException
public void startElement(Name elementType,
NamespacePrefixMap nsMap)
throws XSLException
startElement in interface ResultXSLException
public void endElement(Name elementType)
throws XSLException
Result
endElement in interface ResultXSLExceptionprotected final org.xml.sax.DocumentHandler getDocumentHandler()
public int getLength()
getLength in interface org.xml.sax.AttributeListprotected final Name getAttributeName(int i)
public java.lang.String getValue(int i)
getValue in interface org.xml.sax.AttributeListpublic java.lang.String getType(int i)
getType in interface org.xml.sax.AttributeListpublic java.lang.String getType(java.lang.String name)
getType in interface org.xml.sax.AttributeListpublic 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 ResultXSLException
public void start(OutputMethod outputMethod)
throws XSLException
start in interface ResultoutputMethod - whatever the stylesheeet has told us
about how it wants the trasnformed results output
XSLException
public void end()
throws XSLException
end in interface ResultXSLException
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
Resultxsl:message element.
message in interface Resultnode - 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 | |||||||||