[Ejtools-cvs] libraries/common/src/main/org/ejtools/util Platform.java,NONE,1.1 ClassTools.java,1.5,
Brought to you by:
letiemble
Update of /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util In directory sc8-pr-cvs1:/tmp/cvs-serv20661/common/src/main/org/ejtools/util Modified Files: ClassTools.java JNDI.java KeyLimitedStack.java LimitedStack.java Added Files: Platform.java Log Message: Adjust Eclipse build files Adjust some Javadoc Integrate Persistence framework Integrate Image export as PNG --- NEW FILE: Platform.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package org.ejtools.util; /** * Description of the Class * * @author Laurent Etiemble * @version $Revision: 1.1 $ */ public class Platform { /** Description of the Field */ private static String JAVA_VERSION; /** Description of the Field */ public final static boolean IS_JAVA_1_1 = Platform.getJavaVersionMatches(Platform.JAVA_1_1); /** Description of the Field */ public final static boolean IS_JAVA_1_2 = Platform.getJavaVersionMatches(Platform.JAVA_1_2); /** Description of the Field */ public final static boolean IS_JAVA_1_3 = Platform.getJavaVersionMatches(Platform.JAVA_1_3); /** Description of the Field */ public final static boolean IS_JAVA_1_4 = Platform.getJavaVersionMatches(Platform.JAVA_1_4); /** Description of the Field */ public final static boolean IS_JAVA_1_5 = Platform.getJavaVersionMatches(Platform.JAVA_1_5); /** Description of the Field */ public final static String JAVA_1_1 = "1.1"; /** Description of the Field */ public final static String JAVA_1_2 = "1.2"; /** Description of the Field */ public final static String JAVA_1_3 = "1.3"; /** Description of the Field */ public final static String JAVA_1_4 = "1.4"; /** Description of the Field */ public final static String JAVA_1_5 = "1.5"; /** Avoid instantiation */ private Platform() { } /** * Gets the javaVersion attribute of the Platform class * * @return The javaVersion value */ public static String getJavaVersion() { if (JAVA_VERSION == null) { JAVA_VERSION = System.getProperty("java.version"); } return JAVA_VERSION; } /** * Gets the javaVersionCompatible attribute of the Platform class * * @param version Description of the Parameter * @return The javaVersionCompatible value */ public static boolean isJavaVersionCompatible(String version) { if (getJavaVersion() == null) { return false; } return (JAVA_VERSION.compareTo(version) >= 0); } /** * Gets the javaVersionMatches attribute of the Platform class * * @param versionPrefix Description of the Parameter * @return The javaVersionMatches value */ private static boolean getJavaVersionMatches(String versionPrefix) { if (getJavaVersion() == null) { return false; } return JAVA_VERSION.startsWith(versionPrefix); } } Index: ClassTools.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util/ClassTools.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ClassTools.java 21 Dec 2002 22:09:07 -0000 1.5 --- ClassTools.java 15 Sep 2003 22:23:45 -0000 1.6 *************** *** 13,18 **** * Utility class to handle Class realted stuff. * ! * @author <a href="mailto:let...@us...">Laurent Etiemble</a> ! * @created 25 avril 2002 * @version $Revision$ */ --- 13,17 ---- * Utility class to handle Class realted stuff. * ! * @author Laurent Etiemble * @version $Revision$ */ Index: JNDI.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util/JNDI.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** JNDI.java 8 Jan 2003 21:18:03 -0000 1.6 --- JNDI.java 15 Sep 2003 22:23:45 -0000 1.7 *************** *** 18,23 **** * Utility class to access environment properties for JNDI. * ! * @author <a href="mailto:let...@us...">Laurent Etiemble</a> ! * @created 12 novembre 2001 * @version $Revision$ */ --- 18,22 ---- * Utility class to access environment properties for JNDI. * ! * @author Laurent Etiemble * @version $Revision$ */ Index: KeyLimitedStack.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util/KeyLimitedStack.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** KeyLimitedStack.java 21 Dec 2002 22:09:07 -0000 1.5 --- KeyLimitedStack.java 15 Sep 2003 22:23:45 -0000 1.6 *************** *** 11,16 **** * Extension of the Limited Stack class, which doesn't allow duplicates. * ! * @author <a href="mailto:let...@us...">Laurent Etiemble</a> ! * @created 14 novembre 2002 * @version $Revision$ */ --- 11,15 ---- * Extension of the Limited Stack class, which doesn't allow duplicates. * ! * @author Laurent Etiemble * @version $Revision$ */ Index: LimitedStack.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/org/ejtools/util/LimitedStack.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** LimitedStack.java 21 Dec 2002 22:09:07 -0000 1.5 --- LimitedStack.java 15 Sep 2003 22:23:45 -0000 1.6 *************** *** 12,17 **** * Extension of the Stack class, which has a limited depth (FIFO stack). This class doesn't allow duplicates. * ! * @author <a href="mailto:let...@us...">Laurent Etiemble</a> ! * @created 24 décembre 2001 * @version $Revision$ */ --- 12,16 ---- * Extension of the Stack class, which has a limited depth (FIFO stack). This class doesn't allow duplicates. * ! * @author Laurent Etiemble * @version $Revision$ */ |