Package io.siddhi.core.util
Class AttributeConverter
- java.lang.Object
-
- io.siddhi.core.util.AttributeConverter
-
public class AttributeConverter extends Object
Utility class to convert Object to the desired type usingAttribute.Type
-
-
Constructor Summary
Constructors Constructor Description AttributeConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectgetPropertyValue(Object propertyValue, io.siddhi.query.api.definition.Attribute.Type attributeType)Convert the given object to the given type.ObjectgetPropertyValue(String propertyValue, io.siddhi.query.api.definition.Attribute.Type attributeType)Convert the given object to the given type.
-
-
-
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 objectattributeType- the desired data type- Returns:
- the converted object
-
-