Class AbstractDiscoveryHandler

    • Field Detail

      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression on the property path.
      • m_InvertMatching

        protected boolean m_InvertMatching
        whether to invert the matching sense.
    • Constructor Detail

      • AbstractDiscoveryHandler

        public AbstractDiscoveryHandler()
    • Method Detail

      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the regular expression to match the path against.
        Parameters:
        value - the regular expression
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression to match the path against.
        Returns:
        the regular expression
      • regExpTipText

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

        public void setInvertMatching​(boolean value)
        Sets whether to invert the matching sense of the path regexp.
        Parameters:
        value - true if to invert
      • getInvertMatching

        public boolean getInvertMatching()
        Returns whether to invert the matching sense of the path regexp.
        Returns:
        true if to invert
      • invertMatchingTipText

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

        protected abstract boolean handles​(Object obj)
        Checks whether this object is handled by this discovery handler.
        Parameters:
        obj - the object to check
        Returns:
        true if handled
      • handles

        public boolean handles​(PropertyPath.Path path,
                               Object obj)
        Checks whether this object is handled by this discovery handler.
        Parameters:
        path - the associated path
        obj - the object to check
        Returns:
        true if handled