net.sf.ant4eclipse.model.project.javaproject
Class EclipseClasspathEntry

java.lang.Object
  extended by net.sf.ant4eclipse.model.project.javaproject.EclipseClasspathEntry

public final class EclipseClasspathEntry
extends java.lang.Object

Encapsulates an entry in a Java project classpath.


Field Summary
static int CPE_CONTAINER
          the constant for a Container-ClasspathEntry
static int CPE_LIBRARY
          the constant for a Library-ClasspathEntry
static int CPE_OUTPUT
          the constant for an Output-ClasspathEntry
static int CPE_PROJECT
          the constant for a EclipseProject-ClasspathEntry
static int CPE_SOURCE
          the constant for a Source-ClasspathEntry
static int CPE_VARIABLE
          the constant for a Variable-ClasspathEntry
 
Constructor Summary
EclipseClasspathEntry(int entryKind, java.lang.String path)
          Creates a new instance of type EclipseClasspathEntry
EclipseClasspathEntry(int entryKind, java.lang.String path, java.lang.String output, boolean exported)
          Creates a new instance of type EclipseClasspathEntry
EclipseClasspathEntry(java.lang.String entryKind, java.lang.String path)
          Creates a new instance of type EclipseClasspathEntry
EclipseClasspathEntry(java.lang.String entryKind, java.lang.String path, boolean exported)
          Creates a new instance of type EclipseClasspathEntry
EclipseClasspathEntry(java.lang.String entryKind, java.lang.String path, java.lang.String output)
          Creates a new instance of type EclipseClasspathEntry
EclipseClasspathEntry(java.lang.String entryKind, java.lang.String path, java.lang.String output, boolean exported)
          Creates a new instance of type EclipseClasspathEntry
 
Method Summary
 boolean equals(java.lang.Object o)
          
 int getEntryKind()
          Returns the entryKind.
 java.lang.String getOutputLocation()
          Returns the output location.
 java.lang.String getPath()
          Returns the path.
 int hashCode()
          
 boolean hasOutputLocation()
          Returns whether or not the entry has an output location.
 boolean isExported()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CPE_CONTAINER

public static final int CPE_CONTAINER
the constant for a Container-ClasspathEntry

See Also:
Constant Field Values

CPE_LIBRARY

public static final int CPE_LIBRARY
the constant for a Library-ClasspathEntry

See Also:
Constant Field Values

CPE_PROJECT

public static final int CPE_PROJECT
the constant for a EclipseProject-ClasspathEntry

See Also:
Constant Field Values

CPE_SOURCE

public static final int CPE_SOURCE
the constant for a Source-ClasspathEntry

See Also:
Constant Field Values

CPE_VARIABLE

public static final int CPE_VARIABLE
the constant for a Variable-ClasspathEntry

See Also:
Constant Field Values

CPE_OUTPUT

public static final int CPE_OUTPUT
the constant for an Output-ClasspathEntry

See Also:
Constant Field Values
Constructor Detail

EclipseClasspathEntry

public EclipseClasspathEntry(java.lang.String entryKind,
                             java.lang.String path)
Creates a new instance of type EclipseClasspathEntry

Parameters:
entryKind -
path -

EclipseClasspathEntry

public EclipseClasspathEntry(java.lang.String entryKind,
                             java.lang.String path,
                             java.lang.String output)
Creates a new instance of type EclipseClasspathEntry

Parameters:
entryKind -
path -
output -

EclipseClasspathEntry

public EclipseClasspathEntry(java.lang.String entryKind,
                             java.lang.String path,
                             boolean exported)
Creates a new instance of type EclipseClasspathEntry

Parameters:
entryKind -
path -
exported -

EclipseClasspathEntry

public EclipseClasspathEntry(java.lang.String entryKind,
                             java.lang.String path,
                             java.lang.String output,
                             boolean exported)
Creates a new instance of type EclipseClasspathEntry

Parameters:
entryKind -
path -
output -
exported -

EclipseClasspathEntry

public EclipseClasspathEntry(int entryKind,
                             java.lang.String path)
Creates a new instance of type EclipseClasspathEntry

Parameters:
entryKind -
path -

EclipseClasspathEntry

public EclipseClasspathEntry(int entryKind,
                             java.lang.String path,
                             java.lang.String output,
                             boolean exported)
Creates a new instance of type EclipseClasspathEntry

Parameters:
entryKind -
path -
output -
exported -
Method Detail

getEntryKind

public final int getEntryKind()
Returns the entryKind.

Returns:
the entryKind.

getPath

public final java.lang.String getPath()
Returns the path.

Returns:
the path.

getOutputLocation

public final java.lang.String getOutputLocation()
Returns the output location.

Returns:
the output location.

hasOutputLocation

public final boolean hasOutputLocation()
Returns whether or not the entry has an output location.

Returns:
true <=> This entry has an output location.

isExported

public final boolean isExported()
Returns:
Returns the exported.

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