Class JavaEnumPropertyDescriptor<T extends Enum<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:
  • 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 property
      beanClass - the operator class containing the property
      enumClass - 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 property
      beanClass - the operator class containing the property
      enumClass - the class for the enum
      validOptions - 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 property
      beanClass - the operator class containing the property
      valueSet - A subset of an enumeration to use as values. The set must not be empty.
      Throws:
      IntrospectionException - if introspection fails
      IllegalArgumentException - if valueSet is empty
      Since:
      6.4
  • Method Details

    • getEnumClass

      public Class<T> getEnumClass()
      Get enumeration class
      Returns:
      Enumeration class
    • getSetter

      protected com.streambase.sb.operator.parameter.SBPropertyDescriptor.Setter getSetter() throws TypecheckException
      Throws:
      TypecheckException