ComponentMetadata
, HasAttributes
, HasConfigurableAttributes<ComponentMetadataDetails>
@NonExtensible public interface ComponentMetadataDetails extends ComponentMetadata, HasConfigurableAttributes<ComponentMetadataDetails>
ComponentMetadataHandler
.Modifier and Type | Method | Description |
---|---|---|
void |
allVariants(Action<? super VariantMetadata> action) |
Add a rule for adjusting all variants of a component.
|
void |
belongsTo(Object notation) |
Declares that this component belongs to a virtual platform, which should be
considered during dependency resolution.
|
void |
belongsTo(Object notation,
boolean virtual) |
Declares that this component belongs to a platform, which should be
considered during dependency resolution.
|
void |
setChanging(boolean changing) |
Sets whether the component is changing or immutable.
|
void |
setStatus(String status) |
Sets the status of the component.
|
void |
setStatusScheme(List<String> statusScheme) |
Sets the status scheme of the component.
|
void |
withVariant(String name,
Action<? super VariantMetadata> action) |
Add a rule for adjusting an existing variant of the component.
|
getId, getStatus, getStatusScheme, isChanging
getAttributes
attributes
void setChanging(boolean changing)
changing
- whether the component is changing or immutablevoid setStatus(String status)
ComponentMetadata.getStatusScheme()
.status
- the status of the componentvoid setStatusScheme(List<String> statusScheme)
statusScheme
- the status scheme of the component@Incubating void withVariant(String name, Action<? super VariantMetadata> action)
name
- name of the variant to adjust (e.g. 'compile')action
- the action to modify the variant@Incubating void allVariants(Action<? super VariantMetadata> action)
action
- the action to be executed on each variant.@Incubating void belongsTo(Object notation)
notation
- the coordinates of the owner@Incubating void belongsTo(Object notation, boolean virtual)
notation
- the coordinates of the ownervirtual
- must be set to true if the platform is a virtual platform, or false if it's a published platform