Class KnownVersioningSchemes
java.lang.Object
io.github.nscuro.versatile.version.KnownVersioningSchemes
- Since:
- 0.8.0
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromPurl
(com.github.packageurl.PackageURL purl) Attempt to match a givenPackageURL
with any of the versioning schemes known to versatile.Attempt to match a given Package URL with any of the versioning schemes known to versatile.
-
Field Details
-
SCHEME_ALPINE
- See Also:
-
SCHEME_CPAN
- See Also:
-
SCHEME_DEBIAN
- See Also:
-
SCHEME_GEM
- See Also:
-
SCHEME_GENERIC
- See Also:
-
SCHEME_GENTOO
- See Also:
-
SCHEME_GOLANG
- See Also:
-
SCHEME_MAVEN
- See Also:
-
SCHEME_NPM
- See Also:
-
SCHEME_NUGET
- See Also:
-
SCHEME_PYPI
- See Also:
-
SCHEME_RPM
- See Also:
-
-
Method Details
-
fromPurl
Attempt to match a given Package URL with any of the versioning schemes known to versatile.- Parameters:
purl
- The Package URL to match- Returns:
- An
Optional
containing the matched scheme, otherwise an emptyOptional
- Throws:
IllegalArgumentException
- When the providedpurl
is invalid- Since:
- 0.9.0
- See Also:
-
fromPurl
Attempt to match a givenPackageURL
with any of the versioning schemes known to versatile.
-