Package org.languagetool.rules.patterns
Enum XMLRuleHandler.RegexpMode
- java.lang.Object
-
- java.lang.Enum<XMLRuleHandler.RegexpMode>
-
- org.languagetool.rules.patterns.XMLRuleHandler.RegexpMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XMLRuleHandler.RegexpMode>
- Enclosing class:
- XMLRuleHandler
static enum XMLRuleHandler.RegexpMode extends java.lang.Enum<XMLRuleHandler.RegexpMode>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RegexpMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLRuleHandler.RegexpMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XMLRuleHandler.RegexpMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMART
public static final XMLRuleHandler.RegexpMode SMART
-
EXACT
public static final XMLRuleHandler.RegexpMode EXACT
-
-
Method Detail
-
values
public static XMLRuleHandler.RegexpMode[] 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 (XMLRuleHandler.RegexpMode c : XMLRuleHandler.RegexpMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XMLRuleHandler.RegexpMode 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
-
-