Package org.apache.maven.model.version
Interface VersionParser
public interface VersionParser
Model builder specific version parser. It is intentionally not
VersionParser
as this is not a service,
but at Maven runtime it MAY actually use that service.- Since:
- 4.0.0
-
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)".
-
Method Details
-
parseVersion
Parses the specified version string, for example "1.0".- Parameters:
version
- the version string to parse, must not benull
- Returns:
- the parsed version, never
null
- Throws:
VersionParserException
- if the string violates the syntax rules of this scheme
-
parseVersionRange
Parses the specified version range specification, for example "[1.0,2.0)".- Parameters:
range
- the range specification to parse, must not benull
- Returns:
- the parsed version range, never
null
- Throws:
VersionParserException
- if the range specification violates the syntax rules of this scheme
-