org.eclipse.core.internal.resources
Class LinkDescription

java.lang.Object
  extended by org.eclipse.core.internal.resources.LinkDescription
All Implemented Interfaces:
java.lang.Comparable

public class LinkDescription
extends java.lang.Object
implements java.lang.Comparable

Object for describing the characteristics of linked resources that are stored in the project description.


Constructor Summary
LinkDescription()
           
LinkDescription(IResource linkedResource, java.net.URI location)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare link descriptions in a way that sorts them topologically by path.
 boolean equals(java.lang.Object o)
           
 java.net.URI getLocationURI()
           
 org.eclipse.core.runtime.IPath getProjectRelativePath()
          Returns the project relative path of the resource that is linked.
 int getType()
           
 int hashCode()
           
 void setLocationURI(java.net.URI location)
           
 void setPath(org.eclipse.core.runtime.IPath path)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkDescription

public LinkDescription()

LinkDescription

public LinkDescription(IResource linkedResource,
                       java.net.URI location)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getLocationURI

public java.net.URI getLocationURI()

getProjectRelativePath

public org.eclipse.core.runtime.IPath getProjectRelativePath()
Returns the project relative path of the resource that is linked.

Returns:
the project relative path of the resource that is linked.

getType

public int getType()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setLocationURI

public void setLocationURI(java.net.URI location)

setPath

public void setPath(org.eclipse.core.runtime.IPath path)

setType

public void setType(int type)

compareTo

public int compareTo(java.lang.Object o)
Compare link descriptions in a way that sorts them topologically by path. This is important to ensure we process links in topological (breadth-first) order when reconciling links. See Project.reconcileLinks(ProjectDescription).

Specified by:
compareTo in interface java.lang.Comparable