Class EnumBean

    • Constructor Detail

      • EnumBean

        public EnumBean()
    • Method Detail

      • getEAnrede

        public EAnrede[] getEAnrede()
      • getELanguage

        public ELanguage[] getELanguage()
      • getENodeType

        public ENodeType[] getENodeType()
      • getELogLevel

        public ELogLevel[] getELogLevel()
      • getEAuthClientTypeConfigurable

        public EAuthClientType[] getEAuthClientTypeConfigurable()
      • getESystemDatenbankTypen

        public EDatenbankTyp[] getESystemDatenbankTypen()
      • getByModuleName

        public EModule getByModuleName​(String modulName)
      • getEnumValues

        @Deprecated
        public <T extends Enum<T>> T[] getEnumValues​(Class<T> enumClass)
        Deprecated.
        This returns the value in source code order, which may change at any time. Use getValuesByDisplayName(Class) etc. for alphabetical ordering. If you need a custom ordering, either declare the order via <f:selectItem> or via a custom bean method.
        Returns all enum values, in the order as declared in the Java source code.
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        enumClass - Type of the enum type.
        Returns:
        All enum values, in the order as declared in the Java source code.
      • getValuesByDisplayName

        public <T extends Enum<T> & INamedUiElementList<T> getValuesByDisplayName​(Map<?,​T> values)
        Returns all enum values, sorted by their display name. Should not be used in Java code, but is meant for XHTML pages in combination with p:importConstants. For Java code, use getValuesByDisplayName(Class).
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        values - A map with the enum values as keys.
        Returns:
        All enum values, sorted by INamedUiElement.getDisplayName(Locale).
      • getValuesByDisplayName

        public <T extends Enum<T> & INamedUiElementList<T> getValuesByDisplayName​(Class<T> enumType)
        Returns all enum values, sorted by their display name.
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        enumType - Type of the enum class.
        Returns:
        All enum values, sorted by INamedUiElement.getDisplayName(Locale).
      • getValuesByName

        public <T extends Enum<T>> List<T> getValuesByName​(Map<String,​T> values)
        Returns all enum values, sorted by their technical name. Should not be used in Java code, but is meant for XHTML pages in combination with p:importConstants. For Java code, use getValuesByName(Class).
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        values - A map with the enum values as keys.
        Returns:
        All enum values, sorted by Enum.name().
      • getValuesByName

        public <T extends Enum<T>> List<T> getValuesByName​(Class<T> enumType)
        Returns all enum values, sorted by their technical name.
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        enumType - Type of the enum class.
        Returns:
        All enum values, sorted by Enum.name().
      • getSelectItemsByDisplayName

        public <T extends Enum<T> & INamedUiElementList<SelectItemChoice<T>> getSelectItemsByDisplayName​(Map<?,​T> values)
        Returns all enum values as SelectItems, sorted by their display name. Should not be used in Java code, but is meant for XHTML pages in combination with p:importConstants. For Java code, use getSelectItemsByDisplayName(Class).
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        values - A map with the enum values as keys.
        Returns:
        All enum values as select items, sorted by INamedUiElement.getDisplayName(Locale). The label is the display name.
      • getSelectItemsByDisplayName

        public <T extends Enum<T> & INamedUiElementList<SelectItemChoice<T>> getSelectItemsByDisplayName​(T... values)
        Returns all enum values as SelectItems, in the given order. The display name is taken from INamedUiElement.getDisplayName(Locale).
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        values - A list of enum values.
        Returns:
        All enum values as select items, in the given order. The label is the display name.
      • getSelectItemsByDisplayName

        public <T extends Enum<T> & INamedUiElementList<SelectItemChoice<T>> getSelectItemsByDisplayName​(Class<T> enumType)
        Returns all enum values as SelectItems, sorted by their display name.
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        enumType - Type of the enum class.
        Returns:
        All enum values, sorted by INamedUiElement.getDisplayName(Locale). The label is the display name.
      • getSelectItemsByName

        public <T extends Enum<T>> List<SelectItemChoice<T>> getSelectItemsByName​(Map<String,​T> values)
        Returns all enum values as SelectItems, sorted by their technical name. Should not be used in Java code, but is meant for XHTML pages in combination with p:importConstants. For Java code, use getSelectItemsByName(Class).
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        values - A map with the enum values as keys.
        Returns:
        All enum values, sorted by Enum.name(). The label is the technical name.
      • getSelectItemsByName

        public <T extends Enum<T>> List<SelectItemChoice<T>> getSelectItemsByName​(Class<T> enumType)
        Returns all enum values as SelectItems, sorted by their technical name.
        Type Parameters:
        T - Type of the enum class.
        Parameters:
        enumType - Type of the enum class.
        Returns:
        All enum values, sorted by Enum.name(). The label is the technical name.