Package org.eclipse.wst.xsl.invoker.config
public class PipelineDefinition extends java.lang.ObjectThe 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 void | addFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)Add a feature to this configuration |
public void | addTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)Add a transform definition to this. |
public void | configure(org.eclipse.wst.xsl.invoker.IProcessorInvoker invoker)Configure the invoker from this. |
public java.util.Set | getFeatures()Get the set of features defined. |
public java.util.List | getTransformDefs()Get the list of TransformDefinition's. |
public void | removeFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)Remove a feature from the set of features |
public void | removeTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)Remove a transform definition from this. |
public void | setUseEmbedded(boolean embedded)Set whether to use an XSL declaration embedded in the XML file |
public org.w3c.dom.Document | toXML()Serialize this to a DOM Document. |
public boolean | useEmbedded()Get whether to use an XSL declaration embedded in the XML file |
Constructor Detail |
public PipelineDefinition()
Create a new empty instance of this.
public PipelineDefinition(java.io.File launchFile)
Create a new instance of this by reading the specified XML file.
public PipelineDefinition(org.w3c.dom.Document doc)
Create a new instance of this from the specified document
Methods Detail |
public void addFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)
Add a feature to this configuration
feature - the feature to add
public void addTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)
Add a transform definition to this.
tdef - the transform definition to add
public void configure(org.eclipse.wst.xsl.invoker.IProcessorInvoker invoker)
Configure the invoker from this.
invoker - the invoker to configure
org.eclipse.wst.xsl.invoker.ConfigurationException - if an exception occurs during configuration
public java.util.Set getFeatures()
Get the set of features defined.
java.util.Set - the set of features
public java.util.List getTransformDefs()
Get the list of TransformDefinition's.
java.util.List - the list of transform definitions
public void removeFeature(org.eclipse.wst.xsl.invoker.config.TypedValue feature)
Remove a feature from the set of features
feature - the feature to remove
public void removeTransformDef(org.eclipse.wst.xsl.invoker.config.TransformDefinition tdef)
Remove a transform definition from this.
tdef - the transform definition to remove
public void setUseEmbedded(boolean embedded)
Set whether to use an XSL declaration embedded in the XML file
embedded - true to use embedded
public org.w3c.dom.Document toXML()
Serialize this to a DOM Document.
org.w3c.dom.Document - the serialized document
javax.xml.parsers.ParserConfigurationException - if a problem occurs during serialization
public boolean useEmbedded()
Get whether to use an XSL declaration embedded in the XML file
boolean - true if embedded