org.gradle.tooling.model.eclipse
Interface EclipseProject

All Superinterfaces:
Element, HasGradleProject, HierarchicalEclipseProject, HierarchicalElement, Model

public interface EclipseProject
extends HierarchicalEclipseProject, HasGradleProject

The complete model of an Eclipse project.

Note that the names of Eclipse projects are unique, and can be used as an identifier for the project.


Method Summary
 DomainObjectSet<? extends EclipseProject> getChildren()
          Returns the child elements, or the empty set if there are no child elements.
 DomainObjectSet<? extends ExternalDependency> getClasspath()
          Returns the external dependencies which make up the classpath of this project.
 GradleProject getGradleProject()
          The gradle project that is associated with this project.
 EclipseProject getParent()
          Returns the parent of this element, or null if there is no parent.
 File getProjectDirectory()
          Returns the project directory for this project.
 
Methods inherited from interface org.gradle.tooling.model.eclipse.HierarchicalEclipseProject
getLinkedResources, getProjectDependencies, getSourceDirectories
 
Methods inherited from interface org.gradle.tooling.model.Element
getDescription, getName
 

Method Detail

getParent

EclipseProject getParent()
Returns the parent of this element, or null if there is no parent.

Specified by:
getParent in interface HierarchicalEclipseProject
Specified by:
getParent in interface HierarchicalElement
Returns:
The parent of this element, or null if there is no parent.

getChildren

DomainObjectSet<? extends EclipseProject> getChildren()
Returns the child elements, or the empty set if there are no child elements.

Specified by:
getChildren in interface HierarchicalEclipseProject
Specified by:
getChildren in interface HierarchicalElement
Returns:
The child elements, or the empty set if there are no child elements.

getGradleProject

GradleProject getGradleProject()
The gradle project that is associated with this project. Typically, a single eclipse project corresponds to a single gradle project.

See HasGradleProject

Specified by:
getGradleProject in interface HasGradleProject
Returns:
associated gradle project
Since:
1.0-milestone-5

getClasspath

DomainObjectSet<? extends ExternalDependency> getClasspath()
Returns the external dependencies which make up the classpath of this project.

Returns:
The dependencies. Returns an empty set if the project has no external dependencies.

getProjectDirectory

File getProjectDirectory()
Returns the project directory for this project.

Specified by:
getProjectDirectory in interface HierarchicalEclipseProject
Returns:
The project directory.