# Class Facet

java.lang.Object
org.gradle.plugins.ide.eclipse.model.Facet

@Deprecated public class Facet extends Object
Deprecated.
Will be removed in Gradle 10.
A project facet.

Since:
  1.0

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `Facet.FacetType`
  Deprecated.
  An `installed` facet is really present on an Eclipse project whereas facet type `fixed` means that this facet is locked and cannot be simply removed.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Facet()`
  Deprecated.
  Creates a new `Facet`.
  `Facet(Node node)`
  Deprecated.
  Creates a new `Facet`.
  `Facet(String name, String version)`
  Deprecated.
  Creates a new `Facet`.
  `Facet(Facet.FacetType type, String name, String version)`
  Deprecated.
  Creates a new `Facet`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `appendNode(Node node)`
  Deprecated.
  Append node.
  `boolean`
  `equals(Object o)`
  Deprecated.
  `String`
  `getName()`
  Deprecated.
  Returns the name.
  `Facet.FacetType`
  `getType()`
  Deprecated.
  Returns the type.
  `String`
  `getVersion()`
  Deprecated.
  Returns the version.
  `int`
  `hashCode()`
  Deprecated.
  `void`
  `setName(String name)`
  Deprecated.
  Sets the name.
  `void`
  `setType(Facet.FacetType type)`
  Deprecated.
  Sets the type.
  `void`
  `setVersion(String version)`
  Deprecated.
  Sets the version.
  `String`
  `toString()`
  Deprecated.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### Facet

    public Facet()
    Deprecated.
    Creates a new `Facet`.
    Since:
      1.0

  - ### Facet

    public Facet(Node node)
    Deprecated.
    Creates a new `Facet`.
    Since:
      1.0

  - ### Facet

    public Facet(String name, String version)
    Deprecated.
    Creates a new `Facet`.
    Since:
      1.0

  - ### Facet

    public Facet(Facet.FacetType type, String name, String version)
    Deprecated.
    Creates a new `Facet`.
    Since:
      1.0

- ## Method Details

  - ### getType

    public Facet.FacetType getType()
    Deprecated.
    Returns the type.
    Since:
      1.0

  - ### setType

    public void setType(Facet.FacetType type)
    Deprecated.
    Sets the type.
    Since:
      1.0

  - ### getName

    public String getName()
    Deprecated.
    Returns the name.
    Since:
      1.0

  - ### setName

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

  - ### getVersion

    public String getVersion()
    Deprecated.
    Returns the version.
    Since:
      1.0

  - ### setVersion

    public void setVersion(String version)
    Deprecated.
    Sets the version.
    Since:
      1.0

  - ### appendNode

    public void appendNode(Node node)
    Deprecated.
    Append node.
    Since:
      1.0

  - ### equals

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

  - ### hashCode

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

  - ### toString

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