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

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

public class JavaProjectRole
extends AbstractProjectRole

Implements the java role of a project.


Field Summary
static java.lang.String JAVA_NATURE
           
static java.lang.String NAME
           
 
Constructor Summary
JavaProjectRole()
          Creates a new instance of type JavaProjectRole
 
Method Summary
 void addEclipseClasspathEntry(EclipseClasspathEntry classpathEntry)
          Sets the specified classpath entries.
 boolean equals(java.lang.Object o)
          
 EclipseClasspathEntry getDefaultOutputFolder()
          Returns the default output folder for this project.
 EclipseClasspathEntry[] getEclipseClasspathEntries()
          Returns the eclipse classpath entries.
 EclipseClasspathEntry[] getEclipseClasspathEntries(int entrykind)
          Returns a list of EclipseClasspathEntry of a specifiy kind.
 boolean hasEclipseClasspathEntries()
          Returns whether classpath entries are set or not.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class net.sf.ant4eclipse.model.project.AbstractProjectRole
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JAVA_NATURE

public static final java.lang.String JAVA_NATURE
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

JavaProjectRole

public JavaProjectRole()
Creates a new instance of type JavaProjectRole

Method Detail

hasEclipseClasspathEntries

public boolean hasEclipseClasspathEntries()
Returns whether classpath entries are set or not.

Returns:
Returns whether classpath entries are set or not.

getEclipseClasspathEntries

public EclipseClasspathEntry[] getEclipseClasspathEntries()
Returns the eclipse classpath entries.

Returns:
returns the eclipse classpath entries.

getEclipseClasspathEntries

public EclipseClasspathEntry[] getEclipseClasspathEntries(int entrykind)
Returns a list of EclipseClasspathEntry of a specifiy kind.

Parameters:
entrykind - The kind of the desired entries.
Returns:
A list of entries providing entries of the desired type.

addEclipseClasspathEntry

public void addEclipseClasspathEntry(EclipseClasspathEntry classpathEntry)
Sets the specified classpath entries.

Parameters:
classpathEntry - the eclipse classpath entries to set.

getDefaultOutputFolder

public EclipseClasspathEntry getDefaultOutputFolder()
Returns the default output folder for this project.

Returns:
the default output folder for this project.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractProjectRole

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class AbstractProjectRole