Apama API Reference for .NET  9.10.0.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Apama.Services.Scenario.ParameterTypeHelper Class Reference

A convenience helper class for Apama.Services.Scenario.ParameterType. More...

Static Public Member Functions

static bool CanConvertString (string value, ParameterType parameterType)
 (deprecated) 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)
 (deprecated) 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)
 (deprecated) Static utility method to determine the enum value from the scenario version of a type. More...
 
static FieldType ToMonitorScriptFieldType (this ParameterType value)
 Get the EPL type that is used to hold values of this scenario parameter type. More...
 
static string ToMonitorScriptType (ParameterType value)
 Get the String name of the EPL type that is used to hold values of this scenario parameter type. More...
 
static string ToScenarioType (ParameterType value)
 (deprecated) Get the type as defined in the Scenario definition file (sdf), and which is also returned from the correlator. More...
 

Detailed Description

A convenience helper class for Apama.Services.Scenario.ParameterType.

Member Function Documentation

static bool Apama.Services.Scenario.ParameterTypeHelper.CanConvertString ( string  value,
ParameterType  parameterType 
)
static

(deprecated) 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.

Deprecated - This method is not intended for public use, and will be removed in a future release.

Parameters
valuethe stringified value to be decoded, in the format used by the Apama Correlator.
parameterTypethe type identifier to indicate which type to convert to. If None is specified, an exception will be thrown.
Returns
true if it can be decoded, false otherwise.
static object Apama.Services.Scenario.ParameterTypeHelper.ConvertString ( string  value,
ParameterType  parameterType 
)
static

(deprecated) Utility method to convert from the EPL string representation of a parameter value to a .NET object, based on its type identifier.

Deprecated - This method is not intended for public use, and will be removed in a future release.

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
valuethe stringified value to be decoded, in the format used by the Apama EPL.
parameterTypethe 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.
static ParameterType Apama.Services.Scenario.ParameterTypeHelper.FromScenarioType ( string  value)
static

(deprecated) Static utility method to determine the enum value from the scenario version of a type.

Deprecated - This method is not intended for public use, and will be removed in a future release.

Returns
One of the static predefined instances of this class, or null for any error case.
Exceptions
ArgumentExceptionIf the parameter does not represent a valid type.
static FieldType Apama.Services.Scenario.ParameterTypeHelper.ToMonitorScriptFieldType ( this ParameterType  value)
static

Get the EPL type that is used to hold values of this scenario parameter type.

Parameters
valueThe scenario parameter type.
Returns
A valid FieldType. Never null.
static string Apama.Services.Scenario.ParameterTypeHelper.ToMonitorScriptType ( ParameterType  value)
static

Get the String name of the EPL type that is used to hold values of this scenario parameter type.

Returns
a string that specifies the MonitorScript type, e.g. "string".
static string Apama.Services.Scenario.ParameterTypeHelper.ToScenarioType ( ParameterType  value)
static

(deprecated) Get the type as defined in the Scenario definition file (sdf), and which is also returned from the correlator.

Deprecated - This method is not intended for public use, and will be removed in a future release.

Returns
a string that specifies the Scenario type, e.g. "enumeration".
Submit a bug or feature
Copyright (c) 2013-2016 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.