net.protempore.utils.xml
Class SimpleXmlTransformer

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

public final class SimpleXmlTransformer
extends java.lang.Object
implements XmlTransformer


Constructor Summary
SimpleXmlTransformer()
          Create a new transformer that performs the identity transform.
SimpleXmlTransformer(XmlSourceCreator sourceCreator)
          Create a new transformer that performs a transformation using the XML document that is returned by sourceCreator.createSource, which is called once per transform.
 
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

SimpleXmlTransformer

public SimpleXmlTransformer()
Create a new transformer that performs the identity transform.


SimpleXmlTransformer

public SimpleXmlTransformer(XmlSourceCreator sourceCreator)
Create a new transformer that performs a transformation using the XML document that is returned by sourceCreator.createSource, which is called once per transform.

Parameters:
sourceCreator - A non-null source creator.
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.