Package com.apama.event.parser
Class AnyFieldType
- java.lang.Object
-
- com.apama.event.parser.FieldType<AnyFieldValue>
-
- com.apama.event.parser.AnyFieldType
-
public class AnyFieldType extends FieldType<AnyFieldValue>
Represents the Apamaany
type, for which values are specified as asAnyFieldValue
objects.
-
-
Constructor Summary
Constructors Constructor Description AnyFieldType()
Constructor for FieldTypes use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertAssignable(java.lang.Object c, java.lang.String fieldName)
verifies if the Object is assignable to this field typeAnyFieldValue
defaultValue()
Get the default value for AnyFieldType which is an empty 'any'.AnyFieldValue
parse(java.lang.String value)
Convert a value of this type from the format used in Apama event strings, into an object of type T, the same type as the containedType parameter when creating this any field type.
-
-
-
Method Detail
-
assertAssignable
public void assertAssignable(java.lang.Object c, java.lang.String fieldName)
verifies if the Object is assignable to this field type- Specified by:
assertAssignable
in classFieldType<AnyFieldValue>
-
parse
public AnyFieldValue parse(java.lang.String value) throws ParserRuntimeException
Convert a value of this type from the format used in Apama event strings, into an object of type T, the same type as the containedType parameter when creating this any field type.- Overrides:
parse
in classFieldType<AnyFieldValue>
- Parameters:
value
- the value to parse.- Returns:
- an object specifying the value of the string that was parsed.
- Throws:
ParserRuntimeException
- If the specified value string cannot be parsed.
-
defaultValue
public AnyFieldValue defaultValue()
Get the default value for AnyFieldType which is an empty 'any'.- Specified by:
defaultValue
in classFieldType<AnyFieldValue>
- Returns:
- empty 'any'
-
-