Package com.iizigo.project
Class BuildResource
- java.lang.Object
- com.iizigo.project.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 Type Method Description int
compareTo(BuildResource br)
Compares two resources, resource path names A-Z.static java.lang.String
getFlagString(int flags)
Formats a string for flags of IResourceDelta type and flags as ", replaced, ...".static java.lang.String
getString(org.eclipse.core.resources.IResourceDelta delta)
Formats a string for flags of IResourceDelta kind, type and flags as ", replaced, ...".boolean
hasBeenReplacedAndMoved()
Checks if file has been replaced and moved to another location.boolean
isFolderSettingsFile()
Verifies if this is a FolderSettingsProp file ".iiziFolder".java.lang.String
toString()
A String representation.
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 interfacejava.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 classjava.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, ...".