Class Attribute
java.lang.Object
io.spring.initializr.generator.buildsystem.gradle.Attribute
- Direct Known Subclasses:
GradleTask.Attribute
An attribute.
- Author:
- Moritz Halbritter, Stephane Nicoll
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Attribute
(String name, String value, Attribute.Type type) -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
Create an attribute that appends the specified value.boolean
getName()
Return the name of the attribute.getType()
Return theAttribute.Type
of the attribute.getValue()
Return the value of the attribute to set or to append.int
hashCode()
static Attribute
Create an attribute that sets the specified value.toString()
-
Constructor Details
-
Attribute
-
-
Method Details
-
set
Create an attribute that sets the specified value.- Parameters:
name
- the name of the attributevalue
- the value to set- Returns:
- an attribute
-
append
Create an attribute that appends the specified value.- Parameters:
name
- the name of the attributevalue
- the value to append- Returns:
- an attribute
-
getName
Return the name of the attribute.- Returns:
- the name
-
getValue
Return the value of the attribute to set or to append.- Returns:
- the value
-
getType
Return theAttribute.Type
of the attribute.- Returns:
- the type
-
equals
-
hashCode
public int hashCode() -
toString
-