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.
 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, if any.
 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, if any.

Specified by:
getParent in interface HierarchicalEclipseProject
Specified by:
getParent in interface HierarchicalElement
Returns:
The parent, or null if it has no parent.

getChildren

DomainObjectSet<? extends EclipseProject> getChildren()
Returns the child elements.

Specified by:
getChildren in interface HierarchicalEclipseProject
Specified by:
getChildren in interface HierarchicalElement
Returns:
The child elements. Returns an empty set if it has no children.

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

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.