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.JavaEnumPropertyDescriptor<T>
- Type Parameters:
T- Enumeration type
PropertyDescriptor for properties based on a Java Enum.
- Since:
- 6.4
- See Also:
-
Field Summary
Fields inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
expressionInputPort, NOT_AN_EXPRESSION -
Constructor Summary
ConstructorsConstructorDescriptionJavaEnumPropertyDescriptor(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
Methods inherited from class com.streambase.sb.operator.parameter.SBPropertyDescriptor
deprecated, description, displayName, getExpressionInputPort, getMaskDisplay, getMultiLine, getUIHints, isDeprecated, isExpression, isRequired, mask, migrateTo, multiline, optional, setDeprecated, setMaskStringDisplay, setMultiLine, setRequired, setUIHintsMethods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethodMethods 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
-
getValues
-