nl.knowledgeplaza.util
Class VersionUtil

java.lang.Object
  extended by nl.knowledgeplaza.util.VersionUtil

public class VersionUtil
extends Object


Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
VersionUtil()
           
 
Method Summary
static void checkVersionEqualOrGreater(String libraryName, String libraryVersion, Class clazz, String requiredVersion)
          Check if a available version is >= to the required version.
static void checkVersionEqualOrGreater(String libraryName, String libraryVersion, Object thiz, String requiredVersion)
          Convenience method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

VersionUtil

public VersionUtil()
Method Detail

checkVersionEqualOrGreater

public static void checkVersionEqualOrGreater(String libraryName,
                                              String libraryVersion,
                                              Class clazz,
                                              String requiredVersion)
Check if a available version is >= to the required version. If not, throw an IllegalStateException.

Parameters:
libraryName -
libraryVersion -
requiredVersion -
clazz -

checkVersionEqualOrGreater

public static void checkVersionEqualOrGreater(String libraryName,
                                              String libraryVersion,
                                              Object thiz,
                                              String requiredVersion)
Convenience method

Parameters:
libraryName -
libraryVersion -
requiredVersion -
thiz -


Copyright © 2011 KnowledgePlaza. All Rights Reserved.