jd.xml.xslt
Class AttributeValue

java.lang.Object
  extended byjd.xml.xslt.AttributeValue

public class AttributeValue
extends Object

AttributeValue represents an dynamically evaluated value of an attribute.


Constructor Summary
AttributeValue(String string, Expression expression)
          Create a new AttributeValue.
 
Method Summary
 void addNext(AttributeValue value)
           
static AttributeValue create(AttributeValue first, String s, Expression expr)
           
 String evaluate(XPathContext context)
           
static char evaluate(XPathContext context, AttributeValue av, char defaultValue)
           
static int evaluate(XPathContext context, AttributeValue av, int defaultValue)
           
static String evaluate(XPathContext context, AttributeValue av, String defaultValue)
           
 int getContextDependencies()
          Return a bitfield indicating the expression dependencies.
static int getDependencies(AttributeValue av)
          Return a bitfield indicating the expression dependencies.
 Expression getExpression()
           
 AttributeValue getNext()
           
 String getString()
           
 String toString()
          Return a string representation of the AttributeValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValue

public AttributeValue(String string,
                      Expression expression)
Create a new AttributeValue. Either the string or the expression parameter has to be null. If the string is provided the AttributeValue represents this constant. If the expression is provided the evaluation of AttributeValue returns the evaluated expression.

Method Detail

create

public static AttributeValue create(AttributeValue first,
                                    String s,
                                    Expression expr)

addNext

public void addNext(AttributeValue value)

getNext

public AttributeValue getNext()

getString

public String getString()

getExpression

public Expression getExpression()

getContextDependencies

public int getContextDependencies()
Return a bitfield indicating the expression dependencies.

See Also:
jd.xml.xpath.Expression#getContextDependencies

getDependencies

public static int getDependencies(AttributeValue av)
Return a bitfield indicating the expression dependencies.

See Also:
jd.xml.xpath.Expression#getContextDependencies

evaluate

public String evaluate(XPathContext context)

evaluate

public static String evaluate(XPathContext context,
                              AttributeValue av,
                              String defaultValue)

evaluate

public static int evaluate(XPathContext context,
                           AttributeValue av,
                           int defaultValue)

evaluate

public static char evaluate(XPathContext context,
                            AttributeValue av,
                            char defaultValue)

toString

public String toString()
Return a string representation of the AttributeValue.