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

java.lang.Object
  extended by net.sf.ant4eclipse.model.project.javaproject.JavaRoleIdentifier
All Implemented Interfaces:
RoleIdentifier

public class JavaRoleIdentifier
extends java.lang.Object
implements RoleIdentifier

Identifier for a Java project role.


Constructor Summary
JavaRoleIdentifier()
           
 
Method Summary
 void applyRole(EclipseProject project)
          Adds a JavaProjectRole to the given project and parses the classpath
 boolean isRoleSupported(EclipseProject project)
          Returns ture is the given project has a JavaNature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaRoleIdentifier

public JavaRoleIdentifier()
Method Detail

isRoleSupported

public boolean isRoleSupported(EclipseProject project)
Returns ture is the given project has a JavaNature

Specified by:
isRoleSupported in interface RoleIdentifier
Parameters:
project - The project that shall be tested.
Returns:
true <=> The role is supported.

applyRole

public void applyRole(EclipseProject project)
               throws FileParserException
Adds a JavaProjectRole to the given project and parses the classpath

Specified by:
applyRole in interface RoleIdentifier
Parameters:
project - The project that shall be modified.
Throws:
FileParserException - Reading some information failed.