org.apache.ivy.plugins.version
public class ChainVersionMatcher extends AbstractVersionMatcher
Constructor Summary | |
---|---|
ChainVersionMatcher()
Unique Constructor. |
Method Summary | |
---|---|
boolean | accept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid) |
boolean | accept(ModuleRevisionId askedMrid, ModuleDescriptor foundMD) |
void | add(VersionMatcher matcher)
Adds a VersionMatcher to the chain.
|
int | compare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, Comparator staticComparator) |
List | getMatchers()
Returns the list of matchers in the chain.
|
boolean | isDynamic(ModuleRevisionId askedMrid) |
boolean | needModuleDescriptor(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid) |
void | setSettings(IvySettings settings)
Sets the settings this matcher will use, and set to the matcher in the chain which implements
IvySettingsAware.
|
Parameters: matcher the version matcher to add. Must not be null
The list is returned as an unmodifiable view on the actual list of matchers, and will thus reflect futher changes made in the chain.
Returns: the list of matchers in the chain. Is never null.
Parameters: settings the settings to use in the whole chain. Must not be null.