Class AbstractAnnotationCleaner

    • Field Detail

      • m_Enabled

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

      • AbstractAnnotationCleaner

        public AbstractAnnotationCleaner()
    • Method Detail

      • setEnabled

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

        public boolean getEnabled()
        Returns whether the data cleaner 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
      • doCleanAnnotations

        protected abstract LocatedObjects doCleanAnnotations​(LocatedObjects objects,
                                                             MessageCollection errors)
        Cleans the annotations.
        Parameters:
        objects - the annotations to clean
        errors - for recording errors
        Returns:
        the (potentially) cleaned annotations