corpus-services  1.0
de.uni_hamburg.corpora.utilities.XSLTransformer Class Reference
+ Collaboration diagram for de.uni_hamburg.corpora.utilities.XSLTransformer:

Public Member Functions

 XSLTransformer () throws TransformerConfigurationException
 
 XSLTransformer (String impl) throws TransformerConfigurationException
 
String transform (String xml, String xsl) throws TransformerException
 
String transform (StreamSource xmlSource, StreamSource xslSource) throws TransformerException
 
String transform (StreamSource xmlSource) throws TransformerException
 
String transform (String xml) throws TransformerException
 
void setParameter (String parameterName, Object parameterValue)
 
void setParameters (Map< String, Object > params)
 
Object getParameter (String parameterName)
 
Map getParameters ()
 
void setOutputProperty (String propertyName, String propertyValue)
 
void setOutputProperties (Map< String, String > outputProps)
 
Object getOutputProperty (String propertyName)
 
Map getOutputProperties ()
 
void setTransformerFactoryImpl (String impl)
 
String getTransformerFactoryImpl ()
 

Detailed Description

Author
Daniel Jettka

Class for performing XSLT transformation with net.sf.saxon.TransformerFactoryImpl or other custom implementation.

Definition at line 28 of file XSLTransformer.java.

Constructor & Destructor Documentation

de.uni_hamburg.corpora.utilities.XSLTransformer.XSLTransformer ( ) throws TransformerConfigurationException

Class constructor.

Definition at line 39 of file XSLTransformer.java.

de.uni_hamburg.corpora.utilities.XSLTransformer.XSLTransformer ( String  impl) throws TransformerConfigurationException

Class constructor specifying the TransformerFactoryImpl used for XSLT transformation.

Definition at line 47 of file XSLTransformer.java.

Member Function Documentation

Map de.uni_hamburg.corpora.utilities.XSLTransformer.getOutputProperties ( )

Get all properties as Map object that were set for the XSLT transformation.

Parameters

Definition at line 228 of file XSLTransformer.java.

Object de.uni_hamburg.corpora.utilities.XSLTransformer.getOutputProperty ( String  propertyName)

Get a single property that was set for the XSLT transformation.

Parameters
propertyNameName of the property that shall be returned
Returns
Value of the supplied property

Definition at line 217 of file XSLTransformer.java.

Object de.uni_hamburg.corpora.utilities.XSLTransformer.getParameter ( String  parameterName)

Get a single parameter that was set for the XSLT transformation.

Parameters
parameterNameName of the parameter that shall be returned
Returns
Value of the supplied parameter

Definition at line 175 of file XSLTransformer.java.

Map de.uni_hamburg.corpora.utilities.XSLTransformer.getParameters ( )

Get all parameters as Map object that were set for the XSLT transformation.

Parameters

Definition at line 186 of file XSLTransformer.java.

String de.uni_hamburg.corpora.utilities.XSLTransformer.getTransformerFactoryImpl ( )

Get TransformerFactoryImpl (represented as class name in String) for the XSLT transformation.

Parameters

Definition at line 251 of file XSLTransformer.java.

void de.uni_hamburg.corpora.utilities.XSLTransformer.setOutputProperties ( Map< String, String >  outputProps)

Set a bunch of properties for the XSLT transformation.

Parameters
outputPropsMap object representing property names and values
Returns

Definition at line 207 of file XSLTransformer.java.

void de.uni_hamburg.corpora.utilities.XSLTransformer.setOutputProperty ( String  propertyName,
String  propertyValue 
)

Set a single property for the XSLT transformation.

Parameters
propertyNameName of the output property
propertyValueValue of the output property
Returns

Definition at line 197 of file XSLTransformer.java.

void de.uni_hamburg.corpora.utilities.XSLTransformer.setParameter ( String  parameterName,
Object  parameterValue 
)

Set a single parameter for the XSLT transformation.

Parameters
parameterNameName of the parameter
parameterValueValue of the parameter
Returns

Definition at line 155 of file XSLTransformer.java.

void de.uni_hamburg.corpora.utilities.XSLTransformer.setParameters ( Map< String, Object >  params)

Set a bunch of parameters for the XSLT transformation.

Parameters
paramsMap object representing parameter names and values
Returns

Definition at line 165 of file XSLTransformer.java.

void de.uni_hamburg.corpora.utilities.XSLTransformer.setTransformerFactoryImpl ( String  impl)

Set TransformerFactoryImpl (represented as class name in String) for the XSLT transformation.

Parameters
implTransformerFactoryImpl represented as class name in String
Returns

Definition at line 239 of file XSLTransformer.java.

String de.uni_hamburg.corpora.utilities.XSLTransformer.transform ( String  xml,
String  xsl 
) throws TransformerException

Returns a String object that represents the result of an XSLT transformation.

Parameters
xmlXML as String object that is used as the basis for the XSLT transformation
xslXSLT stylesheet as String object
Returns
the result of the XSLT transformation as String object

Definition at line 61 of file XSLTransformer.java.

String de.uni_hamburg.corpora.utilities.XSLTransformer.transform ( StreamSource  xmlSource,
StreamSource  xslSource 
) throws TransformerException

Returns a String object that represents the result of an XSLT transformation.

Parameters
xmlXML as StreamSource object that is used as the basis for the XSLT transformation
xslXSLT stylesheet as StreamSource object
Returns
the result of the XSLT transformation as String object

Definition at line 76 of file XSLTransformer.java.

String de.uni_hamburg.corpora.utilities.XSLTransformer.transform ( StreamSource  xmlSource) throws TransformerException

Returns a String object that represents the result of an XSLT transformation.

Parameters
xmlSourceXML as StreamSource object that is used as the basis for the XSLT transformation
Returns
the result of the XSLT transformation as String object

Definition at line 129 of file XSLTransformer.java.

String de.uni_hamburg.corpora.utilities.XSLTransformer.transform ( String  xml) throws TransformerException

Returns a String object that represents the result of an XSLT transformation.

Parameters
xmlXML as String object that is used as the basis for the XSLT transformation
Returns
the result of the XSLT transformation as String object

Definition at line 142 of file XSLTransformer.java.


The documentation for this class was generated from the following file: