org.azzyzt.jee.runtime.dto.query
Class Literal

java.lang.Object
  extended by org.azzyzt.jee.runtime.dto.query.Operand
      extended by org.azzyzt.jee.runtime.dto.query.Literal

public class Literal
extends Operand

Literal occurring in an Expression. A Literal has a type and a value.


Constructor Summary
Literal()
           
Literal(LiteralType type, java.lang.Object value)
           
 
Method Summary
 LiteralType getType()
           
 java.lang.Object getValue()
           
 boolean isValid()
           
static Literal parse(java.lang.String text, LiteralType type)
          Factory method that creates a Literal from a text.
 void setType(LiteralType type)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Literal

public Literal()

Literal

public Literal(LiteralType type,
               java.lang.Object value)
Method Detail

getType

public LiteralType getType()

setType

public void setType(LiteralType type)

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object value)

parse

public static Literal parse(java.lang.String text,
                            LiteralType type)
                     throws NotYetImplementedException
Factory method that creates a Literal from a text.

Parameters:
text - the input
type - supposed type of the input
Returns:
the Literal
Throws:
NotYetImplementedException

isValid

public boolean isValid()
Specified by:
isValid in class Operand