Class 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.Map<java.lang.String,​uk.ac.starlink.vo.VocabTerm> getRetrievedTerms()
      Lazily acquires vocabulary values by reading the resource at the vocabulary URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface AttributeChecker
        Parameters:
        nameValue - the value of the attribute to check
        handler - the element on which attValue appears
      • getRetrievedTerms

        public java.util.Map<java.lang.String,​uk.ac.starlink.vo.VocabTerm> getRetrievedTerms()
        Lazily acquires vocabulary values by reading the resource at the vocabulary URI.
        Returns:
        term map retrieved from online vocabulary; in case of a read error this may be empty, but not null