org.gradle.tooling.model.eclipse
Interface HierarchicalEclipseProject

All Superinterfaces:
Element, HierarchicalElement, Model
All Known Subinterfaces:
EclipseProject

public interface HierarchicalEclipseProject
extends HierarchicalElement

Represents the basic information about an Eclipse project.


Method Summary
 DomainObjectSet<? extends HierarchicalEclipseProject> getChildren()
          Returns the child elements.
 DomainObjectSet<? extends EclipseLinkedResource> getLinkedResources()
          Returns the linked resources for this project.
 HierarchicalEclipseProject getParent()
          Returns the parent of this element, if any.
 DomainObjectSet<? extends EclipseProjectDependency> getProjectDependencies()
          Returns the project dependencies for this project.
 File getProjectDirectory()
          Returns the project directory for this project.
 DomainObjectSet<? extends EclipseSourceDirectory> getSourceDirectories()
          Returns the source directories for this project.
 
Methods inherited from interface org.gradle.tooling.model.Element
getDescription, getName
 

Method Detail

getParent

HierarchicalEclipseProject getParent()
Returns the parent of this element, if any.

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

getChildren

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

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

getProjectDependencies

DomainObjectSet<? extends EclipseProjectDependency> getProjectDependencies()
Returns the project dependencies for this project.

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

getSourceDirectories

DomainObjectSet<? extends EclipseSourceDirectory> getSourceDirectories()
Returns the source directories for this project.

Returns:
The source directories. Returns an empty set if the project has no source directories.

getLinkedResources

DomainObjectSet<? extends EclipseLinkedResource> getLinkedResources()
                                                                    throws UnsupportedMethodException
Returns the linked resources for this project.

Returns:
The linked resources.
Throws:
UnsupportedMethodException - When the target Gradle version does not support this information. You can safely catch ignore this exception and query the model for other information.
Since:
1.0-milestone-4

getProjectDirectory

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

Returns:
The project directory.