/** * Get a OutputTreeType object from a type name. * * @param type the type * @return a OutputTreeType object */ public static OutputTreeType getOutputTreeType(final String type) { if (type == null) { return OutputTreeType.valueOf(Globals.OUTPUT_TREE_TYPE_DEFAULT); } final OutputTreeType result = OutputTreeType.valueOf(type.toUpperCase().trim()); if (result == null) { return OutputTreeType.valueOf(Globals.OUTPUT_TREE_TYPE_DEFAULT); } return result; }
/** Private constructor. */ private StepOutputDirectory() { this.hadoopMode = EoulsanRuntime.getRuntime().getMode().isHadoopMode(); this.outputTree = OutputTreeType.getOutputTreeType(); }