net.protempore.utils.xml
Class ChainedXsltTransformer

java.lang.Object
  extended by net.protempore.utils.xml.ChainedXsltTransformer
All Implemented Interfaces:
XmlTransformer

public class ChainedXsltTransformer
extends java.lang.Object
implements XmlTransformer

Perform a chain of XSL transformations, where the output of the first is the input to the second, and the output of the second is the input to the third, and so forth.


Constructor Summary
ChainedXsltTransformer(XmlSourceCreator... xmlSourceCreators)
          Create a new transformer.
 
Method Summary
 void transform(javax.xml.transform.Source input, javax.xml.transform.Result output)
          Perform the transformation using the given non-null input source and the given non-null result.
 void transform(javax.xml.transform.Source input, javax.xml.transform.Result output, java.util.Map<java.lang.String,java.lang.Object> parameters)
          Perform the transformation using the given non-null input source, non-null result, and using all the key-value parameter pairs in the parameters map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedXsltTransformer

public ChainedXsltTransformer(XmlSourceCreator... xmlSourceCreators)
Create a new transformer.

Parameters:
xmlSourceCreators - The source creators for each of the transforms.
Method Detail

transform

public void transform(javax.xml.transform.Source input,
                      javax.xml.transform.Result output)
Description copied from interface: XmlTransformer
Perform the transformation using the given non-null input source and the given non-null result.

Specified by:
transform in interface XmlTransformer
Parameters:
input - Non-null input.
output - Non-null output of transformation.

transform

public void transform(javax.xml.transform.Source input,
                      javax.xml.transform.Result output,
                      java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface: XmlTransformer
Perform the transformation using the given non-null input source, non-null result, and using all the key-value parameter pairs in the parameters map.

Specified by:
transform in interface XmlTransformer
Parameters:
input - Non-null input.
output - Non-null output of transformation.
parameters - A map from parameter name to parameter value.