Class UCD
java.lang.Object
uk.ac.starlink.table.UCD
- All Implemented Interfaces:
Comparable<UCD>
Describes Uniform Column Descriptors.
This class knows about all currently defined UCDs, the
Unified Column
Descriptors defined by the CDS.
Each UCD has a unique ID by which it is known, and a description
giving a brief explanation of what it means.
UCDs are obtained from the static getUCD(String) method; any
two UCDs with the same ID are guaranteed to be the same object.
Source of information
The UCD ids and descriptions are read from a list at the resourceUCD_DEFINITIONS_LOC. If this resource is unavailable at
runtime, a warning will be written to the logging system.
The original source of this text file was
the CDS List of
all UCDs.- Author:
- Mark Taylor (Starlink)
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintImplements theComparableinterface, comparing alphabetically by ID.Returns the textual description of the UCD.getID()Returns the ID string of this UCD.static UCDReturns the UCD object corresponding to a given UCD ID string.getUCDs()Returns an iterator over all the known UCDs.toString()Returns the UCD id string.
-
Field Details
-
UCD_DEFINITIONS_LOC
- See Also:
-
-
Method Details
-
getID
Returns the ID string of this UCD.- Returns:
- the ID string (capitals, underscores and numbers only)
-
getDescription
Returns the textual description of the UCD.- Returns:
- a few words describing the meaning of this UCD
-
compareTo
Implements theComparableinterface, comparing alphabetically by ID.- Specified by:
compareToin interfaceComparable<UCD>
-
getUCD
Returns the UCD object corresponding to a given UCD ID string. Returnsnullif no UCD with the given name is known.- Parameters:
id- the string used to identify the UCD (it will have surrounding spaces trimmed)- Returns:
- the UCD object corresponding to
id, ornullif none can be found
-
getUCDs
-
toString
-