Class AbstractAnnotationCheck

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the check is enabled.
    • Constructor Detail

      • AbstractAnnotationCheck

        public AbstractAnnotationCheck()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the check is enabled.
        Parameters:
        value - true if enabled
      • getEnabled

        public boolean getEnabled()
        Returns whether the check is enabled.
        Returns:
        true if enabled
      • enabledTipText

        public String enabledTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • generateQuickInfo

        protected String generateQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Returns:
        null if no info available, otherwise short string
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(LocatedObjects objects)
        Hook method for checks.
        Parameters:
        objects - the annotations to check
        Returns:
        null if checks passed, otherwise error message
      • doCheckAnnotations

        protected abstract String doCheckAnnotations​(LocatedObjects objects)
        Checks the annotations.
        Parameters:
        objects - the annotations to check
        Returns:
        null if checks passed, otherwise error message
      • checkAnnotations

        public String checkAnnotations​(LocatedObjects objects)
        Checks the annotations.
        Specified by:
        checkAnnotations in interface AnnotationCheck
        Parameters:
        objects - the annotations to check
        Returns:
        null if checks passed, otherwise error message
      • doFindInvalidAnnotationsIndices

        protected abstract int[] doFindInvalidAnnotationsIndices​(LocatedObjects objects)
        Checks the annotations and returns the indices of the invalid ones.
        Parameters:
        objects - the annotations to check
        Returns:
        the invalid indices, 0-length array if no invalid ones
      • findInvalidAnnotationsIndices

        public int[] findInvalidAnnotationsIndices​(LocatedObjects objects)
        Checks the annotations and returns the indices of the invalid ones.
        Specified by:
        findInvalidAnnotationsIndices in interface AnnotationCheck
        Parameters:
        objects - the annotations to check
        Returns:
        the invalid indices, 0-length array if no invalid ones