Class DefaultModelVersionParser
java.lang.Object
org.apache.maven.repository.internal.DefaultModelVersionParser
- All Implemented Interfaces:
ModelVersionParser
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultModelVersionParser
extends Object
implements ModelVersionParser
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultModelVersionParser(org.eclipse.aether.version.VersionScheme versionScheme) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckSnapshot(String version) Deprecated.booleanisSnapshot(String version) Deprecated.Checks whether a given artifact version is considered aSNAPSHOTor not.parseVersion(String version) Deprecated.Parses the specified version string, for example "1.0".parseVersionConstraint(String constraint) Deprecated.Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".parseVersionRange(String range) Deprecated.Parses the specified version range specification, for example "[1.0,2.0)".
-
Constructor Details
-
DefaultModelVersionParser
@Inject public DefaultModelVersionParser(org.eclipse.aether.version.VersionScheme versionScheme) Deprecated.
-
-
Method Details
-
parseVersion
Deprecated.Description copied from interface:ModelVersionParserParses the specified version string, for example "1.0".- Specified by:
parseVersionin interfaceModelVersionParser- Parameters:
version- the version string to parse, must not benull- Returns:
- the parsed version, never
null
-
parseVersionRange
Deprecated.Description copied from interface:ModelVersionParserParses the specified version range specification, for example "[1.0,2.0)".- Specified by:
parseVersionRangein interfaceModelVersionParser- Parameters:
range- the range specification to parse, must not benull- Returns:
- the parsed version range, never
null
-
isSnapshot
Deprecated.Description copied from interface:ModelVersionParserChecks whether a given artifact version is considered aSNAPSHOTor not.- Specified by:
isSnapshotin interfaceModelVersionParser
-
checkSnapshot
Deprecated. -
parseVersionConstraint
Deprecated.Description copied from interface:ModelVersionParserParses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".- Specified by:
parseVersionConstraintin interfaceModelVersionParser- Parameters:
constraint- the range specification to parse, must not benull- Returns:
- the parsed version constraint, never
null
-
maven-api-impljar instead