Enum LabelExtensionVisibilityKey

    • Field Detail

      • VALID_EXPRESSIONS

        public static final Pattern VALID_EXPRESSIONS
        A regex that matches all correct visibility declarations: a comma separated list (spaces permitted) of true, false, a name of one of the dialog constants or ! and the name of one of the dialog constants, case-insensitive.
    • Method Detail

      • values

        public static LabelExtensionVisibilityKey[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LabelExtensionVisibilityKey c : LabelExtensionVisibilityKey.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LabelExtensionVisibilityKey valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isVisible

        public static Boolean isVisible​(@Nullable
                                        String value,
                                        @Nullable
                                        LabelExtensionVisibilityKey assistant)
        Checks whether the item is visible; returns null if the rule doesn't say whether it is.