Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 



org.eclipse.wst.server.core.model
Interface IModuleResourceDelta


public interface IModuleResourceDelta

A module resource delta.

Since:
1.0

Field Summary
static int ADDED
          Kind constant (value 1) for added resources.
static int CHANGED
          Kind constant (value 2) for changed resources.
static int NO_CHANGE
          Kind constant (value 0) for no change.
static int REMOVED
          Kind constant (value 3) for removed resources.
 
Method Summary
  IModuleResourceDelta[] getAffectedChildren ()
          Returns module resource deltas for all children of this resource which were added, removed, or changed.
 int getKind ()
          Returns the kind of this resource delta.
 IPath getModuleRelativePath ()
          Returns the module-relative path of this resource delta.
  IModuleResource getModuleResource ()
          Returns the module resource represented by this delta.
 

Field Detail

NO_CHANGE

static final int NO_CHANGE
Kind constant (value 0) for no change.

See Also:
getKind(), Constant Field Values

ADDED

static final int ADDED
Kind constant (value 1) for added resources.

See Also:
getKind(), Constant Field Values

CHANGED

static final int CHANGED
Kind constant (value 2) for changed resources.

See Also:
getKind(), Constant Field Values

REMOVED

static final int REMOVED
Kind constant (value 3) for removed resources.

See Also:
getKind(), Constant Field Values
Method Detail

getModuleResource


IModuleResource getModuleResource()
Returns the module resource represented by this delta.

Returns:
the corresponding module resource

getKind

int getKind()
Returns the kind of this resource delta. Normally, one of ADDED, REMOVED, CHANGED.

Returns:
the kind of this resource delta
See Also:
ADDED, REMOVED, CHANGED

getAffectedChildren


IModuleResourceDelta[] getAffectedChildren()
Returns module resource deltas for all children of this resource which were added, removed, or changed. Returns an empty array if there are no affected children.

This is a convenience method, fully equivalent to:

   getAffectedChildren(ADDED | REMOVED | CHANGED, IResource.NONE);
 

Returns:
the resource deltas for all affected children
See Also:
ADDED, REMOVED, CHANGED

getModuleRelativePath

IPath getModuleRelativePath()
Returns the module-relative path of this resource delta. Returns the empty path for resources in the module root.

A resource's module-relative path indicates the route from the module to the resource. Within a module, there is exactly one such path for any given resource. The returned path never has a trailing separator.

Returns:
the module-relative path of this resource delta
See Also:
IModuleResource.getModuleRelativePath()



 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire