com.sun.n1.util.vars
Interface VariableSettingsSource

All Known Subinterfaces:
Host, HostType, HostTypeVarList, PromptParamList

public interface VariableSettingsSource

Defines the interface for objects that can be used as a source of variable settings. The variable settings contains variables name-value pairs. The values can be null.


Method Summary
 boolean containsVarValue(java.lang.String varName)
          Returns true if a variable with the supplied name exists and has a non-null value.
 java.lang.String[] getVarNames()
          Returns the names of all variables that are currently defined.
 java.lang.String getVarValue(java.lang.String varName)
          Returns the value of the passed variable name.
 

Method Detail

getVarValue

java.lang.String getVarValue(java.lang.String varName)
Returns the value of the passed variable name. A variable may have a null value. Use getVarNames() to find out if a variable is defined.

Parameters:
varName - the name of the variable to lookup.
Returns:
the value for the passed variable name. The value can be null.

getVarNames

java.lang.String[] getVarNames()
Returns the names of all variables that are currently defined.

Returns:
the names of all variables.

containsVarValue

boolean containsVarValue(java.lang.String varName)
Returns true if a variable with the supplied name exists and has a non-null value.

Parameters:
varName - the name of the variable to lookup.
Returns:
true if the variable exists and has a non-null value.