public static enum INN.Type extends Enum<INN.Type>
12
for individual usage
and 10
for juridical which are represented as INDIVIDUAL
and JURIDICAL
respectively.
Using ANY
allows to validate values that could either be personal
or juridical.
In such case, INN type would be determined by the length of the corresponding value.
Enum Constant and Description |
---|
ANY |
INDIVIDUAL |
JURIDICAL |
Modifier and Type | Method and Description |
---|---|
static INN.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static INN.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final INN.Type INDIVIDUAL
public static final INN.Type JURIDICAL
public static final INN.Type ANY
public static INN.Type[] values()
for (INN.Type c : INN.Type.values()) System.out.println(c);
public static INN.Type 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 nullCopyright © 2007-2021 Red Hat, Inc. All Rights Reserved