Class DefaultModelVersionParser
java.lang.Object
org.apache.maven.repository.internal.DefaultModelVersionParser
- All Implemented Interfaces:
VersionParser
-
Constructor Summary
ConstructorDescriptionDefaultModelVersionParser
(org.eclipse.aether.version.VersionScheme versionScheme) -
Method Summary
Modifier and TypeMethodDescriptionparseVersion
(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
-
DefaultModelVersionParser
@Inject public DefaultModelVersionParser(org.eclipse.aether.version.VersionScheme versionScheme)
-
-
Method Details
-
parseVersion
Description copied from interface:VersionParser
Parses the specified version string, for example "1.0".- Specified by:
parseVersion
in interfaceVersionParser
- Parameters:
version
- the version string to parse, must not benull
- Returns:
- the parsed version, never
null
-
parseVersionRange
Description copied from interface:VersionParser
Parses the specified version range specification, for example "[1.0,2.0)".- Specified by:
parseVersionRange
in interfaceVersionParser
- Parameters:
range
- the range specification to parse, must not benull
- Returns:
- the parsed version range, never
null
-