com.espertech.esper.client
Class ConfigurationVariable

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationVariable
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationVariable
extends java.lang.Object
implements java.io.Serializable

Provides variable configuration.

See Also:
Serialized Form

Constructor Summary
ConfigurationVariable()
           
 
Method Summary
 java.lang.Object getInitializationValue()
          Returns the initialization value, or null if none was supplied.
 java.lang.String getType()
          Returns the variable type as a fully-qualified class name, primitive type or event type name.
 boolean isConstant()
          Returns true if the variable is a constant, or false for regular variable.
 void setConstant(boolean constant)
          Set to true to indicate that the variable is a constant, or false for regular variable.
 void setInitializationValue(java.lang.Object initializationValue)
          Sets the variable type.
 void setType(java.lang.String type)
          Sets the variable type as a fully-qualified class name, primitive type or event type name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationVariable

public ConfigurationVariable()
Method Detail

getType

public java.lang.String getType()
Returns the variable type as a fully-qualified class name, primitive type or event type name.

Returns:
type name

setType

public void setType(java.lang.String type)
Sets the variable type as a fully-qualified class name, primitive type or event type name.

Parameters:
type - type name

getInitializationValue

public java.lang.Object getInitializationValue()
Returns the initialization value, or null if none was supplied.

String-type initialization values for numeric or boolean types are allowed and are parsed.

Returns:
default value

setInitializationValue

public void setInitializationValue(java.lang.Object initializationValue)
Sets the variable type.

Variables are scalar values and primitive or boxed Java builtin types are accepted.

Parameters:
initializationValue - the default value or null if the default value is null

isConstant

public boolean isConstant()
Returns true if the variable is a constant, or false for regular variable.

Returns:
true for constant, false for variable

setConstant

public void setConstant(boolean constant)
Set to true to indicate that the variable is a constant, or false for regular variable.

Parameters:
constant - true for constant, false for variable

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