org.axiondb

Class Literal

public class Literal extends BaseSelectable implements Selectable

A typedliteral value.

Version: $Revision: 1.16 $ $Date: 2005/12/20 18:32:40 $

Author: Rodney Waldhoff Chuck Burdick Ahimanikya Satapathy

Field Summary
protected Object_value
Constructor Summary
Literal(Object value)
Literal(Object value, DataType type)
protected Literal(DataType type)
Method Summary
booleanequals(Object otherobject)
Returns true iff otherobject is a Literalwhose name are equal to mine.
Objectevaluate()
Objectevaluate(RowDecorator row)
DataTypegetDataType()
StringgetLabel()
Returns my Literal name.
StringgetName()
Returns the name of Literal, if any.
inthashCode()
Returns a hash code in keeping with the standard Object#equals equals/ Object#hashCode hashCodecontract.
voidsetDataType(DataType type)
StringtoString()
Returns a String representation of me, suitable for debugging output.

Field Detail

_value

protected Object _value

Constructor Detail

Literal

public Literal(Object value)

Literal

public Literal(Object value, DataType type)

Literal

protected Literal(DataType type)

Method Detail

equals

public boolean equals(Object otherobject)
Returns true iff otherobject is a Literalwhose name are equal to mine.

evaluate

public Object evaluate()

evaluate

public final Object evaluate(RowDecorator row)

Parameters: row is ignored and may be null.

See Also: Literal

getDataType

public DataType getDataType()

getLabel

public String getLabel()
Returns my Literal name.

getName

public String getName()
Returns the name of Literal, if any.

hashCode

public int hashCode()
Returns a hash code in keeping with the standard Object#equals equals/ Object#hashCode hashCodecontract.

setDataType

public void setDataType(DataType type)

toString

public String toString()
Returns a String representation of me, suitable for debugging output.