Package org.eclipse.wst.xsl.invoker.config


org.eclipse.wst.xsl.invoker.config
Class PipelineDefinition



public class PipelineDefinition
extends java.lang.Object
The definition of the transformation pipeline.

This class is loaded on both the Eclipse classpath and the transformation process's classpath. The whole definition is serialized to an XML document by the Eclipse launcher, and is then read by the transformation process when launched.


Constructor Summary

PipelineDefinition()
PipelineDefinition(java.io.File launchFile)
PipelineDefinition(org.w3c.dom.Document doc)

Method Summary

public voidaddFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)
     Add a feature to this configuration
public voidaddTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)
     Add a transform definition to this.
public voidconfigure(org.eclipse.wst.xsl.invoker.IProcessorInvoker invoker)
     Configure the invoker from this.
public java.util.SetgetFeatures()
     Get the set of features defined.
public java.util.ListgetTransformDefs()
     Get the list of TransformDefinition's.
public voidremoveFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)
     Remove a feature from the set of features
public voidremoveTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)
     Remove a transform definition from this.
public voidsetUseEmbedded(boolean embedded)
     Set whether to use an XSL declaration embedded in the XML file
public org.w3c.dom.DocumenttoXML()
     Serialize this to a DOM Document.
public booleanuseEmbedded()
     Get whether to use an XSL declaration embedded in the XML file

Constructor Detail

PipelineDefinition

public PipelineDefinition()

Create a new empty instance of this.


PipelineDefinition

public PipelineDefinition(java.io.File launchFile)

Create a new instance of this by reading the specified XML file.


PipelineDefinition

public PipelineDefinition(org.w3c.dom.Document doc)

Create a new instance of this from the specified document


Methods Detail

addFeature

public void addFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)

Add a feature to this configuration

Parameters

feature - the feature to add


addTransformDef

public void addTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)

Add a transform definition to this.

Parameters

tdef - the transform definition to add


configure

public void configure(org.eclipse.wst.xsl.invoker.IProcessorInvoker invoker)

Configure the invoker from this.

Parameters

invoker - the invoker to configure

Throws:

org.eclipse.wst.xsl.invoker.ConfigurationException - if an exception occurs during configuration


getFeatures

public java.util.Set getFeatures()

Get the set of features defined.

Returns

java.util.Set - the set of features


getTransformDefs

public java.util.List getTransformDefs()

Get the list of TransformDefinition's.

Returns

java.util.List - the list of transform definitions


removeFeature

public void removeFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)

Remove a feature from the set of features

Parameters

feature - the feature to remove


removeTransformDef

public void removeTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)

Remove a transform definition from this.

Parameters

tdef - the transform definition to remove


setUseEmbedded

public void setUseEmbedded(boolean embedded)

Set whether to use an XSL declaration embedded in the XML file

Parameters

embedded - true to use embedded


toXML

public org.w3c.dom.Document toXML()

Serialize this to a DOM Document.

Returns

org.w3c.dom.Document - the serialized document

Throws:

javax.xml.parsers.ParserConfigurationException - if a problem occurs during serialization


useEmbedded

public boolean useEmbedded()

Get whether to use an XSL declaration embedded in the XML file

Returns

boolean - true if embedded