eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.RQL.model
Class Variable

java.lang.Object
  extended byeworks.RDF.model.Value
      extended byeworks.RQL.model.Variable
Direct Known Subclasses:
ClassVariable, DataVariable, PropertyVariable

public abstract class Variable
extends Value

An abstract base class for classes that represent RQL variables.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

Constructor Summary
Variable(String variable)
          Constructs a new RQL variable with a certain name.
 
Method Summary
 String getName()
          Returns the variable's name.
 LiteralValue getValue(SymbolTable symbols)
          Returns the variable's value, using a certain symbol table.
 String toString()
          Returns this variable's string representation, that it's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(String variable)
Constructs a new RQL variable with a certain name.

Parameters:
variable - The variable's name.
Method Detail

getName

public String getName()
Returns the variable's name.

Returns:
The variable's name.

getValue

public LiteralValue getValue(SymbolTable symbols)
                      throws VariableNotBoundException
Returns the variable's value, using a certain symbol table.

Specified by:
getValue in class Value
Parameters:
symbols - The symbol table to look up the variable's value.
Returns:
The variable's value.
Throws:
VariableNotBoundException - if this variable cannot be found inside the given symbol table.

toString

public String toString()
Returns this variable's string representation, that it's name.

Returns:
This variable's string representation.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/