org.andromda.core.transformation
Class XslTransformer

java.lang.Object
  extended by org.andromda.core.transformation.XslTransformer
All Implemented Interfaces:
Transformer

public class XslTransformer
extends Object
implements Transformer

An implementation of Transformer that provides XSLT transformations. The transform(String, Transformation[]) operation will apply the given XSLT files to the model in the order which they are found.

Author:
Chad Brandon

Nested Class Summary
(package private) static class XslTransformer.TransformerURIResolver
          Provides the URI resolving capabilities for the XslTransformer
 
Constructor Summary
XslTransformer()
           
 
Method Summary
 InputStream transform(String modelUri, Transformation[] xsltTransformations)
          Applies the given XSLT files to the model in the order in which they are found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XslTransformer

public XslTransformer()
Method Detail

transform

public InputStream transform(String modelUri,
                             Transformation[] xsltTransformations)
Applies the given XSLT files to the model in the order in which they are found.

Specified by:
transform in interface Transformer
Parameters:
modelUri - the URI to the model be transform.
xsltTransformations - the files to perform the transformation, in the order they should be applied.
Returns:
the transformed result as an input stream.
See Also:
Transformer.transform(String, org.andromda.core.configuration.Transformation[])


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.