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)
Create an element with the given name
String
getName()
Object
getValue()
void
setDynamicAttribute(String name, String value)
Set a named attribute to the given value

Method Details

createDynamicElement

public Object createDynamicElement(String name)
            throws BuildException
Create an element with the given name
Specified by:
createDynamicElement in interface DynamicElement
Parameters:
name - the element nbame
Returns:
the element created
Throws:
BuildException - when any error occurs

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 a named attribute to the given value
Specified by:
setDynamicAttribute in interface DynamicAttribute
Parameters:
name - the name of the attribute
value - the new value of the attribute
Throws:
BuildException - when any error occurs

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.