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

eworks.RDF.model
Class LiteralValue

java.lang.Object
  extended byeworks.RDF.model.Value
      extended byeworks.RDF.model.LiteralValue
Direct Known Subclasses:
StringLiteralValue, UriLiteralValue

public abstract class LiteralValue
extends Value

Abstract base classes for representing literals.

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

Constructor Summary
protected LiteralValue()
          Creates a new instance.
 
Method Summary
 boolean equals(Object o)
          Checks if the literal is equal to a given object.
 LiteralValue getValue()
          Returns the literal value, that's the instance itself.
 LiteralValue getValue(SymbolTable symbols)
          Returns the literal value, that's the instance itself.
 int hashCode()
          Returns the literals hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteralValue

protected LiteralValue()
Creates a new instance.

Method Detail

equals

public boolean equals(Object o)
Checks if the literal is equal to a given object. To do so it is checked if the given object o is an instance of LiteralValue, too. If so, both literals' string representation are checked for equality (case sensitive). Otherwise the call is propagated to the inhertied implementation Object.equals(Object).

Returns:
true if and only if the literal is equal to o.

hashCode

public int hashCode()
Returns the literals hash code.

Returns:
The literals hash code.

getValue

public LiteralValue getValue(SymbolTable symbols)
Returns the literal value, that's the instance itself.

Specified by:
getValue in class Value
Parameters:
symbols - The symbol table to use as declared in Value.getValue(eworks.RQL.engine.SymbolTable), but it is not used in this implementation.
Returns:
The instance itself.

getValue

public LiteralValue getValue()
Returns the literal value, that's the instance itself.

Returns:
The instance itself.

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