public enum RgxGenOption extends Enum<RgxGenOption>
| Enum Constant and Description |
|---|
CASE_INSENSITIVE
Flag to use case insensitive matching.
|
INFINITE_PATTERN_REPETITION
For infinite patterns, such as
a+, a* and a{n,}, defines limit for the repetitions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanFromProperties(RgxGenProperties properties)
Convenience method.
|
String |
getDefault()
Get default value associated with the option
|
String |
getFromProperties(RgxGenProperties properties)
Get value from the properties object.
|
int |
getIntFromProperties(RgxGenProperties properties)
Convenience method.
|
String |
getKey()
Get unique identifier of the property
|
<T> void |
setInProperties(RgxGenProperties properties,
T value)
Associates
value for this option in the properties |
String |
toString() |
static RgxGenOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RgxGenOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RgxGenOption INFINITE_PATTERN_REPETITION
a+, a* and a{n,}, defines limit for the repetitions.public static final RgxGenOption CASE_INSENSITIVE
public static RgxGenOption[] values()
for (RgxGenOption c : RgxGenOption.values()) System.out.println(c);
public static RgxGenOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getKey()
public String getDefault()
public String getFromProperties(RgxGenProperties properties)
properties - object to get value frompublic <T> void setInProperties(RgxGenProperties properties, T value)
value for this option in the propertiesT - type of valueproperties - properties to add tovalue - a valuepublic int getIntFromProperties(RgxGenProperties properties)
properties - properties to get value frompublic boolean getBooleanFromProperties(RgxGenProperties properties)
properties - properties to get value frompublic String toString()
toString in class Enum<RgxGenOption>Copyright © 2022. All rights reserved.