Enum CmsRestrictionRule.MatchType
- java.lang.Object
-
- java.lang.Enum<CmsRestrictionRule.MatchType>
-
- org.opencms.jsp.search.config.parser.simplesearch.preconfiguredrestrictions.CmsRestrictionRule.MatchType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsRestrictionRule.MatchType>
- Enclosing class:
- CmsRestrictionRule
public static enum CmsRestrictionRule.MatchType extends java.lang.Enum<CmsRestrictionRule.MatchType>
Match type of the restriction, i.e., how the values should be treated.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsRestrictionRule.MatchType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsRestrictionRule.MatchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXACT
public static final CmsRestrictionRule.MatchType EXACT
Quote the value to match
-
DEFAULT
public static final CmsRestrictionRule.MatchType DEFAULT
Take the values as is.
-
POSTFIX
public static final CmsRestrictionRule.MatchType POSTFIX
Adds * in the beginning of each word
-
PREFIX
public static final CmsRestrictionRule.MatchType PREFIX
Adds * in the end of each word
-
INFIX
public static final CmsRestrictionRule.MatchType INFIX
Adds * in the beginning and end of each word
-
-
Method Detail
-
values
public static CmsRestrictionRule.MatchType[] 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 (CmsRestrictionRule.MatchType c : CmsRestrictionRule.MatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsRestrictionRule.MatchType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-