|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.Transformation
jd.xml.xslt.TransformationChain
A TransformationChain is a list of Transformations which are executed one after another. The output from a transformation is taken as input for the next chain.
TransformationChain can be called from the commandline.
Constructor Summary | |
TransformationChain()
|
Method Summary | |
void |
addTransformation(Transformation transformation)
Add a transformation to the chain. |
void |
clearParameters()
Clear the value of a all top-level parameters. |
NodeNamePool |
getNodeNamePool()
Return the NodeNamePool of the first transformation in this chain. |
OutputFormat |
getOutputFormat()
Return the OutputFormat. |
Transformation |
getTransformation(int i)
Return a transformation. |
static void |
main(String[] args)
Deprecated. |
void |
setEntityResolver(EntityResolver entityResolver)
Set an EntityResolver. |
void |
setMessageListener(MessageListener messageListener)
Set a MessageListener. |
boolean |
setParameter(String name,
Object value)
Set the value of a top-level parameter. |
void |
setSecurityManager(XsltSecurityManager securityManager)
Set the SecurityManager. |
void |
setTrace(boolean trace)
Set if transformations should be traced. |
void |
setUriResolver(UriResolver uriResolver)
Set an UriResolver. |
void |
setValidate(boolean validate)
Set if xml documents should be validated. |
void |
setVerboseLog(VerboseLog log)
Set the verbose log. |
void |
setWarningLevel(int warningLevel)
Set the warning level. |
int |
size()
Return the number of transformations. |
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 |
public TransformationChain()
Method Detail |
public void addTransformation(Transformation transformation)
public void transform(XmlSource source, XsltResult result, int repeat) throws IOException, SAXException
transform
in class Transformation
source
- the transformation sourceresult
- the transformation resultrepeat
- repeat the transformation n times. A repeat value greater
1 is used for timing purpose and may not be supported
by the transformation
IOException
- if an I/O error occurrs
SAXException
- if the source document cannot be parsed
XsltException
- if a transformation error occurrspublic boolean setParameter(String name, Object value)
setParameter
in class Transformation
name
- the parameter namevalue
- the parameter value
public void clearParameters()
clearParameters
in class Transformation
public void setWarningLevel(int warningLevel)
setWarningLevel
in class Transformation
public void setValidate(boolean validate)
setValidate
in class Transformation
public void setTrace(boolean trace)
setTrace
in class Transformation
public void setUriResolver(UriResolver uriResolver)
setUriResolver
in class Transformation
public void setMessageListener(MessageListener messageListener)
setMessageListener
in class Transformation
public void setEntityResolver(EntityResolver entityResolver)
setEntityResolver
in class Transformation
public OutputFormat getOutputFormat()
getOutputFormat
in class Transformation
public void setSecurityManager(XsltSecurityManager securityManager)
setSecurityManager
in class Transformation
public NodeNamePool getNodeNamePool()
getNodeNamePool
in class Transformation
public void setVerboseLog(VerboseLog log)
setVerboseLog
in class Transformation
public int size()
public Transformation getTransformation(int i)
public static void main(String[] args) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |