Class UcdStatus
java.lang.Object
uk.ac.starlink.vo.UcdStatus
Categorises UCD validity.
The
getStatus(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 enumCharacterises UCD standards conformance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUcdStatus(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
-
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
-
getParser
public static UCDParser getParser()Returns the UCD parser used by this class.- Returns:
- parser
-