Package org.exolab.adaptx.xslt
Class AttributeValueTemplate
java.lang.Object
org.exolab.adaptx.xslt.AttributeValueTemplate
A representation of an Attribute Value Template
- Version:
- $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 2003) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty AttributeValueTemplateAttributeValueTemplate
(String attValue) Creates an AttributeValueTemplate using the given String -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpr
(XPathExpression expr) Adds the given Expr to this AttributeValueTemplate.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 AttributeValueTemplatetoString()
Returns the String representation of this AttributeValueTemplate
-
Constructor Details
-
AttributeValueTemplate
public AttributeValueTemplate()Creates an empty AttributeValueTemplate -
AttributeValueTemplate
Creates an AttributeValueTemplate using the given String- Parameters:
attValue
- the String to create the AttributeValueTemplate from
-
-
Method Details
-
addExpr
Adds the given Expr to this AttributeValueTemplate.- Parameters:
Expr
- the Expr to add to this AttributeValueTemplate
-
evaluate
Returns the value of this AttributeValueTemplate when evaluated using the given context Node.- Parameters:
node
- the context Node to evaluate this AttributeValueTemplate withcontext
- the XPathContext to use during evaluation.- Throws:
XSLException
-
removeExpr
Removes the given Expr from this AttributeValueTemplate- Parameters:
expr
- the Expr to remove
-
toString
Returns the String representation of this AttributeValueTemplate
-