|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.plugins.GrailsVersionUtils
class GrailsVersionUtils extends java.lang.Object
Method Summary | |
---|---|
static java.lang.String
|
getLowerVersion(java.lang.String pluginVersion)
Returns the lower version of a Grails version number expression in a plugin |
static java.lang.String
|
getPluginName(java.lang.Class clazz)
Get the name of the a plugin for a particular class. |
static java.lang.String
|
getPluginVersion(java.lang.Class clazz)
Get the version of the a plugin for a particular class. |
static java.lang.String
|
getUpperVersion(java.lang.String pluginVersion)
Returns the upper version of a Grails version number expression in a plugin |
static boolean
|
isValidVersion(java.lang.String pluginVersion, java.lang.String requiredVersion)
Check if the required version is a valid for the given plugin version. |
static boolean
|
isVersionGreaterThan(java.lang.String leftVersion, java.lang.String rightVersion)
Returns true if rightVersion is greater than leftVersion |
static boolean
|
supportsAtLeastVersion(java.lang.String pluginVersion, java.lang.String requiredVersion)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
static java.lang.String getLowerVersion(java.lang.String pluginVersion)
static java.lang.String getPluginName(java.lang.Class clazz)
static java.lang.String getPluginVersion(java.lang.Class clazz)
static java.lang.String getUpperVersion(java.lang.String pluginVersion)
static boolean isValidVersion(java.lang.String pluginVersion, java.lang.String requiredVersion)
pluginVersion
- The plugin versionrequiredVersion
- The required version
static boolean isVersionGreaterThan(java.lang.String leftVersion, java.lang.String rightVersion)
static boolean supportsAtLeastVersion(java.lang.String pluginVersion, java.lang.String requiredVersion)
Groovy Documentation