org.apache.xalan.xsltc.trax
Class XSLTCSource

java.lang.Object
  extended by org.apache.xalan.xsltc.trax.XSLTCSource
All Implemented Interfaces:
javax.xml.transform.Source

public final class XSLTCSource
extends java.lang.Object
implements javax.xml.transform.Source


Field Summary
private  java.lang.ThreadLocal _dom
           
private  javax.xml.transform.Source _source
           
private  java.lang.String _systemId
           
 
Constructor Summary
XSLTCSource(javax.xml.transform.Source source)
          Create a new XSLTC-specific source from a JAXP Source
XSLTCSource(java.lang.String systemId)
          Create a new XSLTC-specific source from a system ID
 
Method Summary
protected  DOM getDOM(XSLTCDTMManager dtmManager, AbstractTranslet translet)
          Internal interface which returns a DOM for a given DTMManager and translet.
 java.lang.String getSystemId()
          Implements javax.xml.transform.Source.getSystemId() Get the system identifier that was set with setSystemId.
 void setSystemId(java.lang.String systemId)
          Implements javax.xml.transform.Source.setSystemId() Set the system identifier for this Source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_systemId

private java.lang.String _systemId

_source

private javax.xml.transform.Source _source

_dom

private java.lang.ThreadLocal _dom
Constructor Detail

XSLTCSource

public XSLTCSource(java.lang.String systemId)
Create a new XSLTC-specific source from a system ID


XSLTCSource

public XSLTCSource(javax.xml.transform.Source source)
Create a new XSLTC-specific source from a JAXP Source

Method Detail

setSystemId

public void setSystemId(java.lang.String systemId)
Implements javax.xml.transform.Source.setSystemId() Set the system identifier for this Source. This Source can get its input either directly from a file (in this case it will instanciate and use a JAXP parser) or it can receive it through ContentHandler/LexicalHandler interfaces.

Specified by:
setSystemId in interface javax.xml.transform.Source
Parameters:
systemId - The system Id for this Source

getSystemId

public java.lang.String getSystemId()
Implements javax.xml.transform.Source.getSystemId() Get the system identifier that was set with setSystemId.

Specified by:
getSystemId in interface javax.xml.transform.Source
Returns:
The system identifier that was set with setSystemId, or null if setSystemId was not called.

getDOM

protected DOM getDOM(XSLTCDTMManager dtmManager,
                     AbstractTranslet translet)
              throws org.xml.sax.SAXException
Internal interface which returns a DOM for a given DTMManager and translet.

Throws:
org.xml.sax.SAXException