ca.sqlpower.wabit.report
Class Layout.LayoutVarContext

java.lang.Object
  extended by ca.sqlpower.wabit.report.Layout.LayoutVarContext
All Implemented Interfaces:
VariableContext
Enclosing class:
Layout

public class Layout.LayoutVarContext
extends java.lang.Object
implements VariableContext


Constructor Summary
Layout.LayoutVarContext()
           
 
Method Summary
 java.util.Set<java.lang.String> getVariableNames()
          Returns the set of all defined variable names in this context.
 java.lang.Object getVariableValue(java.lang.String name, java.lang.Object defaultValue)
          Returns the value of the named variable, or the given default value if the variable is not defined.
 java.util.Map<java.lang.String,java.lang.Object> getVars()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layout.LayoutVarContext

public Layout.LayoutVarContext()
Method Detail

getVariableNames

public java.util.Set<java.lang.String> getVariableNames()
Description copied from interface: VariableContext
Returns the set of all defined variable names in this context.

Specified by:
getVariableNames in interface VariableContext

getVariableValue

public java.lang.Object getVariableValue(java.lang.String name,
                                         java.lang.Object defaultValue)
Description copied from interface: VariableContext
Returns the value of the named variable, or the given default value if the variable is not defined. If you want a reliable way to find out if a variable is defined, look it up in the set returned by VariableContext.getVariableNames().

Specified by:
getVariableValue in interface VariableContext
Parameters:
name - The name of the variable
defaultValue - The value to return if the variable is not defined
Returns:
The value of the variable.

getVars

public java.util.Map<java.lang.String,java.lang.Object> getVars()


Copyright © 2009. All Rights Reserved.