org.schmant.project.java
Class OtherJavaProjectClasspathEntry

java.lang.Object
  extended by org.schmant.project.java.OtherJavaProjectClasspathEntry
All Implemented Interfaces:
JavaProjectClasspathEntry

public class OtherJavaProjectClasspathEntry
extends Object
implements JavaProjectClasspathEntry

A classpath entry that is a dependency on another Java project.

Since:
0.5
Author:
Karl Gustafsson

Constructor Summary
OtherJavaProjectClasspathEntry(String name, ProjectRepository pr)
          Create the classpath entry.
 
Method Summary
 boolean equals(Object o)
           
 JavaProject getProject()
          Get the project that the owner of this classpath entry depends on.
 String getProjectName()
          Get the name of the project.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtherJavaProjectClasspathEntry

public OtherJavaProjectClasspathEntry(String name,
                                      ProjectRepository pr)
Create the classpath entry.

Parameters:
name - The name of the project that the owner of this classpath entry depends on.
pr - The project repository.
Method Detail

getProjectName

public String getProjectName()
Get the name of the project.

Returns:
The name of the project.

getProject

public JavaProject getProject()
Get the project that the owner of this classpath entry depends on.

Returns:
The Java project.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object