org.gridbus.broker.runfile
Class Variable

java.lang.Object
  extended by org.gridbus.broker.runfile.Variable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ListVariable, SingleVariable

public abstract class Variable
extends java.lang.Object
implements java.io.Serializable

Author:
hussein Parent class for run file variables to extend. Forces variables to have a name.
See Also:
Serialized Form

Constructor Summary
Variable(java.lang.String name)
          Constructs variable with the given name.
Variable(java.lang.String name, java.lang.String type)
          Constructs variable with the given name and its type.
 
Method Summary
 java.lang.String getName()
          Gets the name of this variable.
 java.lang.String getType()
           
 void setName(java.lang.String name)
          Sets this variables name.
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String name)
Constructs variable with the given name.

Parameters:
name -

Variable

public Variable(java.lang.String name,
                java.lang.String type)
Constructs variable with the given name and its type.

Parameters:
name -
type -
Method Detail

setName

public void setName(java.lang.String name)
Sets this variables name.

Parameters:
name - the name for this variable.

getName

public java.lang.String getName()
Gets the name of this variable.

Returns:
this variables name.

getType

public java.lang.String getType()
Returns:
Returns the type.

setType

public void setType(java.lang.String type)
Parameters:
type - The type to set.