Package org.apache.felix.framework
Class VersionConverter
java.lang.Object
org.apache.felix.framework.VersionConverter
Converts generic version identifiers to the
Version instances.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcleanupModifier(StringBuilder result, String modifier) private static StringcleanupVersion(String version) static VersiontoOsgiVersion(String value) Converts generic version id to theVersioninstance.
-
Field Details
-
FUZZY_VERSION
-
-
Constructor Details
-
VersionConverter
public VersionConverter()
-
-
Method Details
-
toOsgiVersion
Converts generic version id to theVersioninstance. Examples:0.0 -> 0.0.0 2.3.4-SNAPSHOT -> 2.3.4.SNAPSHOT 8.7.6-special-edition -> 8.7.6.special-edition
- Parameters:
value- any usual version id parseable by theVersionclass constructor after adding missing implicit values.- Returns:
Version- Throws:
IllegalArgumentException- If the numerical components are negative or the qualifier string is invalid.
-
cleanupVersion
-
cleanupModifier
-