cpw.mods.fml.common.versioning
Class VersionParser

java.lang.Object
  extended by cpw.mods.fml.common.versioning.VersionParser

public class VersionParser
extends Object

Parses version strings according to the specification here: http://docs.codehaus.org/display/MAVEN/Versioning and allows for comparison of versions based on that document. Bounded version specifications are defined as http://maven.apache.org/plugins/maven-enforcer-plugin/rules/versionRanges.html Borrows heavily from maven version range management code

Author:
cpw

Constructor Summary
VersionParser()
           
 
Method Summary
static VersionRange parseRange(String range)
           
static ArtifactVersion parseVersionReference(String labelledRef)
           
static boolean satisfies(ArtifactVersion target, ArtifactVersion source)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionParser

public VersionParser()
Method Detail

parseVersionReference

public static ArtifactVersion parseVersionReference(String labelledRef)

satisfies

public static boolean satisfies(ArtifactVersion target,
                                ArtifactVersion source)

parseRange

public static VersionRange parseRange(String range)