Class AttributeConverter


  • public class AttributeConverter
    extends Object
    Utility class to convert Object to the desired type using Attribute.Type
    • Constructor Detail

      • AttributeConverter

        public AttributeConverter()
    • Method Detail

      • getPropertyValue

        public static Object getPropertyValue​(Object propertyValue,
                                              io.siddhi.query.api.definition.Attribute.Type attributeType)
        Convert the given object to the given type.
        Parameters:
        propertyValue - the actual object
        attributeType - the desired data type
        Returns:
        the converted object
      • getPropertyValue

        public Object getPropertyValue​(String propertyValue,
                                       io.siddhi.query.api.definition.Attribute.Type attributeType)
        Convert the given object to the given type.
        Parameters:
        propertyValue - the actual object
        attributeType - the desired data type
        Returns:
        the converted object