Table of Contents
| API Documentation: | ComponentSelection |
|---|
Represents a tuple of the component selector of a module and a candidate version to be evaluated in a component selection rule.
| Method | Description |
getDescriptor(descriptorClass) | Used to access a specific descriptor format. |
reject(reason) | Rejects the candidate for the resolution. |
ModuleComponentIdentifier candidate (read-only)
Gets the candidate version of the module.
ComponentMetadata metadata (read-only)
Gets the metadata of the component.
The metadata may not be available, in which case null is returned.
Unavailable metadata may be caused by a module published without associated metadata.
T getDescriptor(Class<T> descriptorClass)
Class<T>Used to access a specific descriptor format.
For an Ivy module, an IvyModuleDescriptor can be requested and returned.
If the descriptor type requested does not exist for the module under selection, null is returned.
void reject(String reason)
Rejects the candidate for the resolution.