org.eclipse.core.internal.resources
Class LinkDescription
java.lang.Object
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.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
LinkDescription
public LinkDescription()
LinkDescription
public LinkDescription(IResource linkedResource,
java.net.URI location)
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