Class QualifierRestriction
- java.lang.Object
-
- org.jboss.set.mavendependencyupdater.rules.QualifierRestriction
-
- All Implemented Interfaces:
Restriction
public class QualifierRestriction extends Object
Restricts version qualifier to match one of the provided regular expressions. Qualifier is the part of the version that follows last leading numerical segment of the version. E.g. qualifier in version "1.1.1.Beta.1" is "Beta.1". Delimiter character is stripped.
-
-
Constructor Summary
Constructors Constructor Description QualifierRestriction(String[] expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplies(String version, String originalVersion)Applies the restriction.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.set.mavendependencyupdater.rules.Restriction
applies
-
-
-
-
Constructor Detail
-
QualifierRestriction
public QualifierRestriction(String[] expressions)
-
-
Method Detail
-
applies
public boolean applies(String version, String originalVersion)
Description copied from interface:RestrictionApplies the restriction.- Parameters:
version- candidate version stringoriginalVersion- original version string- Returns:
- true if given version passed the restriction test (version can be considered candidate for upgrading)
-
-