Modifier and Type | Method and Description |
---|---|
static java.util.Optional<MTVariant> |
extract(java.lang.String text)
Extract the variant from the given string, if any
|
boolean |
isValidationFlag()
returns true if the variant is also a validation flag used in the user header block
|
static MTVariant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MTVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MTVariant STP
public static final MTVariant REMIT
public static final MTVariant RFDD
public static final MTVariant ISLFIN
public static final MTVariant COV
public static MTVariant[] values()
for (MTVariant c : MTVariant.values()) System.out.println(c);
public static MTVariant valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isValidationFlag()
public static java.util.Optional<MTVariant> extract(java.lang.String text)
text
- a text optionally containing a variant code