/** * Return the string name of this DConfigBeanVersionType or the * integer value if outside the bounds of the table */ public String toString() { String[] strTable = getStringTable(); int index = value - getOffset(); if (strTable != null && index >= 0 && index < strTable.length) return strTable[index]; else return Integer.toString (value); }
/** * Returns 'true' if the configuration beans support the J2EE platform * version specified. It returns 'false' if the version is * not supported. * * @param version a DConfigBeanVersionType object representing the * J2EE platform version for which support is requested. * @return 'true' if the version is supported and 'false if not. */ public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version) { return version.getValue()==getDConfigBeanVersion().getValue(); }
/** * Return the string name of this DConfigBeanVersionType or the integer * value if outside the bounds of the table */ public String toString() { return (value >= 0 && value <= 3) ? getStringTable()[value] : String.valueOf(value); }
/** * Set the configuration beans to be used to the J2EE platform * version specificed. * * @param version a DConfigBeanVersionType object representing the * J2EE platform version for which support is requested. * @throws DConfigBeanVersionUnsupportedException when the * requested bean version is not supported. */ public void setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException { if (!isDConfigBeanVersionSupported(version)) { throw new DConfigBeanVersionUnsupportedException( localStrings.getLocalString( "enterprise.deployapi.spi.dconfigbeanversionnotsupported", //NOI18N "DConfigBean version {0} is not supported", //NOI18N new Object[] {version.toString()})); } }
/** * Return the string name of this DConfigBeanVersionType or the integer * value if outside the bounds of the table */ public String toString() { return (value >= 0 && value <= 2) ? getStringTable()[value] : String.valueOf(value); }
/** * Set the configuration beans to be used to the J2EE platform * version specificed. * * @param version a DConfigBeanVersionType object representing the * J2EE platform version for which support is requested. * @throws DConfigBeanVersionUnsupportedException when the * requested bean version is not supported. */ public void setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException { if (!isDConfigBeanVersionSupported(version)) { throw new DConfigBeanVersionUnsupportedException( localStrings.getLocalString( "enterprise.deployapi.spi.dconfigbeanversionnotsupported", //NOI18N "DConfigBean version {0} is not supported", //NOI18N new Object[] {version.toString()})); } }
/** * Return the string name of this DConfigBeanVersionType or the * integer value if outside the bounds of the table */ public String toString() { String[] strTable = getStringTable(); int index = value - getOffset(); if (strTable != null && index >= 0 && index < strTable.length) return strTable[index]; else return Integer.toString (value); }
/** * Return the string name of this DConfigBeanVersionType or the integer * value if outside the bounds of the table */ public String toString() { return (value >= 0 && value <= 2) ? getStringTable()[value] : String.valueOf(value); }
/** * Returns 'true' if the configuration beans support the J2EE platform * version specified. It returns 'false' if the version is * not supported. * * @param version a DConfigBeanVersionType object representing the * J2EE platform version for which support is requested. * @return 'true' if the version is supported and 'false if not. */ public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version) { return version.getValue()==getDConfigBeanVersion().getValue(); }
/** * Return the string name of this DConfigBeanVersionType or the * integer value if outside the bounds of the table */ public String toString() { String[] strTable = getStringTable(); int index = value - getOffset(); if (strTable != null && index >= 0 && index < strTable.length) return strTable[index]; else return Integer.toString (value); }