Provides the functionality to parse System.String objects into Apama Apama.Event.Event objects, for any EventType registered with the parser.
More...
|
static string | GetTypeName (string eventText) |
| Method to extract and return the event type name from an event string. More...
|
|
Provides the functionality to parse System.String objects into Apama Apama.Event.Event objects, for any EventType registered with the parser.
The EventParser is thread-safe.
See the Apama.Event.Parser.EventType documentation for an example of how event strings may be parsed using this class
Apama.Event.Parser.EventParser.EventParser |
( |
params EventType[] |
eventTypes | ) |
|
Creates a new event parser instance.
- Parameters
-
eventTypes | Optional parameter for automatically registering a set of initial event types with the parser. |
virtual void Apama.Event.Parser.EventParser.DeregisterEventType |
( |
EventType |
type | ) |
|
|
virtual |
Deregister the given event type from being a valid type this parser. recognizes.
- Parameters
-
type | The event type to parse |
virtual EventType Apama.Event.Parser.EventParser.GetEventType |
( |
string |
name | ) |
|
|
virtual |
Retrieve an Event Type by name.
- Parameters
-
- Returns
- The EventType or null if unknown
virtual FieldType Apama.Event.Parser.EventParser.GetType |
( |
string |
name | ) |
|
|
virtual |
Retrieve a Type by name.
- Parameters
-
- Returns
- The Type or null if unknown
static string Apama.Event.Parser.EventParser.GetTypeName |
( |
string |
eventText | ) |
|
|
static |
Method to extract and return the event type name from an event string.
Note that this method will NOT parse the entire event, only the name will be extracted from the eventText.
- Parameters
-
eventText | The event string to process |
- Returns
- The type name or null if the name cannot be extracted
Parse an event string.
- Parameters
-
eventText | The string representation of the event |
- Returns
- The resulting Event object
- Exceptions
-
virtual void Apama.Event.Parser.EventParser.RegisterEventType |
( |
EventType |
type | ) |
|
|
virtual |
Register the given event type as being a valid type this parser recognizes.
- Parameters
-
type | The event type to parse |
virtual void Apama.Event.Parser.EventParser.RegisterType |
( |
FieldType |
type | ) |
|
|
virtual |
Register the given type as being a valid type this parser recognizes.
- Parameters
-
EventParser Apama.Event.Parser.EventParser.DefaultParser |
|
staticget |