Class BuildResource

  • All Implemented Interfaces:
    java.lang.Comparable<BuildResource>

    public class BuildResource
    extends java.lang.Object
    implements java.lang.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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intcompareTo​(BuildResource br)
      Compares two resources, resource path names A-Z.
      static java.lang.StringgetFlagString​(int flags)
      Formats a string for flags of IResourceDelta type and flags as ", replaced, ...".
      static java.lang.StringgetString​(org.eclipse.core.resources.IResourceDelta delta)
      Formats a string for flags of IResourceDelta kind, type and flags as ", replaced, ...".
      booleanhasBeenReplacedAndMoved()
      Checks if file has been replaced and moved to another location.
      booleanisFolderSettingsFile()
      Verifies if this is a FolderSettingsProp file ".iiziFolder".
      java.lang.StringtoString()
      A String representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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 java.lang.Comparable<BuildResource>
        Parameters:
        br - Another build object.
        Returns:
        Comparison -1 to 1.
      • toString

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

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

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

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