Package uk.ac.starlink.vo
Class UcdStatus
java.lang.Object
uk.ac.starlink.vo.UcdStatus
Categorises UCD validity.
The
getStatus(java.lang.String)
method tests a UCD string to determine whether
it conforms to standards, and returns an object that reports this.
UCD1+ and UCD1 are recognised.
Gregory Mantelet's Ucidy library is used for UCD1+ parsing.
- Since:
- 9 Jul 2021
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Characterises UCD standards conformance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UcdStatus
(UcdStatus.Code code, String message) Constructor. -
Method Summary
-
Constructor Details
-
UcdStatus
Constructor.- Parameters:
code
- status codemessage
- human-readable message supplying additional information
-
-
Method Details
-
getCode
Returns a status element indicating conformance.- Returns:
- code
-
getMessage
Returns a human-readable message supplying additional information. The returned text does not in general report the original UCD string.- Returns:
- message, or null if nothing to say (OK status)
-
getStatus
Returns the status for a given UCD string.- Parameters:
ucd
- UCD text- Returns:
- status, or null for blank input
-
getParser
public static ari.ucidy.UCDParser getParser()Returns the UCD parser used by this class.- Returns:
- parser
-