Package org.apache.maven.internal.impl
Class DefaultVersionParser
java.lang.Object
org.apache.maven.internal.impl.DefaultVersionParser
- All Implemented Interfaces:
Service,VersionParser
A wrapper class around a resolver version that works as model version parser as well.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSnapshot(String version) Checks whether a given artifact version is considered aSNAPSHOTor not.parseVersion(String version) Parses the specified version string, for example "1.0".parseVersionRange(String range) Parses the specified version range specification, for example "[1.0,2.0)".
-
Constructor Details
-
DefaultVersionParser
-
-
Method Details
-
parseVersion
Description copied from interface:VersionParserParses the specified version string, for example "1.0".- Specified by:
parseVersionin interfaceVersionParser- Parameters:
version- the version string to parse, must not benull- Returns:
- the parsed version, never
null - See Also:
-
parseVersionRange
Description copied from interface:VersionParserParses the specified version range specification, for example "[1.0,2.0)".- Specified by:
parseVersionRangein interfaceVersionParser- Parameters:
range- the range specification to parse, must not benull- Returns:
- the parsed version range, never
null
-
isSnapshot
Description copied from interface:VersionParserChecks whether a given artifact version is considered aSNAPSHOTor not.- Specified by:
isSnapshotin interfaceVersionParser
-