com.smallx.xml.xslt.xt.transform
Class CompilerImpl

java.lang.Object
  extended bycom.smallx.xml.xslt.xt.transform.CompilerImpl
All Implemented Interfaces:
LoadContext, XSLTCompiler

public class CompilerImpl
extends java.lang.Object
implements XSLTCompiler, LoadContext


Constructor Summary
CompilerImpl(Infoset infoset, DocumentLoader loader, ExtensionHandler extensionHandler)
           
 
Method Summary
 Transformation compile(Element node)
          Compiles a transformation.
 DocumentLoader getDocumentLoader()
           
 boolean getIncludeComments()
           
 boolean getIncludeProcessingInstructions()
           
 Infoset getInfoset()
          Returns the infoset associated with this compiler.
 MessageHandler getMessageHandler()
           
 boolean getStripSource(Name elementTypeName)
           
 java.util.Iterator getTargetVersions()
          Returns the target XSLT versions supported by this compiler.
 java.lang.String getVendor()
          Returns the vendor of this compiler.
 java.lang.String getVersion()
          Returns the version of this compiler.
 void setDocumentLoader(DocumentLoader docLoader)
           
 void setInfoset(DocumentLoader loader, Infoset infoset)
          Sets the document loader to be used to loader stylesheets and as a default for the resulting transformation's execution.
 void setMessageHandler(MessageHandler msgHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilerImpl

public CompilerImpl(Infoset infoset,
                    DocumentLoader loader,
                    ExtensionHandler extensionHandler)
Method Detail

getTargetVersions

public java.util.Iterator getTargetVersions()
Description copied from interface: XSLTCompiler
Returns the target XSLT versions supported by this compiler.

Specified by:
getTargetVersions in interface XSLTCompiler

getVersion

public java.lang.String getVersion()
Description copied from interface: XSLTCompiler
Returns the version of this compiler.

Specified by:
getVersion in interface XSLTCompiler

getVendor

public java.lang.String getVendor()
Description copied from interface: XSLTCompiler
Returns the vendor of this compiler.

Specified by:
getVendor in interface XSLTCompiler

setDocumentLoader

public void setDocumentLoader(DocumentLoader docLoader)
Specified by:
setDocumentLoader in interface XSLTCompiler

setMessageHandler

public void setMessageHandler(MessageHandler msgHandler)
Specified by:
setMessageHandler in interface XSLTCompiler

setInfoset

public void setInfoset(DocumentLoader loader,
                       Infoset infoset)
Description copied from interface: XSLTCompiler
Sets the document loader to be used to loader stylesheets and as a default for the resulting transformation's execution.

Specified by:
setInfoset in interface XSLTCompiler

compile

public Transformation compile(Element node)
                       throws XMLException
Description copied from interface: XSLTCompiler
Compiles a transformation.

Specified by:
compile in interface XSLTCompiler
Parameters:
node - An element the transformation.
Throws:
XMLException

getDocumentLoader

public DocumentLoader getDocumentLoader()
Specified by:
getDocumentLoader in interface XSLTCompiler

getMessageHandler

public MessageHandler getMessageHandler()
Specified by:
getMessageHandler in interface XSLTCompiler

getInfoset

public Infoset getInfoset()
Description copied from interface: XSLTCompiler
Returns the infoset associated with this compiler.

Specified by:
getInfoset in interface XSLTCompiler

getStripSource

public boolean getStripSource(Name elementTypeName)
Specified by:
getStripSource in interface LoadContext

getIncludeComments

public boolean getIncludeComments()
Specified by:
getIncludeComments in interface LoadContext

getIncludeProcessingInstructions

public boolean getIncludeProcessingInstructions()
Specified by:
getIncludeProcessingInstructions in interface LoadContext