com.jclark.xsl.tr
Class StringResult

java.lang.Object
  extended by com.jclark.xsl.tr.StringResult
All Implemented Interfaces:
Result

 class StringResult
extends java.lang.Object
implements Result


Constructor Summary
StringResult()
           
StringResult(Result result)
           
 
Method Summary
 void attribute(Name name, java.lang.String value)
          Construct an Attribute ...
 void characters(java.lang.String str)
          build a TEXT node
(package private)  void clear()
           
 void comment(java.lang.String str)
          Construct a comment
 Result createResult(java.lang.String uri)
          Create a new Result object for serializing to the destination uri.
 void end()
          Finish constructing stuff.
 void endElement(Name elementType)
          Finish constructing an Element
 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 Processing Instruction
 void rawCharacters(java.lang.String str)
          Some (possibly) non XML characters
 void start(OutputMethod om)
          Prepare to start constructing stuff.
 void startElement(Name elementType, NamespacePrefixMap nsMap)
          Start constructing an Element (NB) The nsMap must declare the prefix on elementType correctly.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringResult

StringResult()

StringResult

StringResult(Result result)
Method Detail

clear

void clear()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

characters

public void characters(java.lang.String str)
                throws XSLException
Description copied from interface: Result
build a TEXT node

Specified by:
characters in interface Result
Throws:
XSLException

rawCharacters

public void rawCharacters(java.lang.String str)
                   throws XSLException
Description copied from interface: Result
Some (possibly) non XML characters

Specified by:
rawCharacters in interface Result
Throws:
XSLException

comment

public void comment(java.lang.String str)
Description copied from interface: Result
Construct a comment

Specified by:
comment in interface Result

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
Description copied from interface: Result
Construct a Processing Instruction

Specified by:
processingInstruction in interface Result

attribute

public void attribute(Name name,
                      java.lang.String value)
Description copied from interface: Result
Construct an Attribute ... Unlike SAX, we don't have the luxury of having all the Attributes present when the Element is started. Some may be constructed later as a consequence of an xsl:attribute for example.

Specified by:
attribute in interface Result

startElement

public void startElement(Name elementType,
                         NamespacePrefixMap nsMap)
Description copied from interface: Result
Start constructing an Element (NB) The nsMap must declare the prefix on elementType correctly.

Specified by:
startElement in interface Result

endElement

public void endElement(Name elementType)
Description copied from interface: Result
Finish constructing an Element

Specified by:
endElement in interface Result

start

public void start(OutputMethod om)
Description copied from interface: Result
Prepare to start constructing stuff. ... take care of any initialization tasks.

Specified by:
start in interface Result
Parameters:
om - whatever the stylesheeet has told us about how it wants the trasnformed results output

end

public void end()
Description copied from interface: Result
Finish constructing stuff.

Specified by:
end in interface Result

createResult

public Result createResult(java.lang.String uri)
Description copied from interface: Result
Create a new Result object for serializing to the destination uri. Provides support for the "xt:document" extension element

Specified by:
createResult in interface Result

message

public void message(Node node,
                    java.lang.String str)
             throws XSLException
Description copied from interface: Result
Support the xsl:message element.

Specified by:
message in interface Result
Parameters:
node - The source context node under consideration when the message action is performed. May be used for locator information
Throws:
XSLException