net.sf.ant4eclipse.model.project
Class LinkedResource

java.lang.Object
  extended by net.sf.ant4eclipse.model.project.LinkedResource

public class LinkedResource
extends java.lang.Object

Represents a "linked resource" of an eclipse project


Constructor Summary
LinkedResource(java.lang.String name, java.lang.String location, java.lang.String relative, int type)
          Creates a new instance of type LinkedResource.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 java.lang.String getLocation()
          The location of the linked resource.
 java.lang.String getName()
          The name of the linked resource.
 java.lang.String getRelativeLocation()
          Returns the location relative to the project.
 int getType()
          The type of the linked resource.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkedResource

public LinkedResource(java.lang.String name,
                      java.lang.String location,
                      java.lang.String relative,
                      int type)
Creates a new instance of type LinkedResource.

Parameters:
name -
location -
relative -
type -
Method Detail

getLocation

public java.lang.String getLocation()
The location of the linked resource.

Returns:
The location of the linked resource.

getName

public java.lang.String getName()
The name of the linked resource.

Returns:
The name of the linked resource.

getType

public int getType()
The type of the linked resource.

Returns:
The type of the linked resource.

getRelativeLocation

public java.lang.String getRelativeLocation()
Returns the location relative to the project.

Returns:
The location relative to the project. Maybe null in case no relative location can be calculated.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object