main
Class QueryVariable

java.lang.Object
  extended by main.QueryVariable

public class QueryVariable
extends java.lang.Object

The QueryVariable class represents variables as defined in the Visualizer inputfile.


Field Summary
private  java.lang.String description
           
private  java.lang.String name
           
private  java.lang.String value
           
 
Constructor Summary
QueryVariable(java.lang.String name, java.lang.String value, java.lang.String description)
          Constructs a new QueryVariable with the name, value, and description that are passed in
 
Method Summary
 java.lang.String getDescription()
          Returns the description.
 java.lang.String getName()
          Returns the name.
 java.lang.String getValue()
          Returns the value.
 boolean isDefined()
          Returns true if the value, name, and description are not null and false otherwise.
 void setValue(java.lang.String value)
          Sets the value.
 java.lang.String toString()
          Returns a string representation of this QueryVariable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value

description

private java.lang.String description
Constructor Detail

QueryVariable

public QueryVariable(java.lang.String name,
                     java.lang.String value,
                     java.lang.String description)
Constructs a new QueryVariable with the name, value, and description that are passed in

Parameters:
name - a String
value - a String
description - a String
Method Detail

getName

public java.lang.String getName()
Returns the name.

Returns:
the name

getValue

public java.lang.String getValue()
Returns the value.

Returns:
the value

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
the description

setValue

public void setValue(java.lang.String value)
Sets the value.

Parameters:
value - a String

isDefined

public boolean isDefined()
Returns true if the value, name, and description are not null and false otherwise.

Returns:
whether the variable is defined

toString

public java.lang.String toString()
Returns a string representation of this QueryVariable. This is for debugging purposes only.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this QueryVariable