Class SwapObjects

    • Field Detail

      • m_ExactMatch

        protected boolean m_ExactMatch
        whether to use an exact match (incl options) or just the class name.
      • m_OldObjectClass

        protected transient Class m_OldObjectClass
        the class of the old object.
    • Constructor Detail

      • SwapObjects

        public SwapObjects()
    • Method Detail

      • setOldObject

        public void setOldObject​(BaseCommandLine value)
        Sets the old object to replace.
        Parameters:
        value - the old object
      • getOldObject

        public BaseCommandLine getOldObject()
        Returns the old object to replace.
        Returns:
        the old object
      • oldObjectTipText

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

        public void setExactMatch​(boolean value)
        Sets whether to use the complete command-line for comparison rather than just the class name.
        Parameters:
        value - true if to use exact match
      • getExactMatch

        public boolean getExactMatch()
        Returns whether to use the complete command-line for comparison rather than just the class name.
        Returns:
        true if to use exact match
      • exactMatchTipText

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

        public void setNewObject​(BaseCommandLine value)
        Sets the new object to replace with.
        Parameters:
        value - the new object
      • getNewObject

        public BaseCommandLine getNewObject()
        Returns the new object to replace with.
        Returns:
        the new object
      • newObjectTipText

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

        protected boolean canSwap​(PropertyPath.Path path,
                                  PropertyDescriptor desc,
                                  Object parent,
                                  Object child)
        Checks whether a swap can be made.
        Specified by:
        canSwap in class AbstractSwapObject
        Parameters:
        path - the current path
        desc - the property descriptor
        parent - the parent object to swap
        child - the child object to swap
        Returns:
        true if swap can be done