net.sf.ant4eclipse.tools
Class ResolvedPathEntry

java.lang.Object
  extended by net.sf.ant4eclipse.tools.ResolvedPathEntry

public class ResolvedPathEntry
extends java.lang.Object

Encapsultes a resolved classpath entry.


Constructor Summary
ResolvedPathEntry(EclipseProject eclipseProject, EclipseClasspathEntry entry)
          Creates a new instance of type ResolvedClasspathEntry.
ResolvedPathEntry(EclipseProject eclipseProject, java.io.File entry)
          Creates a new instance of type ResolvedClasspathEntry.
ResolvedPathEntry(EclipseProject eclipseProject, RuntimeClasspathEntry entry)
          Creates a new instance of type ResolvedClasspathEntry.
ResolvedPathEntry(java.io.File entry)
          Creates a new instance of type ResolvedClasspathEntry.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 EclipseProject getDeclaringProject()
          Returns the eclipse project that has defined this classpath entry
 java.lang.String getPath()
          Returns the path that describes the classpath entry.
 java.io.File getResolvedEntryAsFile()
          Returns the resolved classpath entry.
 boolean hasDeclaringProject()
          Returns true if this entry is related to a declaring project.
 int hashCode()
          
 boolean isContainer()
          Returns true, if the classpath entry is not resolved and is of type container.
 boolean isResolved()
          Returns whether the classpath entry is resolved.
 boolean isVariable()
          Returns true, if the classpath entry is not resolved and is of type variable.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolvedPathEntry

public ResolvedPathEntry(java.io.File entry)
Creates a new instance of type ResolvedClasspathEntry.

Parameters:
entry - the file that is represented by the classpath entry.

ResolvedPathEntry

public ResolvedPathEntry(EclipseProject eclipseProject,
                         java.io.File entry)
Creates a new instance of type ResolvedClasspathEntry.

Parameters:
eclipseProject - The project in which this classpath has been defined
entry - the file that is represented by the classpath entry.

ResolvedPathEntry

public ResolvedPathEntry(EclipseProject eclipseProject,
                         EclipseClasspathEntry entry)
Creates a new instance of type ResolvedClasspathEntry.

If the EclipseClasspathEntry is of type RCE_CONTAINER it's path will be interpreted as a reference to an ant Path-object.

Parameters:
eclipseProject - The project in which this classpath has been defined
entry - the classpath entry that should be resolved.

ResolvedPathEntry

public ResolvedPathEntry(EclipseProject eclipseProject,
                         RuntimeClasspathEntry entry)
Creates a new instance of type ResolvedClasspathEntry.

If the RuntimeClasspathEntry is of type RCE_CONTAINER it's path will be interpreted as a reference to an ant Path-object.

Parameters:
eclipseProject - The project in which this classpath has been defined
entry - the runtime classpath entry that should be resolved.
Method Detail

getResolvedEntryAsFile

public final java.io.File getResolvedEntryAsFile()
Returns the resolved classpath entry. If the classpath entry is not resolved (isResolved() returns false, an exception will be thrown.

Returns:
Returns the resolvedEntry.

isResolved

public final boolean isResolved()
Returns whether the classpath entry is resolved.

Returns:
Returns whether the classpath entry is resolved.

isContainer

public final boolean isContainer()
Returns true, if the classpath entry is not resolved and is of type container.

Returns:
Returns true, if the classpath entry is not resolved and is of type container.

isVariable

public final boolean isVariable()
Returns true, if the classpath entry is not resolved and is of type variable.

Returns:
Returns true, if the classpath entry is not resolved and is of type variable.

getPath

public final java.lang.String getPath()
Returns the path that describes the classpath entry.

Returns:
Returns the path that describes the classpath entry.

getDeclaringProject

public EclipseProject getDeclaringProject()
Returns the eclipse project that has defined this classpath entry


hasDeclaringProject

public boolean hasDeclaringProject()
Returns true if this entry is related to a declaring project.

Returns:
true <=> This entry is related to a declaring project.

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object