Class ActionChangeName

    • Field Detail

      • NAME_ACTION_REPLACE

        public static final java.lang.String NAME_ACTION_REPLACE
        The value that can be used with the 'image_name_action' parameter to indicate that the current image name should be replaced with the 'new_image_name' parameter value.
        See Also:
        Constant Field Values
      • NAME_ACTION_PREPEND

        public static final java.lang.String NAME_ACTION_PREPEND
        The value that can be used with the 'image_name_action' parameter to indicate that the 'new_image_name' parameter should be prepended to the current image name.
        See Also:
        Constant Field Values
      • NAME_ACTION_APPEND

        public static final java.lang.String NAME_ACTION_APPEND
        The value that can be used with the 'image_name_action' parameter to indicate that the 'new_image_name' parameter should be appended to the current image name.
        See Also:
        Constant Field Values
      • IMAGE_NAME_LABEL

        private static final java.lang.String IMAGE_NAME_LABEL
        The label to use for the parameter indicating the new image name.
        See Also:
        Constant Field Values
      • IMAGE_NAME_ACTION_LABEL

        private static final java.lang.String IMAGE_NAME_ACTION_LABEL
        The label to use for the parameter indicating whether the image name should be replaced, prepended to, or appended to.
        See Also:
        Constant Field Values
      • recordingNewImageName

        private java.lang.String recordingNewImageName
        The new name given to the image.
      • recordingOldImageName

        private java.lang.String recordingOldImageName
        The old image name.
    • Constructor Detail

      • ActionChangeName

        public ActionChangeName()
        Constructor for the dynamic instantiation and execution of the script action.
      • ActionChangeName

        public ActionChangeName​(ModelImage image,
                                java.lang.String oldImageName,
                                java.lang.String newImageName)
        Constructor used to record the ChangeName script action line.
        Parameters:
        image - The image whose name was changed.
        oldImageName - The old name of the image.
        newImageName - The new name given to the image (the image's current name).
    • Method Detail

      • setNewImageName

        public void setNewImageName​(java.lang.String name)
        Changes the image name which should be recorded as given to the input image.
        Parameters:
        name - The new name given to the input image.
      • setOldImageName

        public void setOldImageName​(java.lang.String name)
        Changes the old name of the input image.
        Parameters:
        name - The old name of the input image.