org.teiid.connector.language
Interface ILiteral

All Superinterfaces:
IExpression, ILanguageObject

public interface ILiteral
extends IExpression

Represents a literal value that is used in an expression. The value can be obtained and should match the type specified by getType().


Method Summary
 java.lang.Class<?> getType()
          Get the Java type of the literal
 java.lang.Object getValue()
          Get the value of the literal
 boolean isBindValue()
          Returns true if this literal should be treated as a bind value
 boolean isMultiValued()
          Returns true if the value for this literal is a list of values.
 void setBindValue(boolean bindValue)
          Set whether this literal should be treated as a bind value
 void setMultiValued(boolean multiValued)
          Set whether the value for this literal is a list of values.
 void setType(java.lang.Class<?> type)
          Set the Java type of the literal
 void setValue(java.lang.Object value)
          Set the value of the literal
 
Methods inherited from interface org.teiid.connector.language.ILanguageObject
acceptVisitor
 

Method Detail

getValue

java.lang.Object getValue()
Get the value of the literal

Returns:
Object of value

getType

java.lang.Class<?> getType()
Get the Java type of the literal

Specified by:
getType in interface IExpression
Returns:
Java class name of type

setValue

void setValue(java.lang.Object value)
Set the value of the literal

Parameters:
value - Object of value

setType

void setType(java.lang.Class<?> type)
Set the Java type of the literal

Specified by:
setType in interface IExpression
Parameters:
type - Java class name of type

isBindValue

boolean isBindValue()
Returns true if this literal should be treated as a bind value


setBindValue

void setBindValue(boolean bindValue)
Set whether this literal should be treated as a bind value

Parameters:
bindValue -

isMultiValued

boolean isMultiValued()
Returns true if the value for this literal is a list of values.

Returns:

setMultiValued

void setMultiValued(boolean multiValued)
Set whether the value for this literal is a list of values.

Parameters:
multiValued -


Copyright © 2009. All Rights Reserved.