Class JavaEnumPropertyDescriptor<T extends Enum<T>>
java.lang.Object
java.beans.FeatureDescriptor
java.beans.PropertyDescriptor
com.streambase.sb.operator.parameter.SBPropertyDescriptor
com.streambase.sb.operator.parameter.EnumPropertyDescriptor
com.streambase.sb.operator.parameter.JavaEnumPropertyDescriptor<T>
- Type Parameters:
T
- Enumeration type
PropertyDescriptor for properties based on a Java Enum.
- Since:
- 6.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
SBPropertyDescriptor.SingleValueSetter
-
Field Summary
Fields inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
_expressionInputPort, NOT_AN_EXPRESSION
-
Constructor Summary
ConstructorDescriptionJavaEnumPropertyDescriptor
(String propertyName, Class<?> beanClass, Class<T> enumClass) Construct an enumerated property descriptor.JavaEnumPropertyDescriptor
(String propertyName, Class<?> beanClass, Class<T> enumClass, T... validOptions) Construct an enumerated property descriptor.JavaEnumPropertyDescriptor
(String propertyName, Class<?> beanClass, EnumSet<T> valueSet) Construct an enumerated property descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet enumeration classprotected com.streambase.sb.operator.parameter.SBPropertyDescriptor.Setter
Methods inherited from class com.streambase.sb.operator.parameter.EnumPropertyDescriptor
getValues, isValidValue, setValues
Methods inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
deprecated, description, displayName, getExpressionInputPort, getMaskDisplay, getMultiLine, getUIHints, isDeprecated, isExpression, isRequired, mask, multiline, optional, setDeprecated, setMaskStringDisplay, setMultiLine, setRequired, setUIHints
Methods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
-
Constructor Details
-
JavaEnumPropertyDescriptor
public JavaEnumPropertyDescriptor(String propertyName, Class<?> beanClass, Class<T> enumClass) throws IntrospectionException Construct an enumerated property descriptor.- Parameters:
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyenumClass
- the class for the enum- Throws:
IntrospectionException
- if introspection fails
-
JavaEnumPropertyDescriptor
@SafeVarargs public JavaEnumPropertyDescriptor(String propertyName, Class<?> beanClass, Class<T> enumClass, T... validOptions) throws IntrospectionException Construct an enumerated property descriptor.- Parameters:
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyenumClass
- the class for the enumvalidOptions
- the valid options for the drop-down. If absent, all.- Throws:
IntrospectionException
- if introspection fails
-
JavaEnumPropertyDescriptor
public JavaEnumPropertyDescriptor(String propertyName, Class<?> beanClass, EnumSet<T> valueSet) throws IntrospectionException, IllegalArgumentException Construct an enumerated property descriptor.- Parameters:
propertyName
- the name of the propertybeanClass
- the operator class containing the propertyvalueSet
- A subset of an enumeration to use as values. The set must not be empty.- Throws:
IntrospectionException
- if introspection failsIllegalArgumentException
- if valueSet is empty- Since:
- 6.4
-
-
Method Details
-
getEnumClass
Get enumeration class- Returns:
- Enumeration class
-
getSetter
protected com.streambase.sb.operator.parameter.SBPropertyDescriptor.Setter getSetter() throws TypecheckException- Throws:
TypecheckException
-