public static final class BuildPropertiesSupport.Property extends Object
Constructor and Description |
---|
Property(Object id,
String scope,
String propertyName,
BuildPropertiesSupport.PropertyKind kind,
String type,
String value) |
Modifier and Type | Method and Description |
---|---|
Object |
getId()
Returns the property id.
|
BuildPropertiesSupport.PropertyKind |
getKind() |
String |
getName() |
String |
getScope()
Scope of a property.
|
String |
getStringValue()
Returns value of the property, as String.
|
String |
getType()
Returns type of the property.
|
boolean |
isList()
True, if the property is a list.
|
boolean |
isMap()
True, if the property is a Map.
|
@NonNull public Object getId()
public String getScope()
BuildPropertiesSupport.EXTENSION
and BuildPropertiesSupport.TASK
. Additional plugins
may add additional scopes.public BuildPropertiesSupport.PropertyKind getKind()
public String getName()
@CheckForNull public String getType()
BuildPropertiesSupport.PropertyKind.LIST
or BuildPropertiesSupport.PropertyKind.MAP
it means the type of items in the collection / map. May return null
for BuildPropertiesSupport.PropertyKind.EXISTS
.
Fully qualified type name is returned.public boolean isList()
public boolean isMap()
@CheckForNull public String getStringValue()
null
.null