public enum Optionality extends java.lang.Enum<Optionality>
Enum Constant and Description |
---|
FORBIDDEN
A property is forbidden if an instance must not possess it;
it is an error if the instance has the property.
|
IGNORED
A property is ignored if an instance may or may not possess it;
if it possesses the property, the effect is as if it does not.
|
MANDATORY
A property is mandatory if an instance must possess it;
it is an error if it does not.
|
OPTIONAL
A property is optional if an instance may or may not possess it;
neither state is an error.
|
Modifier and Type | Method and Description |
---|---|
static Optionality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Optionality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Optionality MANDATORY
public static final Optionality OPTIONAL
public static final Optionality IGNORED
public static final Optionality FORBIDDEN
public static Optionality[] values()
for (Optionality c : Optionality.values()) System.out.println(c);
public static Optionality 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 nullCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.