org.apache.ivy.plugins.version

Class AbstractVersionMatcher

public abstract class AbstractVersionMatcher extends Object implements VersionMatcher, IvySettingsAware

Constructor Summary
AbstractVersionMatcher()
AbstractVersionMatcher(String name)
Method Summary
booleanaccept(ModuleRevisionId askedMrid, ModuleDescriptor foundMD)
intcompare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, Comparator staticComparator)
This method should be overriden in most cases, because it uses the default contract to return 1 when it's not possible to know which revision is greater.
StringgetName()
IvySettingsgetSettings()
booleanneedModuleDescriptor(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
voidsetName(String name)
voidsetSettings(IvySettings settings)
StringtoString()

Constructor Detail

AbstractVersionMatcher

public AbstractVersionMatcher()

AbstractVersionMatcher

public AbstractVersionMatcher(String name)

Method Detail

accept

public boolean accept(ModuleRevisionId askedMrid, ModuleDescriptor foundMD)

compare

public int compare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, Comparator staticComparator)
This method should be overriden in most cases, because it uses the default contract to return 1 when it's not possible to know which revision is greater.

getName

public String getName()

getSettings

public IvySettings getSettings()

needModuleDescriptor

public boolean needModuleDescriptor(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)

setName

public void setName(String name)

setSettings

public void setSettings(IvySettings settings)

toString

public String toString()