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


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



public class TransformDefinition
extends java.lang.Object
A definition of a particular step in the transformation pipeline.


Constructor Summary

TransformDefinition()

Method Summary

public voidaddParameter(org.eclipse.wst.xsl.invoker.config.TypedValue parameter)
     Add a parameter to the set of parameters
public org.w3c.dom.ElementasXML(org.w3c.dom.Document doc)
     Serialize this to a Document fragment.
public static org.eclipse.wst.xsl.invoker.config.TransformDefinitionfromXML(org.w3c.dom.Element transformEl)
     Create a new instance of this from its serialized form.
public java.util.PropertiesgetOutputProperties()
     Get the output properties for this.
public java.util.SetgetParameters()
     The set of parameters
public java.util.MapgetParametersAsMap()
     Get the parameters as a map of name (String) v. value TypedValue.
public java.lang.StringgetResolverClass()
     Get the name of the URIResolver class to use.
public java.lang.StringgetStylesheetURL()
     Get the URL of the stylesheet.
public voidremoveOutputProperty(java.lang.String name)
     Remove an output property.
public voidremoveParameter(org.eclipse.wst.xsl.invoker.config.TypedValue parameter)
     Remove a parameter.
public voidsetOutputProperties(java.util.Properties outputProperties)
     Set the output properties for this.
public voidsetOutputProperty(java.lang.String name , java.lang.String value)
     Set the value of a specific output property.
public voidsetResolverClass(java.lang.String resolver)
     Set the name of the URIResolver class to use.
public voidsetStylesheetURL(java.lang.String stylesheet)
     Set the URL of the stylesheet.

Constructor Detail

TransformDefinition

public TransformDefinition()


Methods Detail

addParameter

public void addParameter(org.eclipse.wst.xsl.invoker.config.TypedValue parameter)

Add a parameter to the set of parameters

Parameters

parameter - the parameter to add


asXML

public org.w3c.dom.Element asXML(org.w3c.dom.Document doc)

Serialize this to a Document fragment.

Parameters

doc - the document to attach to

Returns

org.w3c.dom.Element - the root element of the fragment


fromXML

public org.eclipse.wst.xsl.invoker.config.TransformDefinition fromXML(org.w3c.dom.Element transformEl)

Create a new instance of this from its serialized form.

Parameters

transformEl - the element to create this from

Returns

org.eclipse.wst.xsl.invoker.config.TransformDefinition - a new instance of this


getOutputProperties

public java.util.Properties getOutputProperties()

Get the output properties for this.

Returns

java.util.Properties - the output properties


getParameters

public java.util.Set getParameters()

The set of parameters

Returns

java.util.Set - a set of TypedValue's


getParametersAsMap

public java.util.Map getParametersAsMap()

Get the parameters as a map of name (String) v. value TypedValue.

Returns

java.util.Map - a map of names and values

Throws:

org.eclipse.wst.xsl.invoker.config.CreationException - if an exception occurred during object creation


getResolverClass

public java.lang.String getResolverClass()

Get the name of the URIResolver class to use.

Returns

java.lang.String - the resolver's class name


getStylesheetURL

public java.lang.String getStylesheetURL()

Get the URL of the stylesheet.

Returns

java.lang.String - the stylesheet URL


removeOutputProperty

public void removeOutputProperty(java.lang.String name)

Remove an output property.

Parameters

name - the output property to remove


removeParameter

public void removeParameter(org.eclipse.wst.xsl.invoker.config.TypedValue parameter)

Remove a parameter.

Parameters

parameter - the parameter to remove


setOutputProperties

public void setOutputProperties(java.util.Properties outputProperties)

Set the output properties for this.

Parameters

outputProperties - the output properties to set


setOutputProperty

public void setOutputProperty(java.lang.String name , java.lang.String value)

Set the value of a specific output property.

Parameters

name - the output property

value - the value


setResolverClass

public void setResolverClass(java.lang.String resolver)

Set the name of the URIResolver class to use.

Parameters

resolver - the resolver's class name


setStylesheetURL

public void setStylesheetURL(java.lang.String stylesheet)

Set the URL of the stylesheet.

Parameters

stylesheet - the stylesheet URL