org.apache.tools.ant.taskdefs

Class XSLTProcess.Factory.Attribute

Enclosing Class:
XSLTProcess.Factory
Implemented Interfaces:
DynamicAttribute, DynamicConfigurator, DynamicElement

public static class XSLTProcess.Factory.Attribute
extends java.lang.Object
implements DynamicConfigurator

A JAXP factory attribute. This is mostly processor specific, for example for Xalan 2.3+, the following attributes could be set:

Method Summary

Object
createDynamicElement(String name)
Not used.
String
getName()
Object
getValue()
void
setDynamicAttribute(String name, String value)
Set an attribute.

Method Details

createDynamicElement

public Object createDynamicElement(String name)
            throws BuildException
Not used.
Specified by:
createDynamicElement in interface DynamicElement
Parameters:
name - not used
Returns:
null
Throws:
BuildException - never

getName

public String getName()
Returns:
the attribute name.

getValue

public Object getValue()
Returns:
the output property value.

setDynamicAttribute

public void setDynamicAttribute(String name,
                                String value)
            throws BuildException
Set an attribute. Only "name" and "value" are supported as names.
Specified by:
setDynamicAttribute in interface DynamicAttribute
Parameters:
name - the name of the attribute
value - the value of the attribute
Throws:
BuildException - on error