@Incubating @NonExtensible public interface ComponentMetadataDetails extends ComponentMetadata, HasConfigurableAttributes<ComponentMetadataDetails>
ComponentMetadataHandler.| Modifier and Type | Method and Description |
|---|---|
void |
allVariants(Action<? super VariantMetadata> action)
Add a rule for adjusting all variants of a component.
|
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, isChangingattributesgetAttributesvoid 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 componentvoid withVariant(String name, Action<? super VariantMetadata> action)
name - name of the variant to adjust (e.g. 'compile')action - the action to modify the variantvoid allVariants(Action<? super VariantMetadata> action)
action - the action to be executed on each variant.