+ * The regular expression matches a version if its textual version information is well-formed + * according to the following examples: + * + *
+ * 52 + * 4.31 + * 5.10.13 + *+ */ + private static final String VERSION_NUMBER_REGEX = "^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?$"; + + /** + * Major number of the version. + */ private final short major; + + /** + * Minor number of the version. + */ private final short minor; + + /** + * Name or description of the version. + */ private final String name; /** @@ -173,6 +200,43 @@ public class Version implements Comparable
vmware
for VMware
+ * @param virtOsId operating system identifier used by the virtualizer, eg.
+ * windows7-64
for 64bit Windows 7 on VMware.
+ */
+ public static OperatingSystem getOsOfVirtualizerFromList( List