com.jclark.xsl.sax2
Class MultiNamespaceResult

java.lang.Object
  extended by com.jclark.xsl.sax2.ResultBase
      extended by com.jclark.xsl.sax2.MultiNamespaceResult
All Implemented Interfaces:
Result, org.xml.sax.Attributes

public class MultiNamespaceResult
extends ResultBase


Field Summary
 
Fields inherited from class com.jclark.xsl.sax2.ResultBase
_errorHandler, _outputMethodHandler
 
Constructor Summary
MultiNamespaceResult(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ErrorHandler errorHandler)
           
MultiNamespaceResult(OutputMethodHandler outputMethodHandler, org.xml.sax.ErrorHandler errorHandler)
           
 
Method Summary
 Result createResult(java.lang.String uri)
          Create a Result that can write to the given uri.
protected  void endElementContent(Name elementType)
          Notify the Element is ending
 int getLength()
           
 java.lang.String getLocalName(int i)
          Attributes implementation: get the Attribute's local name
 java.lang.String getQName(int i)
           
 java.lang.String getType(int i)
           
 java.lang.String getURI(int i)
          Attributes implementation: get the namespace for the i'th Attribute's name
 java.lang.String getValue(int i)
          Attributes implementation: get the value of the i'th Attribute
 void resultTreeFragment(ResultTreeFragment frag)
          Copy a Result Tree Fragment to the Destination via the Handler
protected  void startElementContent(Name elementType, NamespacePrefixMap map)
          notify that we're finished with adding attributes
 
Methods inherited from class com.jclark.xsl.sax2.ResultBase
attribute, characters, comment, end, endElement, flush, getAttributeName, getContentHandler, getIndex, getIndex, getType, getType, getValue, getValue, grow, grow, message, processingInstruction, rawCharacters, setOutputMethod, start, startElement, throwXSLException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiNamespaceResult

public MultiNamespaceResult(OutputMethodHandler outputMethodHandler,
                            org.xml.sax.ErrorHandler errorHandler)

MultiNamespaceResult

public MultiNamespaceResult(org.xml.sax.ContentHandler contentHandler,
                            org.xml.sax.ErrorHandler errorHandler)
Method Detail

createResult

public Result createResult(java.lang.String uri)
                    throws XSLException
Create a Result that can write to the given uri. Used to implement the "document" extension element, we can only do this if we already have an OutputMethodHandler instead of a ContentHandler for the transform results

Throws:
XSLException

startElementContent

protected void startElementContent(Name elementType,
                                   NamespacePrefixMap map)
                            throws XSLException
Description copied from class: ResultBase
notify that we're finished with adding attributes

Specified by:
startElementContent in class ResultBase
Throws:
XSLException

endElementContent

protected void endElementContent(Name elementType)
                          throws XSLException
Description copied from class: ResultBase
Notify the Element is ending

Specified by:
endElementContent in class ResultBase
Throws:
XSLException

getURI

public java.lang.String getURI(int i)
Description copied from class: ResultBase
Attributes implementation: get the namespace for the i'th Attribute's name

Specified by:
getURI in interface org.xml.sax.Attributes
Overrides:
getURI in class ResultBase

getLocalName

public java.lang.String getLocalName(int i)
Description copied from class: ResultBase
Attributes implementation: get the Attribute's local name

Specified by:
getLocalName in interface org.xml.sax.Attributes
Overrides:
getLocalName in class ResultBase

getQName

public java.lang.String getQName(int i)
Specified by:
getQName in interface org.xml.sax.Attributes
Overrides:
getQName in class ResultBase

getType

public java.lang.String getType(int i)
Specified by:
getType in interface org.xml.sax.Attributes
Overrides:
getType in class ResultBase
Returns:
the type of the i'th Attribute (always "CDATA")

getValue

public java.lang.String getValue(int i)
Description copied from class: ResultBase
Attributes implementation: get the value of the i'th Attribute

Specified by:
getValue in interface org.xml.sax.Attributes
Overrides:
getValue in class ResultBase

getLength

public int getLength()
Specified by:
getLength in interface org.xml.sax.Attributes
Overrides:
getLength in class ResultBase
Returns:
the number of attribute nodes we have at this moment

resultTreeFragment

public void resultTreeFragment(ResultTreeFragment frag)
                        throws XSLException
Description copied from class: ResultBase
Copy a Result Tree Fragment to the Destination via the Handler

Specified by:
resultTreeFragment in class ResultBase
Throws:
XSLException