FileDocCategorySizeDatePackage
SpecVersionMapper.javaAPI DocGlassfish v2 API6378Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier

SpecVersionMapper

public class SpecVersionMapper extends Object
This class is responsible for mapping Java EE platform version to various component spec versions.
author
Sanjeeb.Sahoo@Sun.COM

Fields Summary
private static com.sun.enterprise.util.LocalStringManagerImpl
smh
public static final String
JavaEEVersion_1_2
public static final String
JavaEEVersion_1_3
public static final String
JavaEEVersion_1_4
public static final String
JavaEEVersion_5
private static String[]
PlatformVersionToEJBVersionMap
private static String[]
PlatformVersionToAppClientVersionMap
private static String[]
PlatformVersionToJCAVersionMap
private static String[]
PlatformVersionToWebAppVersionMap
private static String[]
PlatformVersionToWebServiceVersionMap
private static String[]
PlatformVersionToWebServiceClientVersionMap
Constructors Summary
Methods Summary
public static java.lang.StringgetAppClientVersion(java.lang.String platformVersion)

        for (String[] row : PlatformVersionToAppClientVersionMap) {
            if (row[0].equals(platformVersion)) {
                return row[1];
            }
        }
        return throwException(platformVersion);
    
public static java.lang.StringgetEJBVersion(java.lang.String platformVersion)

        for (String[] row : PlatformVersionToEJBVersionMap) {
            if (row[0].equals(platformVersion)) {
                return row[1];
            }
        }
        return throwException(platformVersion);
    
public static java.lang.StringgetJCAVersion(java.lang.String platformVersion)

        for (String[] row : PlatformVersionToJCAVersionMap) {
            if (row[0].equals(platformVersion)) {
                return row[1];
            }
        }
        return throwException(platformVersion);
    
public static java.lang.StringgetWebAppVersion(java.lang.String platformVersion)

        for (String[] row : PlatformVersionToWebAppVersionMap) {
            if (row[0].equals(platformVersion)) {
                return row[1];
            }
        }
        return throwException(platformVersion);
    
public static java.lang.StringgetWebServiceClientVersion(java.lang.String platformVersion)

        for (String[] row : PlatformVersionToWebServiceClientVersionMap) {
            if (row[0].equals(platformVersion)) {
                return row[1];
            }
        }
        return throwException(platformVersion);
    
public static java.lang.StringgetWebServiceVersion(java.lang.String platformVersion)

        for (String[] row : PlatformVersionToWebServiceVersionMap) {
            if (row[0].equals(platformVersion)) {
                return row[1];
            }
        }
        return throwException(platformVersion);
    
private static java.lang.StringthrowException(java.lang.String platformVersion)

    
          
              
        throw new IllegalArgumentException(
                smh.getLocalString("com.sun.enterprise.tools.verifier.SpecVersionMapper.exception", // NOI18N
                        "Not able to map platform version [ {0} ] component version.", // NOI18N
                        new Object[] {platformVersion}));