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
public class JavaEnumPropertyDescriptor<T extends Enum<T>> extends EnumPropertyDescriptor
PropertyDescriptor for properties based on a Java Enum.- Since:
 - 6.4
 - See Also:
 SBPropertyDescriptor
 
- 
- 
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
Constructors Constructor Description JavaEnumPropertyDescriptor(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>getEnumClass()Get enumeration classprotected SBPropertyDescriptor.SettergetSetter()- 
Methods inherited from class com.streambase.sb.operator.parameter.EnumPropertyDescriptor
getValues, 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 Detail
- 
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 Detail
- 
getSetter
protected SBPropertyDescriptor.Setter getSetter() throws TypecheckException
- Throws:
 TypecheckException
 
 - 
 
 -