java.lang.Object
io.spring.initializr.generator.buildsystem.gradle.Attribute
Direct Known Subclasses:
GradleTask.Attribute

public class Attribute extends Object
An attribute.
Author:
Moritz Halbritter, Stephane Nicoll
  • Constructor Details

  • Method Details

    • set

      public static Attribute set(String name, String value)
      Create an attribute that sets the specified value.
      Parameters:
      name - the name of the attribute
      value - the value to set
      Returns:
      an attribute
    • append

      public static Attribute append(String name, String value)
      Create an attribute that appends the specified value.
      Parameters:
      name - the name of the attribute
      value - the value to append
      Returns:
      an attribute
    • getName

      public String getName()
      Return the name of the attribute.
      Returns:
      the name
    • getValue

      public String getValue()
      Return the value of the attribute to set or to append.
      Returns:
      the value
    • getType

      public Attribute.Type getType()
      Return the Attribute.Type of the attribute.
      Returns:
      the type
    • 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