ca.sqlpower.wabit
Class Variables

java.lang.Object
  extended by ca.sqlpower.wabit.Variables

public class Variables
extends java.lang.Object

A collection of static utility methods for dealing with variables.

Variables

Variable references take the form ${name}, where name is the name of the variable being referenced. The variable name must contain only alphanumeric characters (a-z, 0-9), the dot '.' character, and underscore. The name is case sensitive. Currently, only simple substitution is possible; in the future, we plan to provide a rich set of modifiers similar to those described in the Parameter Expansion section of the zshexpn(1) man page.


Constructor Summary
Variables()
           
 
Method Summary
static java.lang.String substitute(java.lang.String textWithVars, VariableContext variableContext)
          Substitutes any number of variable references in the given string, returning the resultant string with all variable references replaced by the corresponding variable values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Variables

public Variables()
Method Detail

substitute

public static java.lang.String substitute(java.lang.String textWithVars,
                                          VariableContext variableContext)
Substitutes any number of variable references in the given string, returning the resultant string with all variable references replaced by the corresponding variable values.

Parameters:
textWithVars -
variableContext -
Returns:


Copyright © 2009. All Rights Reserved.