public static enum UnitStatus.Code extends Enum<UnitStatus.Code>
Enum Constant and Description |
---|
BAD_SYNTAX
Cannot be parsed as VOUnit.
|
DEPRECATED
Contains some units deprecated in VOUnits standard.
|
GUESSED_UNIT
Parsed as VOUnit but contains unknown though guessable units.
|
OK
Conforms to VOUnits standard.
|
PARSE_ERROR
Cannot be parsed as VOUnit (shouldn't happen).
|
UNKNOWN_UNIT
Parsed as VOUnit but contains unknown base units.
|
USAGE
Violates VOUnit usage constraints.
|
WHITESPACE
Legal VOUnit except that it contains illegal whitespace.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isError()
Indicates whether this code represents an invalid VOUnit
specification.
|
boolean |
isWarning()
Indicates whether this status represents a UCD value which
may deserve attention, but is not actually a standards violation.
|
static UnitStatus.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitStatus.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitStatus.Code OK
public static final UnitStatus.Code DEPRECATED
public static final UnitStatus.Code UNKNOWN_UNIT
public static final UnitStatus.Code GUESSED_UNIT
public static final UnitStatus.Code BAD_SYNTAX
public static final UnitStatus.Code PARSE_ERROR
public static final UnitStatus.Code USAGE
public static final UnitStatus.Code WHITESPACE
public static UnitStatus.Code[] values()
for (UnitStatus.Code c : UnitStatus.Code.values()) System.out.println(c);
public static UnitStatus.Code 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 nullpublic boolean isError()
public boolean isWarning()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.