jd.xml.xslt
Class IdentityTransformation

java.lang.Object
  extended byjd.xml.xslt.Transformation
      extended byjd.xml.xslt.IdentityTransformation

public class IdentityTransformation
extends Transformation

IdentityTransformation copies the source to the the result without modifications (except changes caused by the OutputFormat).


Constructor Summary
IdentityTransformation()
          Create a IdentityTransformation.
 
Method Summary
 void clearParameters()
          Does nothing.
 NodeNamePool getNodeNamePool()
          Return null.
 OutputFormat getOutputFormat()
          Return the OutputFormat.
 void setEntityResolver(EntityResolver entityResolver)
          Set a EntityResolver.
 void setMessageListener(MessageListener messageListener)
          Set a MessageListener.
 boolean setParameter(String name, Object value)
          Does nothing.
 void setSecurityManager(XsltSecurityManager securityManager)
          Set the SecurityManager.
 void setTrace(boolean trace)
          Do nothing.
 void setUriResolver(UriResolver uriResolver)
          Set a UriResolver.
 void setValidate(boolean validate)
          Set if xml documents should be validated.
 void setVerboseLog(VerboseLog log)
          Set the verbose log.
 void setWarningLevel(int warningLevel)
          Do nothing.
 void transform(XmlSource source, XsltResult result, int repeat)
          Transform the source to the result.
 
Methods inherited from class jd.xml.xslt.Transformation
setVerbose, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityTransformation

public IdentityTransformation()
                       throws SAXException
Create a IdentityTransformation.

Method Detail

transform

public void transform(XmlSource source,
                      XsltResult result,
                      int repeat)
               throws IOException,
                      SAXException,
                      XsltException
Transform the source to the result.

Specified by:
transform in class Transformation
Parameters:
source - the transformation source
result - the transformation result
repeat - repeat the transformation n times. A repeat value greater 1 is used for timing purpose and may not be supported by the transformation
Throws:
IOException - if an I/O error occurrs
SAXException - if the source document cannot be parsed
XsltException - if a transformation error occurrs

setWarningLevel

public void setWarningLevel(int warningLevel)
Do nothing.

Specified by:
setWarningLevel in class Transformation

setValidate

public void setValidate(boolean validate)
Set if xml documents should be validated.

Specified by:
setValidate in class Transformation

setTrace

public void setTrace(boolean trace)
Do nothing.

Specified by:
setTrace in class Transformation

setParameter

public boolean setParameter(String name,
                            Object value)
Does nothing.

Specified by:
setParameter in class Transformation
Parameters:
name - the parameter name
value - the parameter value
Returns:
return if the parameter was defined in the stylesheet

clearParameters

public void clearParameters()
Does nothing.

Specified by:
clearParameters in class Transformation

setUriResolver

public void setUriResolver(UriResolver uriResolver)
Set a UriResolver.

Specified by:
setUriResolver in class Transformation

setMessageListener

public void setMessageListener(MessageListener messageListener)
Set a MessageListener.

Specified by:
setMessageListener in class Transformation

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)
Set a EntityResolver.

Specified by:
setEntityResolver in class Transformation

getOutputFormat

public OutputFormat getOutputFormat()
Return the OutputFormat.

Specified by:
getOutputFormat in class Transformation

setSecurityManager

public void setSecurityManager(XsltSecurityManager securityManager)
Set the SecurityManager.

Specified by:
setSecurityManager in class Transformation

getNodeNamePool

public NodeNamePool getNodeNamePool()
Return null.

Specified by:
getNodeNamePool in class Transformation

setVerboseLog

public void setVerboseLog(VerboseLog log)
Set the verbose log.

Specified by:
setVerboseLog in class Transformation