Apama API Reference for .NET  10.15.4.1
Apama.Event.Parser.ContextFieldType Class Reference

Represents the Apama context type, for which values are specified as String objects. More...

Inherits Apama.Event.Parser.FieldType< T >.

Public Member Functions

override string DefaultValue ()
 Get the default value for Context field type. More...
 
override string Parse (string value)
 Parse a token according to syntax rules of this type. More...
 
- Public Member Functions inherited from Apama.Event.Parser.FieldType< T >
virtual string Format (Object value)
 Format the given value in MonitorScript representation. More...
 
abstract object GetDefaultValue ()
 Get the default value for this field type. More...
 
Field< T > NewField (string name)
 Creates a new Field object with the specified name, using this field type. More...
 
abstract T Parse (String value)
 Parse a token according to syntax rules of this type. More...
 
abstract object ParseObject (String value)
 Parse a value from this type's Apama event string representation into the .NET object representation of the value. More...
 
override string ToString ()
 For Internal use only More...
 

Properties

static ContextFieldType Type [get]
 Singleton instance of this type More...
 
- Properties inherited from Apama.Event.Parser.FieldType< T >
virtual string Name [get]
 Return the name of this type. More...
 
Type TypeClass [get]
 Return the .NET type used to express values of this Apama field type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Apama.Event.Parser.FieldType< T >
 FieldType (string typeName, Type clazz)
 Create a new FieldType. More...
 

Detailed Description

Represents the Apama context type, for which values are specified as String objects.

This class cannot be instantiated explicitly, but should be referenced using FieldTypes.Context.

Member Function Documentation

◆ DefaultValue()

override string Apama.Event.Parser.ContextFieldType.DefaultValue ( )
virtual

Get the default value for Context field type.

Returns
context(0,"main",true)

Implements Apama.Event.Parser.FieldType< T >.

◆ Parse()

override string Apama.Event.Parser.ContextFieldType.Parse ( string  value)

Parse a token according to syntax rules of this type.

Parameters
valueThe value to parse
Returns
An object of context type
Exceptions
ParserRuntimeExceptionIf value is not the right type

Property Documentation

◆ Type

ContextFieldType Apama.Event.Parser.ContextFieldType.Type
staticget

Singleton instance of this type