Class AnyFieldType

    • 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 type
      AnyFieldValue 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AnyFieldType

        public AnyFieldType()
        Constructor for FieldTypes use only. To create an Any FieldType, see FieldTypes.ANY.
    • 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 class FieldType<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 class FieldType<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.