com.nokia.ant.types
Class VariableSet

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by com.nokia.ant.types.VariableSet
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
SBSMakeOptions

public class VariableSet
extends org.apache.tools.ant.types.DataType

Helper class to store the variable set (list of variables with name / value pair)


Field Summary
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
VariableSet()
          Constructor
 
Method Summary
 void add(Variable var)
          Add a given variable to the list
 Variable createVariable()
          Creates an empty variable element and adds it to the variables list
 java.util.Vector getVariables()
          Returns the list of variables available in the VariableSet
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes, toString
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableSet

public VariableSet()
Constructor

Method Detail

createVariable

public Variable createVariable()
Creates an empty variable element and adds it to the variables list

Returns:
empty Variable pair

add

public void add(Variable var)
Add a given variable to the list

Parameters:
var - variable to add

getVariables

public java.util.Vector getVariables()
Returns the list of variables available in the VariableSet

Returns:
variable list