Class VersionDetail


  • public abstract class VersionDetail
    extends java.lang.Object
    Contains VOTable version-specific validation logic.
    Since:
    22 Nov 2012
    Author:
    Mark Taylor
    • Constructor Detail

      • VersionDetail

        protected VersionDetail​(uk.ac.starlink.votable.VOTableVersion version)
        Constructor.
        Parameters:
        version - VOTable version to which this detail applies
    • Method Detail

      • getAttributeCheckers

        public java.util.Map<java.lang.String,​AttributeChecker> getAttributeCheckers​(java.lang.String voTagname)
        Returns a map of attribute checkers suitable for processing elements of a given name.
        Parameters:
        voTagname - unqualified element name in VOTable namespace
        Returns:
        String->AttributeChecker map for checking attributes
      • createElementHandler

        public ElementHandler createElementHandler​(java.lang.String voTagname,
                                                   VotLintContext context)
        Constructs a new ElementHandler for a given local element name.
        Parameters:
        voTagname - unqualified element name in VOTable namespace
        context - processing context
        Returns:
        handler to process an element of type name
      • createElementHandler

        protected abstract ElementHandler createElementHandler​(java.lang.String voTagname)
        Constructs a new element handler for an element with the given unqualified VOTable tag name.
        Parameters:
        voTagname - unqualified element name
        Returns:
        element handler, or null if the element is unknown
      • createAttributeCheckers

        protected abstract java.util.Map<java.lang.String,​AttributeChecker> createAttributeCheckers​(java.lang.String voTagname)
        Constructs a map of attribute checkers suitable for processing elements of a given name.
        Parameters:
        voTagname - unqualified element name in VOTable namespace
        Returns:
        String->AttributeChecker map for checking attributes
      • getInstance

        public static VersionDetail getInstance​(VotLintContext context)
        Returns a VersionDetail instance suitable for use with the given context.
        Parameters:
        context - validation context
        Returns:
        instance, not null