org.pf.textx
Interface VariableContainer

All Superinterfaces:
VariableResolver
All Known Implementing Classes:
BasicVariableContainer, GlobalLocalPlaceholderReplacement, GlobalLocalVariables

public interface VariableContainer
extends VariableResolver

Extends the VariableResolver interface with write capability methods.

Version:
1.1
Author:
Manfred Duchrow

Method Summary
 void removeVariable(java.lang.String varName)
          Remove the variable with the specified name.
 void setValue(java.lang.String varName, java.lang.String value)
          Set the value of the specified variable.
 void setValueFor(java.lang.String varName, java.lang.Object value)
          Sets the value of the variable with the given name.
 
Methods inherited from interface org.pf.textx.VariableResolver
getValue, isKnownVariable, knownVariableNames
 

Method Detail

setValue

void setValue(java.lang.String varName,
              java.lang.String value)
Set the value of the specified variable.

Parameters:
varName - The name under which the value has to be stored
value - The value to store

setValueFor

void setValueFor(java.lang.String varName,
                 java.lang.Object value)
Sets the value of the variable with the given name.

Parameters:
varName - The case sensitive name of the variable. Must not be null !
value - The new value of the variable. Must not be null !

removeVariable

void removeVariable(java.lang.String varName)
Remove the variable with the specified name.

Parameters:
varName - The name of the variable to be removed