Class AttributeValueTemplate


  • public class AttributeValueTemplate
    extends java.lang.Object
    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

      Constructors 
      Constructor Description
      AttributeValueTemplate()
      Creates an empty AttributeValueTemplate
      AttributeValueTemplate​(java.lang.String attValue)
      Creates an AttributeValueTemplate using the given String
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExpr​(XPathExpression expr)
      Adds the given Expr to this AttributeValueTemplate.
      java.lang.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
      java.lang.String toString()
      Returns the String representation of this AttributeValueTemplate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AttributeValueTemplate

        public AttributeValueTemplate()
        Creates an empty AttributeValueTemplate
      • AttributeValueTemplate

        public AttributeValueTemplate​(java.lang.String attValue)
        Creates an AttributeValueTemplate using the given String
        Parameters:
        attValue - the String to create the AttributeValueTemplate from
        Throws:
        InvalidExprException
    • Method Detail

      • addExpr

        public void addExpr​(XPathExpression expr)
        Adds the given Expr to this AttributeValueTemplate.
        Parameters:
        Expr - the Expr to add to this AttributeValueTemplate
      • evaluate

        public java.lang.String evaluate​(XPathContext xcontext)
                                  throws XSLException
        Returns the value of this AttributeValueTemplate when evaluated using the given context Node.
        Parameters:
        node - the context Node to evaluate this AttributeValueTemplate with
        context - the XPathContext to use during evaluation.
        Throws:
        XSLException
      • removeExpr

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

        public java.lang.String toString()
        Returns the String representation of this AttributeValueTemplate
        Overrides:
        toString in class java.lang.Object
        Returns:
        the String representation of this AttributeValueTemplate