Class BuildResource

java.lang.Object
com.iizigo.project.BuildResource
All Implemented Interfaces:
Comparable<BuildResource>

public class BuildResource extends Object implements Comparable<BuildResource>
The class that holds the resources to build, files or folders, has a Comparable interface implemented so it can be sorted by path name A-Z.
Author:
Christopher Mindus
  • Method Details

    • hasBeenReplacedAndMoved

      public boolean hasBeenReplacedAndMoved()
      Checks if file has been replaced and moved to another location.
    • compareTo

      public int compareTo(BuildResource br)
      Compares two resources, resource path names A-Z.
      Specified by:
      compareTo in interface Comparable<BuildResource>
      Parameters:
      br - Another build object.
      Returns:
      Comparison -1 to 1.
    • toString

      public String toString()
      A String representation.
      Overrides:
      toString in class Object
    • isFolderSettingsFile

      public boolean isFolderSettingsFile()
      Verifies if this is a FolderSettingsProp file ".iiziFolder".
    • getString

      public static String getString(org.eclipse.core.resources.IResourceDelta delta)
      Formats a string for flags of IResourceDelta kind, type and flags as ", replaced, ...".
    • getFlagString

      public static String getFlagString(int flags)
      Formats a string for flags of IResourceDelta type and flags as ", replaced, ...".