Class AbstractNameUpdater<T>

    • Field Detail

      • m_OldName

        protected String m_OldName
        the old name.
      • m_NewName

        protected String m_NewName
        the new name.
    • Constructor Detail

      • AbstractNameUpdater

        public AbstractNameUpdater()
    • Method Detail

      • setOldName

        public void setOldName​(String value)
        Sets the old name to replace.
        Parameters:
        value - the old name
      • getOldName

        public String getOldName()
        Returns the old name to replace.
        Returns:
        the old name
      • oldNameTipText

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

        public void setNewName​(String value)
        Sets the new name that replaces the old one.
        Parameters:
        value - the new name
      • getNewName

        public String getNewName()
        Returns the new name that replaces the old one.
        Returns:
        the new name
      • newNameTipText

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

        protected abstract boolean isBaseClassMatch​(Class cls)
        Returns whether the base class that we're looking for to perform the replacement on is a match.
        Parameters:
        cls - the class to check
        Returns:
        true if a match
      • isNameMatch

        protected abstract boolean isNameMatch​(T old,
                                               String oldName)
        Checks whether the located object matches the old name that requires replacement.
        Parameters:
        old - the old object to check
        oldName - the old name to look for
        Returns:
        true if a match
      • getReplacement

        protected abstract T getReplacement​(T old,
                                            String newName)
        Returns the replacement object.
        Parameters:
        old - the old object
        newName - the new name to use
        Returns:
        the replacement object, null in case of error
      • createPrefix

        protected String createPrefix​(AbstractOption option)
        Generates a logging prefix based on the option.
        Parameters:
        option - the option to generate the prefix for
        Returns:
        the prefix
      • processArgumentOption

        protected void processArgumentOption​(AbstractArgumentOption option)
        Processes the specified argument option.
        Parameters:
        option - the option to process
      • canRecurse

        public boolean canRecurse​(Class cls)
        Returns whether the traverser can recurse the specified class (base class from a ClassOption).

        Default implementation does not recurse into Flow actors.
        Parameters:
        cls - the class to determine for whether recursing is possible or not
        Returns:
        true if to traverse the options recursively
      • canRecurse

        public boolean canRecurse​(Object obj)
        Returns whether the traverser can recurse the specified object.

        Default implementation always returns return value of canRecurse(Class).
        Parameters:
        obj - the Object to determine for whether recursing is possible or not
        Returns:
        true if to traverse the options recursively
      • canProcessClassOptions

        protected boolean canProcessClassOptions()
        Returns whether class options are treated as argument options and processed as well.

        Default implementation returns false.
        Returns:
        true if can be processed