|
static bool | CanConvertString (string value, ParameterType parameterType) |
| Utility method to check whether a string representation of a parameter value (in the format used by the Correlator) can be converted to a .NET object, based on its type identifier. More...
|
|
static object | ConvertString (string value, ParameterType parameterType) |
| Utility method to convert from the EPL string representation of a parameter value to a .NET object, based on its type identifier. More...
|
|
static ParameterType | FromScenarioType (string value) |
| Static utility method to determine the enum value from the scenario version of a type. More...
|
|
static string | ToMonitorScriptType (ParameterType value) |
| Get the MonitorScript type that is used internally within the correlator for variable of this type. More...
|
|
static string | ToScenarioType (ParameterType value) |
| Get the type as defined in the Scenario definition file (sdf), and which is also returned from the correlator. More...
|
|
A convenience helper class for ParameterType
static object Apama.Services.Scenario.ParameterTypeHelper.ConvertString |
( |
string |
value, |
|
|
ParameterType |
parameterType |
|
) |
| |
|
static |
Utility method to convert from the EPL string representation of a parameter value to a .NET object, based on its type identifier.
Note that this method is for decoding strings in the format used by the Correlator (see also the Apama.Event.Parser namespace 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 does not throw an exception unless the parameterType is None.
- Parameters
-
value | the stringified value to be decoded, in the format used by the Apama EPL. |
parameterType | the type identifier to indicate which type to convert to. If None is specified, an exception will be thrown. |
- Returns
- an object of the correct type.