Package org.coordinatekit.crf.annotator
Enum Class FeatureAvailability
- All Implemented Interfaces:
Serializable,Comparable<FeatureAvailability>,Constable
Which display-feature sources an
AnnotatorSequence carries: the four reachable
combinations of key features and verbose features.
This captures what a sequence has; it is distinct from the user-interface's notion of
what is currently shown. Key features back the key-feature view and verbose features
back the all-features view, so a sequence with NONE offers no feature views at all.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoth key and verbose display features are available.Only key display features are available.Neither key nor verbose display features are available.Only verbose display features are available. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether key display features are available, enabling the key-feature view.static FeatureAvailabilityReturns the enum constant of this class with the specified name.static FeatureAvailability[]values()Returns an array containing the constants of this enum class, in the order they are declared.booleanReturns whether verbose display features are available, enabling the all-features view.
-
Enum Constant Details
-
NONE
Neither key nor verbose display features are available. -
KEY_ONLY
Only key display features are available. -
VERBOSE_ONLY
Only verbose display features are available. -
BOTH
Both key and verbose display features are available.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
keyAvailable
public boolean keyAvailable()Returns whether key display features are available, enabling the key-feature view. -
verboseAvailable
public boolean verboseAvailable()Returns whether verbose display features are available, enabling the all-features view.- Returns:
trueforVERBOSE_ONLYandBOTH
-