Package org.ametys.cms.filter
Enum ContentFilter.ContextLanguage
- java.lang.Object
-
- java.lang.Enum<ContentFilter.ContextLanguage>
-
- org.ametys.cms.filter.ContentFilter.ContextLanguage
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentFilter.ContextLanguage>
- Enclosing interface:
- ContentFilter
public static enum ContentFilter.ContextLanguage extends Enum<ContentFilter.ContextLanguage>
The context language
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ContextLanguage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentFilter.ContextLanguage
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentFilter.ContextLanguage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENT
public static final ContentFilter.ContextLanguage CURRENT
Constant to search only in the current sitemap
-
ALL
public static final ContentFilter.ContextLanguage ALL
Constant to search in all sitemap
-
OTHERS
public static final ContentFilter.ContextLanguage OTHERS
Constant to search in other sitemaps
-
-
Constructor Detail
-
ContextLanguage
private ContextLanguage()
-
-
Method Detail
-
values
public static ContentFilter.ContextLanguage[] 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 (ContentFilter.ContextLanguage c : ContentFilter.ContextLanguage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentFilter.ContextLanguage 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 nameNullPointerException
- if the argument is null
-
-