public enum ParameterTypeEnum extends java.lang.Enum<ParameterTypeEnum>
The following table shows the relationship between the Scenario Service, EPL and Java type systems:
Scenario Service Type | EPL Type | Java Type |
string | string | java.lang.String |
integer | integer | java.lang.Long |
float | float | java.lang.Double |
? | decimal | DecimalFieldValue |
boolean | boolean | java.lang.Boolean |
enumeration | string | java.lang.String |
Enum Constant and Description |
---|
BOOLEAN |
DECIMAL |
ENUMERATION |
FLOAT |
INTEGER |
STRING |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDecodeString(java.lang.String value,
ParameterTypeEnum paramType)
Deprecated.
This method is not intended for public use, and will be removed in a future release.
|
static java.lang.Object |
decodeString(java.lang.String value,
ParameterTypeEnum paramType)
Deprecated.
This method is not intended for public use, and will be removed in a future release.
|
static java.lang.Object |
displayStringToValue(java.lang.String display,
ParameterTypeEnum type)
Convert a locale-sensitive display string for a scenario parameter value of the specified type into a Java object
representing its value (e.g.
|
static ParameterTypeEnum |
fromScenarioType(java.lang.String stype)
Deprecated.
This method is not intended for public use, and will be removed in a future release.
|
java.lang.Class<?> |
getJavaType()
Get the Java type (class) that is used to represent parameters of this type.
|
FieldType<?> |
getMonitorScriptFieldType()
Get the EPL type that is used to hold values of this scenario parameter type.
|
java.lang.String |
getMonitorScriptType()
Get the String name of the EPL type that is used to hold values of this scenario parameter type.
|
java.lang.String |
getScenarioType()
Get the type as returned from the correlator.
|
java.lang.String |
toString()
Override the toString() method of the Object class to return the scenario type.
|
static ParameterTypeEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParameterTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static java.lang.String |
valueToDisplayString(java.lang.Object value)
Convert a Java object representing a value of this type to a locale-sensitive display string suitable for
use in user interfaces.
|
public static final ParameterTypeEnum STRING
public static final ParameterTypeEnum INTEGER
public static final ParameterTypeEnum FLOAT
public static final ParameterTypeEnum DECIMAL
public static final ParameterTypeEnum BOOLEAN
public static final ParameterTypeEnum ENUMERATION
public static ParameterTypeEnum[] values()
for (ParameterTypeEnum c : ParameterTypeEnum.values()) System.out.println(c);
public static ParameterTypeEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getScenarioType()
public java.lang.String getMonitorScriptType()
public FieldType<?> getMonitorScriptFieldType()
public java.lang.Class<?> getJavaType()
public java.lang.String toString()
getScenarioType()
.toString
in class java.lang.Enum<ParameterTypeEnum>
public static java.lang.String valueToDisplayString(java.lang.Object value)
value
- Must not be null.displayStringToValue(String, ParameterTypeEnum)
to convert back to the raw value. Never null. The exact format of these
display strings is not guaranteed and may change between releases.public static java.lang.Object displayStringToValue(java.lang.String display, ParameterTypeEnum type) throws java.lang.IllegalArgumentException
display
- The locale-sensitive display string representation of a value, e.g. "1,000,000.5".
If null, returns null.type
- The type of this parameter, which controls how the conversion happens.valueToDisplayString(Object)
to convert back.java.lang.IllegalArgumentException
- If the specified display string cannot be parsed for this type.@Deprecated public static ParameterTypeEnum fromScenarioType(java.lang.String stype) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the parameter does not represent a valid type.@Deprecated public static java.lang.Object decodeString(java.lang.String value, ParameterTypeEnum paramType)
EventParser
package for more classes to format and parse EPL strings). User interface code should normally use user-friendly
locale-sensitive parsing methods instead.
If the value cannot be parsed, a warning is logged and a default value is returned; this method should not throw exceptions.
value
- the stringified value to be decoded, in the format used by the Apama EPL.paramType
- the type identifier to indicate which type to convert to.getMonitorScriptFieldType()
@Deprecated public static boolean canDecodeString(java.lang.String value, ParameterTypeEnum paramType)
value
- the stringified value to be decoded, in the format used by the Apama Correlator.paramType
- the type identifier to indicate which type to convert to.Submit a bug or feature
Copyright (c) 2013-2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.