Enum Class ProductFilter
- All Implemented Interfaces:
Serializable,Comparable<ProductFilter>,Constable
An enum representing the products that we can filter beans by.
This enum is used not only within this library, but may also be used by
any other library/plugin that needs a list of products to filter by.
Example: Atlassian Connect uses this enum to filter out product-specific
connect modules. Moral of the story: Don't remove this.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetPerProductFile(String fileStem) Returns a qualified version of the given filename stem, generated by appending a product-specific suffix to it.static booleanhasProduct(String productName) Indicates whether this enum contains the given product.static ProductFilterReturns the enum constant of this class with the specified name.static ProductFilter[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
-
JIRA
-
CONFLUENCE
-
BAMBOO
-
BITBUCKET
-
CROWD
-
FECRU
-
REFAPP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
hasProduct
Indicates whether this enum contains the given product. Equivalent to callingvalueOf(String)and seeing whether anIllegalArgumentExceptionis thrown.- Parameters:
productName- the uppercase product name, or the literal StringALL- Returns:
- see description
-
getPerProductFile
Returns a qualified version of the given filename stem, generated by appending a product-specific suffix to it.- Parameters:
fileStem- the file stem to which to append the suffix- Returns:
- the complete file name
-