com.jclark.xsl.sax
public abstract class ResultBase extends Object implements Result, AttributeList
| Field Summary | |
|---|---|
| ErrorHandler | errorHandler |
| OutputMethodHandler | outputMethodHandler |
| Constructor Summary | |
|---|---|
| ResultBase(OutputMethodHandler outputMethodHandler, ErrorHandler errorHandler)
Construct with an outputMethodHandler from which we'll
obtain the appropriate DocumentHandler | |
| ResultBase(DocumentHandler documentHandler, ErrorHandler errorHandler)
Construct with a DocummentHandler already determined | |
| Method Summary | |
|---|---|
| void | attribute(Name name, 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(String str)
construct some characters in the result |
| void | comment(String str)
construct a comment in our result |
| void | end()
flush any pending construction work, nothing else will be built |
| void | endElement(Name elementType) |
| 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 DocumentHandler | getDocumentHandler() |
| int | getLength() |
| String | getType(int i) |
| String | getType(String name) |
| String | getValue(int i) |
| String | getValue(String name) |
| static String[] | grow(String[] v) |
| static Name[] | grow(Name[] v) |
| void | message(Node node, String str) |
| void | processingInstruction(String target, String data)
construct a processingInstruction in the result |
| void | rawCharacters(String str)
rawCharacters are distinct from plain 'ol characters
in that we don't try to do any escaping |
| abstract void | resultTreeFragment(ResultTreeFragment frag) |
| 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(SAXException e) |
Returns: the name of the i'th Attribute
Returns: the number of attribute nodes we have at this moment
Returns: the type of the i'th Attribute (always "CDATA")
Returns: the type of the named Attribute (always "CDATA")
Returns: the value of the i'th Attribute
Returns: the value of the named Attribute (always "CDATA") .. not sure how these names work with namespaces returns null if the named Attribute is not found