Represents the Apama optional
type, for which the contained types are specified as either PrimitiveFieldType<T> or ReferenceFieldType<T> objects.
More...
Inherits Apama.Event.Parser.FieldType< T >.
|
override OptionalT | DefaultValue () |
| Get the default value for Optional field type. More...
|
|
override OptionalT | Parse (string value) |
| Convert a value of this type from the format used in Apama event strings, into an object of type T or Nullable<T> depending on the containedType parameter when creating this optional field type. More...
|
|
override string | ToString () |
| The string representation of this object More...
|
|
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...
|
|
Represents the Apama optional
type, for which the contained types are specified as either PrimitiveFieldType<T> or ReferenceFieldType<T> objects.
This class should not be instantiated explicitly, but should be referenced using FieldTypes.Optional<T>(PrimitiveFieldType<T>) or FieldTypes.Optional<T>(ReferenceFieldType<T>) depending on the containedType parameter.
◆ DefaultValue()
◆ Parse()
Convert a value of this type from the format used in Apama event strings, into an object of type T or Nullable<T> depending on the containedType parameter when creating this optional field type.
- Parameters
-
- Returns
- An instance of Field type
- Exceptions
-
◆ ToString()
The string representation of this object
◆ ContainedType
Get the type of its containedType field.
- Returns
- The type of containedType
◆ Name
Return the name of this type.
- Returns
- The type name