public class SBExpressionPropertyDescriptor extends SBPropertyDescriptor
Note that the Operator property may be of any Java primitive type, and the engine will attempt to coerce the result of the expression to the property. Care should be taken to ensure the expression evaluates to a type compatible with the property type used. For example:
max(input1.timeout,60.0)
", given that
timeout
is a field of type double, is compatible with an Operator property
of type doubleinput1.targetExecutionVenue
", given that
targetExecutionVenue
is a field of type string, is compatible with an Operator property
of type StringList
or Tuple
, but in those cases the read method for the
property must have an SBExpressionPropertyType
annotation to specify the exact
StreamBase type of the property.SBPropertyDescriptor
,
SBExpressionPropertyType
SBPropertyDescriptor.SingleValueSetter
_expressionInputPort, NOT_AN_EXPRESSION
Constructor and Description |
---|
SBExpressionPropertyDescriptor(PropertyDescriptor pd,
Class<?> beanClass,
int expressionInputPort)
Copy a property descriptor.
|
SBExpressionPropertyDescriptor(String propertyName,
Class<?> beanClass,
int expressionInputPort)
Construct a property descriptor.
|
SBExpressionPropertyDescriptor(String propertyName,
Class<?> beanClass,
String readMethodName,
String writeMethodName,
int expressionInputPort)
Construct a property descriptor with non-standard read/write method names.
|
deprecated, description, displayName, getExpressionInputPort, getMaskDisplay, getMultiLine, getUIHints, isDeprecated, isExpression, isRequired, mask, multiline, optional, setDeprecated, setMaskStringDisplay, setMultiLine, setRequired, setUIHints
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
public SBExpressionPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, int expressionInputPort) throws IntrospectionException
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyreadMethodName
- the name of the method used to read the propertywriteMethodName
- the name of the method used to write the propertyexpressionInputPort
- the input port that this expression is valid againstIntrospectionException
- if introspection failspublic SBExpressionPropertyDescriptor(String propertyName, Class<?> beanClass, int expressionInputPort) throws IntrospectionException
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyexpressionInputPort
- the input port that this expression is valid againstIntrospectionException
- if introspection failspublic SBExpressionPropertyDescriptor(PropertyDescriptor pd, Class<?> beanClass, int expressionInputPort) throws IntrospectionException
pd
- a property descriptor to copy frombeanClass
- the operator class containing the propertyexpressionInputPort
- the input port that this expression is valid againstIntrospectionException
- if introspection fails