org.exolab.adaptx.xslt

Class AttributeValueTemplate


public class AttributeValueTemplate
extends java.lang.Object

A representation of an Attribute Value Template
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:46 $
Author:
Keith Visco

Constructor Summary

AttributeValueTemplate()
Creates an empty AttributeValueTemplate
AttributeValueTemplate(String attValue)
Creates an AttributeValueTemplate using the given String

Method Summary

void
addExpr(XPathExpression expr)
Adds the given Expr to this AttributeValueTemplate.
String
evaluate(XPathContext xcontext)
Returns the value of this AttributeValueTemplate when evaluated using the given context Node.
void
removeExpr(XPathExpression expr)
Removes the given Expr from this AttributeValueTemplate
String
toString()
Returns the String representation of this AttributeValueTemplate

Constructor Details

AttributeValueTemplate

public AttributeValueTemplate()
Creates an empty AttributeValueTemplate

AttributeValueTemplate

public AttributeValueTemplate(String attValue)
Creates an AttributeValueTemplate using the given String
Parameters:
attValue - the String to create the AttributeValueTemplate from

Method Details

addExpr

public void addExpr(XPathExpression expr)
Adds the given Expr to this AttributeValueTemplate.
Parameters:

evaluate

public String evaluate(XPathContext xcontext)
            throws XSLException
Returns the value of this AttributeValueTemplate when evaluated using the given context Node.
Parameters:

removeExpr

public void removeExpr(XPathExpression expr)
Removes the given Expr from this AttributeValueTemplate
Parameters:
expr - the Expr to remove

toString

public String toString()
Returns the String representation of this AttributeValueTemplate
Returns:
the String representation of this AttributeValueTemplate