public enum RowRecogNFATypeEnum extends Enum<RowRecogNFATypeEnum>
Enum Constant and Description |
---|
ONE_OPTIONAL
For greedy '?' multiplicity.
|
ONE_OPTIONAL_RELUCTANT
For reluctant '?' multiplicity.
|
ONE_TO_MANY
For greedy '+' multiplicity.
|
ONE_TO_MANY_RELUCTANT
For reluctant '+' multiplicity.
|
SINGLE
For single multiplicity.
|
ZERO_TO_MANY
For greedy '*' multiplicity.
|
ZERO_TO_MANY_RELUCTANT
For reluctant '*' multiplicity.
|
Modifier and Type | Method and Description |
---|---|
static RowRecogNFATypeEnum |
fromString(String code,
String reluctantQuestion)
Inspect code and return enum for code.
|
String |
getOptionalPostfix()
Return postfix.
|
Boolean |
isGreedy()
Returns indicator if greedy or reluctant.
|
boolean |
isMultipleMatches()
Returns indicator if single or multiple matches.
|
boolean |
isOptional()
Returns indicator if optional matches.
|
static RowRecogNFATypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RowRecogNFATypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RowRecogNFATypeEnum SINGLE
public static final RowRecogNFATypeEnum ZERO_TO_MANY
public static final RowRecogNFATypeEnum ONE_TO_MANY
public static final RowRecogNFATypeEnum ONE_OPTIONAL
public static final RowRecogNFATypeEnum ZERO_TO_MANY_RELUCTANT
public static final RowRecogNFATypeEnum ONE_TO_MANY_RELUCTANT
public static final RowRecogNFATypeEnum ONE_OPTIONAL_RELUCTANT
public static RowRecogNFATypeEnum[] values()
for (RowRecogNFATypeEnum c : RowRecogNFATypeEnum.values()) System.out.println(c);
public static RowRecogNFATypeEnum 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 boolean isMultipleMatches()
public boolean isOptional()
public Boolean isGreedy()
public static RowRecogNFATypeEnum fromString(String code, String reluctantQuestion)
code
- to inspectreluctantQuestion
- null for greedy or questionmark for reluctantpublic String getOptionalPostfix()
Copyright © 2005–2022. All rights reserved.