|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.plugins.version.AbstractVersionMatcher
org.apache.ivy.plugins.version.ChainVersionMatcher
public class ChainVersionMatcher
Constructor Summary | |
---|---|
ChainVersionMatcher()
|
Method Summary | |
---|---|
boolean |
accept(ModuleRevisionId askedMrid,
ModuleDescriptor foundMD)
Indicates if this version matcher considers that the module found matches the asked one. |
boolean |
accept(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid)
Indicates if this version matcher considers that the module revision found matches the asked one. |
void |
add(VersionMatcher matcher)
|
int |
compare(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid,
java.util.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. |
java.util.List |
getMatchers()
|
boolean |
isDynamic(ModuleRevisionId askedMrid)
Indicates if the given asked ModuleRevisionId should be considered as dynamic for the current VersionMatcher or not. |
boolean |
needModuleDescriptor(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid)
Indicates if this VersionMatcher needs module descriptors to determine if a module revision matches the asked one. |
void |
setSettings(IvySettings settings)
|
Methods inherited from class org.apache.ivy.plugins.version.AbstractVersionMatcher |
---|
getName, getSettings, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChainVersionMatcher()
Method Detail |
---|
public void add(VersionMatcher matcher)
public void setSettings(IvySettings settings)
setSettings
in interface IvySettingsAware
setSettings
in class AbstractVersionMatcher
public java.util.List getMatchers()
public boolean isDynamic(ModuleRevisionId askedMrid)
VersionMatcher
askedMrid
- the dependency module revision id as asked by a module
public int compare(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid, java.util.Comparator staticComparator)
AbstractVersionMatcher
compare
in interface VersionMatcher
compare
in class AbstractVersionMatcher
askedMrid
- the dynamic revision to comparefoundMrid
- the static revision to comparestaticComparator
- a comparator which can be used to compare static revisions
public boolean accept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
VersionMatcher
public boolean needModuleDescriptor(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
VersionMatcher
needModuleDescriptor
in interface VersionMatcher
needModuleDescriptor
in class AbstractVersionMatcher
public boolean accept(ModuleRevisionId askedMrid, ModuleDescriptor foundMD)
VersionMatcher
accept
in interface VersionMatcher
accept
in class AbstractVersionMatcher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |