Package com.apama.event.parser
Class DecimalFieldType
- java.lang.Object
-
- com.apama.event.parser.FieldType<DecimalFieldValue>
-
- com.apama.event.parser.DecimalFieldType
-
public class DecimalFieldType extends FieldType<DecimalFieldValue>
Represents the Apamadecimal
type, for which values are specified asDecimalFieldValue
objects.This class cannot be instantiated explicitly, but should be referenced using
FieldTypes.DECIMAL
.
-
-
Field Summary
Fields Modifier and Type Field Description static DecimalFieldType
TYPE
Singleton instance of this type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertAssignable(java.lang.Object c, java.lang.String fieldName)
This method is intended for internal use only and may be removed at any time - do not use.DecimalFieldValue
defaultValue()
Get the default value for Decimal field type.DecimalFieldValue
parse(java.lang.String value)
Convert a value of this type from the format used in Apama event strings, into a DecimalFieldValue object.
-
-
-
Field Detail
-
TYPE
public static final DecimalFieldType TYPE
Singleton instance of this type.
-
-
Method Detail
-
assertAssignable
public void assertAssignable(java.lang.Object c, java.lang.String fieldName)
Description copied from class:FieldType
This method is intended for internal use only and may be removed at any time - do not use.- Specified by:
assertAssignable
in classFieldType<DecimalFieldValue>
-
parse
public DecimalFieldValue parse(java.lang.String value) throws ParserRuntimeException
Convert a value of this type from the format used in Apama event strings, into a DecimalFieldValue object.- Overrides:
parse
in classFieldType<DecimalFieldValue>
- 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 DecimalFieldValue defaultValue()
Get the default value for Decimal field type.- Specified by:
defaultValue
in classFieldType<DecimalFieldValue>
- Returns:
- A DecimalFieldValue object representing decimal value 0.0
-
-