/** * * @return true if the configuration is valid. */ @Override public boolean isValid() { return GDataValidator.valid(this); } }
/** * Check if the generic loader support the given format. * * @param format the format * @return true if the format is supported. */ public static boolean supportFormat(String format) { for (GFormat f : supportedFormat) { if (f.name().equalsIgnoreCase(format)) { return true; } } return false; }
throw new SLIB_Ex_Critic("Please precise a data format for each data to import, valids " + Arrays.toString(GFormat.values())); } else { try { gFormat = GFormat.valueOf(format.toUpperCase()); } catch (IllegalArgumentException e) { throw new SLIB_Ex_Critic("Unknow data format " + format + ", valids " + Arrays.toString(GFormat.values()));
throw new SLIB_Ex_Critic("Please precise a data format for each data to import, valids " + Arrays.toString(GFormat.values())); } else { try { gFormat = GFormat.valueOf(format.toUpperCase()); } catch (IllegalArgumentException e) { throw new SLIB_Ex_Critic("Unknow data format " + format + ", valids " + Arrays.toString(GFormat.values()));
/** * * @return true if the configuration is valid. */ @Override public boolean isValid() { return GDataValidator.valid(this); } }
/** * Check if the generic loader support the given format. * * @param format the format * @return true if the format is supported. */ public static boolean supportFormat(String format) { for (GFormat f : supportedFormat) { if (f.name().equalsIgnoreCase(format)) { return true; } } return false; }