Class DefaultModelVersionParser
java.lang.Object
org.apache.maven.impl.DefaultModelVersionParser
- All Implemented Interfaces:
- ModelVersionParser
@Named
@Singleton
public class DefaultModelVersionParser
extends Object
implements ModelVersionParser
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultModelVersionParser(org.eclipse.aether.version.VersionScheme versionScheme) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleancheckSnapshot(String version) booleanisSnapshot(String version) Checks whether a given artifact version is considered aSNAPSHOTor not.parseVersion(String version) Parses the specified version string, for example "1.0".parseVersionConstraint(String constraint) Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".parseVersionRange(String range) Parses the specified version range specification, for example "[1.0,2.0)".
- 
Constructor Details- 
DefaultModelVersionParser
 
- 
- 
Method Details- 
parseVersionDescription copied from interface:ModelVersionParserParses the specified version string, for example "1.0".- Specified by:
- parseVersionin interface- ModelVersionParser
- Parameters:
- version- the version string to parse, must not be- null
- Returns:
- the parsed version, never null
 
- 
parseVersionRangeDescription copied from interface:ModelVersionParserParses the specified version range specification, for example "[1.0,2.0)".- Specified by:
- parseVersionRangein interface- ModelVersionParser
- Parameters:
- range- the range specification to parse, must not be- null
- Returns:
- the parsed version range, never null
 
- 
isSnapshotDescription copied from interface:ModelVersionParserChecks whether a given artifact version is considered aSNAPSHOTor not.- Specified by:
- isSnapshotin interface- ModelVersionParser
 
- 
checkSnapshot
- 
parseVersionConstraintDescription copied from interface:ModelVersionParserParses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".- Specified by:
- parseVersionConstraintin interface- ModelVersionParser
- Parameters:
- constraint- the range specification to parse, must not be- null
- Returns:
- the parsed version constraint, never null
 
 
-