# Class Project

java.lang.Object
org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject
org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
org.gradle.plugins.ide.eclipse.model.Project

All Implemented Interfaces:
  `org.gradle.plugins.ide.internal.generator.generator.PersistableConfigurationObject`

Direct Known Subclasses:
  `NonRenamableProject`

public class Project extends org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject
Represents the customizable elements of an eclipse project file. (via XML hooks everything is customizable).

Since:
  1.0

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `PROJECT_FILE_NAME`
  The project file name.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Project(org.gradle.internal.xml.XmlTransformer xmlTransformer)`
  Creates a new `Project`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `configure(EclipseProject eclipseProject)`
  Configure.
  `boolean`
  `equals(Object o)`
  `List<BuildCommand>`
  `getBuildCommands()`
  The build commands to be added to this Eclipse project.
  `String`
  `getComment()`
  A comment used for the eclipse project
  `protected String`
  `getDefaultResourceName()`
  `Set<Link>`
  `getLinkedResources()`
  The linkedResources to be added to this Eclipse project.
  `String`
  `getName()`
  The name used for the name of the eclipse project
  `List<String>`
  `getNatures()`
  The natures to be added to this Eclipse project.
  `Set<String>`
  `getReferencedProjects()`
  The referenced projects of this Eclipse project.
  `Set<ResourceFilter>`
  `getResourceFilters()`
  The resource filters of this Eclipse project.
  `int`
  `hashCode()`
  `protected void`
  `load(Node xml)`
  `void`
  `setBuildCommands(List<BuildCommand> buildCommands)`
  Sets the build commands.
  `void`
  `setComment(String comment)`
  Sets the comment.
  `void`
  `setLinkedResources(Set<Link> linkedResources)`
  Sets the linked resources.
  `void`
  `setName(String name)`
  Sets the name.
  `void`
  `setNatures(List<String> natures)`
  Sets the natures.
  `void`
  `setReferencedProjects(Set<String> referencedProjects)`
  Sets the referenced projects.
  `void`
  `setResourceFilters(Set<ResourceFilter> resourceFilters)`
  Sets the resource filters of this Eclipse project.
  `protected void`
  `store(Node xml)`
  `String`
  `toString()`

  ### Methods inherited from class org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject

  `findFirstChildNamed, findFirstChildWithAttributeValue, findFirstWithAttributeValue, findOrCreateFirstChildNamed, findOrCreateFirstChildWithAttributeValue, getChildren, getXml, load, store, transformAction, transformAction`

  ### Methods inherited from class org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject

  `load, loadDefaults, store`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### PROJECT_FILE_NAME

    public static final String PROJECT_FILE_NAME
    The project file name.
    Since:
      1.0
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### Project

    public Project(org.gradle.internal.xml.XmlTransformer xmlTransformer)
    Creates a new `Project`.
    Since:
      1.0

- ## Method Details

  - ### getDefaultResourceName

    protected String getDefaultResourceName()
    Specified by:
      `getDefaultResourceName` in class `org.gradle.plugins.ide.internal.generator.AbstractPersistableConfigurationObject`

  - ### getName

    public String getName()
    The name used for the name of the eclipse project
    Since:
      1.0

  - ### setName

    public void setName(String name)
    Sets the name.
    Since:
      1.0

  - ### getComment

    public String getComment()
    A comment used for the eclipse project
    Since:
      1.0

  - ### setComment

    public void setComment(String comment)
    Sets the comment.
    Since:
      1.0

  - ### getReferencedProjects

    public Set<String> getReferencedProjects()
    The referenced projects of this Eclipse project.
    Since:
      1.0

  - ### setReferencedProjects

    public void setReferencedProjects(Set<String> referencedProjects)
    Sets the referenced projects.
    Since:
      1.0

  - ### getNatures

    public List<String> getNatures()
    The natures to be added to this Eclipse project.
    Since:
      1.0

  - ### setNatures

    public void setNatures(List<String> natures)
    Sets the natures.
    Since:
      1.0

  - ### getBuildCommands

    public List<BuildCommand> getBuildCommands()
    The build commands to be added to this Eclipse project.
    Since:
      1.0

  - ### setBuildCommands

    public void setBuildCommands(List<BuildCommand> buildCommands)
    Sets the build commands.
    Since:
      1.0

  - ### getLinkedResources

    public Set<Link> getLinkedResources()
    The linkedResources to be added to this Eclipse project.
    Since:
      1.0

  - ### setLinkedResources

    public void setLinkedResources(Set<Link> linkedResources)
    Sets the linked resources.
    Since:
      1.0

  - ### getResourceFilters

    public Set<ResourceFilter> getResourceFilters()
    The resource filters of this Eclipse project.
    Since:
      3.5

  - ### setResourceFilters

    public void setResourceFilters(Set<ResourceFilter> resourceFilters)
    Sets the resource filters of this Eclipse project.
    Since:
      3.5

  - ### configure

    public Object configure(EclipseProject eclipseProject)
    Configure.
    Since:
      1.0

  - ### load

    protected void load(Node xml)
    Overrides:
      `load` in class `org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject`

  - ### store

    protected void store(Node xml)
    Overrides:
      `store` in class `org.gradle.plugins.ide.internal.generator.XmlPersistableConfigurationObject`

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`