abstract base class represents the results of executing a stylesheet Action --
constructs result components.
events are fired to the Result, which may, in turn, fire
events to a SAX ContHandler
attribute
public void attribute(Name name,
String value)
throws XSLException
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
- attribute in interface Result
end
public void end()
throws XSLException
flush any pending construction work, nothing else will be built
- end in interface Result
endElementContent
protected abstract void endElementContent(Name elementType)
throws XSLException
Notify the Element is ending
flush
public void flush()
throws XSLException
call this when we're sure we're not getting any more
attribute node constructing actions
getAttributeName
protected final Name getAttributeName(int index)
- the name of the i'th Attribute
getContentHandler
protected final ContentHandler getContentHandler()
getIndex
public int getIndex(String qName)
getIndex
public int getIndex(String namespaceURI,
String localName)
Attributes implementation: get the index of the Attribute
with the given Name components, or null if
it does not exist
getLength
public int getLength()
- the number of attribute nodes we have at this moment
getLocalName
public String getLocalName(int index)
Attributes implementation: get the Attribute's local name
getQName
public String getQName(int index)
getType
public String getType(String qName)
- the type of the named Attribute (always "CDATA")
getType
public String getType(String namespaceURI,
String localName)
- the type of the named Attribute (always "CDATA")
getType
public String getType(int index)
- the type of the i'th Attribute (always "CDATA")
getURI
public String getURI(int index)
Attributes implementation: get the namespace for the
i'th Attribute's name
getValue
public String getValue(String qName)
Attributes implementation: get the value of the named
Attribute
getValue
public String getValue(String namespaceURI,
String localName)
Attributes implementation: get the value of the Attribute
with the given name in the given namespace
the String value of the Attribute, or null
if
it does not exist
getValue
public String getValue(int index)
Attributes implementation: get the value of the i'th Attribute
grow
(package private) static String[] grow(String[] v)
grow
(package private) static Name[] grow(Name[] v)
rawCharacters
public void rawCharacters(String str)
throws XSLException
rawCharacters are distinct from plain 'ol characters
in that we don't try to do any escaping
- rawCharacters in interface Result
resultTreeFragment
public abstract void resultTreeFragment(ResultTreeFragment frag)
throws XSLException
Copy a Result Tree Fragment to the Destination via the Handler
setOutputMethod
(package private) ContentHandler setOutputMethod(Name name,
OutputMethod method)
throws IOException,
SAXException
get the appropriate ContentHandler from the
outputMethodHandler (we've already obtained for our destination)
for the named output method
start
public void start(OutputMethod outputMethod)
throws XSLException
initialize, (and possibly construct) the ContentHandler
called by the transformation engine
- start in interface Result
outputMethod
- the xsl:output parameters gleaned
from the stylesheet
startElementContent
protected abstract void startElementContent(Name elementType,
NamespacePrefixMap nsMap)
throws XSLException
notify that we're finished with adding attributes
throwXSLException
protected void throwXSLException(SAXException e)
throws XSLException