Package uk.ac.starlink.ttools.votlint
Class VocabChecker
- java.lang.Object
-
- uk.ac.starlink.ttools.votlint.VocabChecker
-
- All Implemented Interfaces:
AttributeChecker
public class VocabChecker extends java.lang.Object implements AttributeChecker
Checks an attribute that is defined by the content of an IVOA Vocabulary.- Since:
- 25 Apr 2019
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static VocabChecker
REFPOSITION
Instance for vocabulary at http://www.ivoa.net/rdf/refposition.static VocabChecker
TIMESCALE
Instance for vocabulary at http://www.ivoa.net/rdf/timescale.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(java.lang.String nameValue, ElementHandler handler)
Performs a syntactic and/or semantic check on an attribute value for a given element.java.util.Collection<java.lang.String>
getRetrievedValues()
Lazily acquires vocabulary values by reading the resource at the vocabulary URI.
-
-
-
Field Detail
-
TIMESCALE
public static final VocabChecker TIMESCALE
Instance for vocabulary at http://www.ivoa.net/rdf/timescale.
-
REFPOSITION
public static final VocabChecker REFPOSITION
Instance for vocabulary at http://www.ivoa.net/rdf/refposition.
-
-
Method Detail
-
check
public void check(java.lang.String nameValue, ElementHandler handler)
Description copied from interface:AttributeChecker
Performs a syntactic and/or semantic check on an attribute value for a given element. Anything worthy of comment should be logged through handler's context.- Specified by:
check
in interfaceAttributeChecker
- Parameters:
nameValue
- the value of the attribute to checkhandler
- the element on which attValue appears
-
getRetrievedValues
public java.util.Collection<java.lang.String> getRetrievedValues()
Lazily acquires vocabulary values by reading the resource at the vocabulary URI.- Returns:
- values retrieved from online vocabulary; in case of a read error this may be empty, but not null
-
-