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 SummaryConstructors
- 
Method SummaryModifier 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- 
parseVersionDescription copied from interface:VersionParserParses the specified version string, for example "1.0".- Specified by:
- parseVersionin interface- VersionParser
- Parameters:
- version- the version string to parse, must not be- null
- Returns:
- the parsed version, never null
- See Also:
 
- 
parseVersionRangeDescription copied from interface:VersionParserParses the specified version range specification, for example "[1.0,2.0)".- Specified by:
- parseVersionRangein interface- VersionParser
- Parameters:
- range- the range specification to parse, must not be- null
- Returns:
- the parsed version range, never null
 
- 
isSnapshotDescription copied from interface:VersionParserChecks whether a given artifact version is considered aSNAPSHOTor not.- Specified by:
- isSnapshotin interface- VersionParser
 
 
-