Package de.mnl.osgi.bnd.maven
Class MavenVersionSpecification
- java.lang.Object
-
- de.mnl.osgi.bnd.maven.MavenVersionSpecification
-
- Direct Known Subclasses:
MavenVersion
,MavenVersionRange
public abstract class MavenVersionSpecification extends Object
The common base class ofMavenVersion
andMavenVersionRange
.
-
-
Constructor Summary
Constructors Constructor Description MavenVersionSpecification()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MavenVersionSpecification
from(String version)
Creates a maven version specification from the given arguments.static boolean
isRange(String version)
Checks if is the provided version representation is a range.
-
-
-
Constructor Detail
-
MavenVersionSpecification
public MavenVersionSpecification()
-
-
Method Detail
-
isRange
public static boolean isRange(String version)
Checks if is the provided version representation is a range. Ifversion
is null it is considered to be the "all inclusive range" ("[0,)").- Parameters:
version
- the version- Returns:
- true, if is range
-
from
public static MavenVersionSpecification from(String version)
Creates a maven version specification from the given arguments.- Parameters:
version
- the version- Returns:
- the maven version specification
-
-