com.edustructures.sifworks
Interface ValueBuilder

All Known Implementing Classes:
DefaultValueBuilder

public interface ValueBuilder

Classes that implement the ValueBuilder interface evaluate an arbitrary expression to produce a string value. The string value is then assigned as the value to a SIF element or attribute.

The ValueBuilder interface is used by the SIFDTD, SIFDataObject, and Mappings classes when evaluating XPath-like query strings. It enables developers to customize the way the ADK evaluates value expressions in these query strings to produce a value for a SIF element or attribute. The DefaultValueBuilder implementation supports $(variable) token replacement as well as @com.class.method style calls to static Java methods.

Version:
ADK 1.0

Method Summary
 java.lang.String evaluate(java.lang.String expression)
          Evaluate an expression to return a String value.
 

Method Detail

evaluate

java.lang.String evaluate(java.lang.String expression)
Evaluate an expression to return a String value.

Parameters:
expression - The expression to evaluate
map - A Map comprised of name/value pairs that may be referenced by the expression for token replacement
Returns:
The value that results from the expression


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.