org.weborganic.furi
Class VariableType

java.lang.Object
  extended by org.weborganic.furi.VariableType

public class VariableType
extends Object

Defines a variable type. The variable type may be used for any purpose. It is just a mechanism to qualify variables further than merely by name. Systems may choose to use a variable type to indicate a particular behaviour for the variable or to enforce a particular type of value.

Version:
11 June 2009
Author:
Christophe Lauret

Constructor Summary
VariableType(String name)
          Create a new variable type.
 
Method Summary
 boolean equals(Object o)
           
 String getName()
          Return the name of this variable type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableType

public VariableType(String name)
Create a new variable type.

Throws:
NullPointerException - If the specified name is null.
IllegalArgumentException - If the specified name is an empty string.
Method Detail

getName

public String getName()
Return the name of this variable type.

Returns:
The name of this variable type.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object