Package org.ametys.cms.search.query
Enum Class CommentQuery.CommentInclusion
java.lang.Object
java.lang.Enum<CommentQuery.CommentInclusion>
org.ametys.cms.search.query.CommentQuery.CommentInclusion
- All Implemented Interfaces:
Serializable
,Comparable<CommentQuery.CommentInclusion>
,java.lang.constant.Constable
- Enclosing class:
- CommentQuery
The type (validated, non validated or both) of comments to include for
CommentQuery
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequest only contents with non validated-commentsRequest only contents with validated commentsRequest only contents with both validated and non-validated comments -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CommentQuery.CommentInclusion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALIDATED_AND_NON_VALIDATED
Request only contents with both validated and non-validated comments -
VALIDATED
Request only contents with validated comments -
NON_VALIDATED
Request only contents with non validated-comments
-
-
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
-