Package uk.ac.starlink.vo
Enum Class UcdStatus.Code
- All Implemented Interfaces:
Serializable
,Comparable<UcdStatus.Code>
,Constable
- Enclosing class:
UcdStatus
Characterises UCD standards conformance.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUCD words violate UCD1+ sequence rules.Not a UCD1 and cannot be parsed according to UCD1+.Contains deprecated UCD1+ words.Contains apparently namespaced UCD words.Conforms to UCD1+ standard.Conforms to UCD1 standard.UCD1+ syntax but contains non-UCD1+ word.Is in VOX: namespace introduced by SIAv1. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isError()
Indicates whether this status represents a UCD value which violates known standards.boolean
Indicates whether this status represents a UCD value which may deserve attention, but is not actually a standards violation.static UcdStatus.Code
Returns the enum constant of this class with the specified name.static UcdStatus.Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Conforms to UCD1+ standard. -
UCD1
Conforms to UCD1 standard. -
VOX
Is in VOX: namespace introduced by SIAv1. -
BAD_SYNTAX
Not a UCD1 and cannot be parsed according to UCD1+. -
BAD_SEQUENCE
UCD words violate UCD1+ sequence rules. -
UNKNOWN_WORD
UCD1+ syntax but contains non-UCD1+ word. -
NAMESPACE
Contains apparently namespaced UCD words. -
DEPRECATED
Contains deprecated UCD1+ words.
-
-
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
-
isError
public boolean isError()Indicates whether this status represents a UCD value which violates known standards.- Returns:
- true for error status
-
isWarning
public boolean isWarning()Indicates whether this status represents a UCD value which may deserve attention, but is not actually a standards violation.- Returns:
- true for warning status
-