com.espertech.esper.type
Class PrimitiveValueBase

java.lang.Object
  extended by com.espertech.esper.type.PrimitiveValueBase
All Implemented Interfaces:
PrimitiveValue
Direct Known Subclasses:
BoolValue, ByteValue, DoubleValue, FloatValue, IntValue, LongValue, ShortValue, StringValue

public abstract class PrimitiveValueBase
extends java.lang.Object
implements PrimitiveValue

Abstract class for literal values supplied in an event expression string and prepared expression values supplied by set methods.


Constructor Summary
PrimitiveValueBase()
           
 
Method Summary
 void parse(java.lang.String[] values)
          Parse the string literal values supplied in the array into the specific data type.
 void setBoolean(boolean x)
          Set a boolean value.
 void setByte(byte x)
          Set a byte value.
 void setDouble(double x)
          Set a double value.
 void setFloat(float x)
          Set a float value.
 void setInt(int x)
          Set an int value.
 void setLong(long x)
          Set a long value.
 void setShort(short x)
          Set a short value.
 void setString(java.lang.String x)
          Set a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.type.PrimitiveValue
getType, getValueObject, parse
 

Constructor Detail

PrimitiveValueBase

public PrimitiveValueBase()
Method Detail

parse

public void parse(java.lang.String[] values)
Description copied from interface: PrimitiveValue
Parse the string literal values supplied in the array into the specific data type.

Specified by:
parse in interface PrimitiveValue
Parameters:
values - are the textual values to parse

setBoolean

public void setBoolean(boolean x)
                throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a boolean value.

Specified by:
setBoolean in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setByte

public void setByte(byte x)
             throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a byte value.

Specified by:
setByte in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setDouble

public void setDouble(double x)
               throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a double value.

Specified by:
setDouble in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setFloat

public void setFloat(float x)
              throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a float value.

Specified by:
setFloat in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setInt

public void setInt(int x)
            throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set an int value.

Specified by:
setInt in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setLong

public void setLong(long x)
             throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a long value.

Specified by:
setLong in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setShort

public void setShort(short x)
              throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a short value.

Specified by:
setShort in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

setString

public void setString(java.lang.String x)
               throws java.lang.UnsupportedOperationException
Description copied from interface: PrimitiveValue
Set a string value.

Specified by:
setString in interface PrimitiveValue
Parameters:
x - is the value to set
Throws:
java.lang.UnsupportedOperationException - to indicate that the value cannot convert from boolean

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com