public class UnitStatus extends Object
getStatus(java.lang.String)
method tests a unit string to determine whether
it conforms to the VOUnits standard.
Norman Gray's Unity library is used for VOUnits parsing.
Modifier and Type | Class and Description |
---|---|
static class |
UnitStatus.Code
Characterises VOUnits standard conformance.
|
Modifier | Constructor and Description |
---|---|
protected |
UnitStatus(UnitStatus.Code code,
String message)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
UnitStatus.Code |
getCode()
Returns a status element indicating conformance.
|
String |
getMessage()
Returns a human-readable message supplying additional information.
|
static UnitStatus |
getStatus(String unit)
Returns the status for a given unit string.
|
protected UnitStatus(UnitStatus.Code code, String message)
code
- status codemessage
- human-readable message supplying additional informationpublic UnitStatus.Code getCode()
public String getMessage()
public static UnitStatus getStatus(String unit)
unit
- unit textCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.