|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionFactory
A factory to create version instances. Version conventions may be different in different projects. The factory ensures that for each project a specific version syntax can be supported.
The instance created provides information about the version string parsed. The main support it provides is the implementation of a comparable interface. The natural order should be ascending from lowest version number to highest.
The instances created by the factory are expected to be performing well as hash keys.
Method Summary | |
---|---|
ArtifactVersionRange |
createRange(String versionSpecification) Creates a version range by the given specification. |
org.apache.maven.artifact.versioning.ArtifactVersion |
createVersion(String versionString) Creates a version instance from the given version string. |
Method Detail |
---|
org.apache.maven.artifact.versioning.ArtifactVersion createVersion(String versionString)
versionString
- the version string to parse.
ArtifactVersionRange createRange(String versionSpecification) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
versionSpecification
- the specification of the version range to create.
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
- if the specification cannot be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |