|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.variable.Variable
public class Variable
A variable which can be used to transport data in and between outlets.
A variable has a name (possibly with a name space),
a value (which may be null),
and a scope (determining in which outlets this variable will be visible).
if the scope is CHILDREN
, the outlet in which this
variable was set is also stored in the variable.
Nested Class Summary | |
---|---|
static class |
Variable.Scope
The scope of a variable. |
Constructor Summary | |
---|---|
Variable(QualifiedName name,
Object value,
Variable.Scope scope)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
QualifiedName |
getName()
Returns the name of the variable. |
Variable.Scope |
getScope()
Returns the scope of the variable. |
Object |
getValue()
Returns the value of the variable, |
int |
hashCode()
|
void |
setValue(Object value)
Sets the value of the variable. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Variable(QualifiedName name, Object value, Variable.Scope scope)
name
- the name of the variable, not null.value
- the value of the variable.scope
- the scope of the variable, not null.Method Detail |
---|
public QualifiedName getName()
public Object getValue()
public void setValue(Object value)
value
- the value to set in the variable.public Variable.Scope getScope()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |