
org.unidal.eunit.codegen.xsl.FileMode Maven / Gradle / Ivy
package org.unidal.eunit.codegen.xsl;
public enum FileMode {
CREATE_OR_OVERWRITE("create_or_overwrite"),
CREATE_IF_NOT_EXISTS("create_if_not_exists"),
CREATE_OR_APPEND("create_or_append");
private String m_name;
private FileMode(String name) {
m_name = name;
}
public String getName() {
return m_name;
}
public static FileMode getByName(String name) {
for (FileMode mode : FileMode.values()) {
if (mode.getName().equalsIgnoreCase(name)) {
return mode;
}
}
throw new IllegalArgumentException("No FileMode defined for " + name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy