CR-IC-1234 (virtual file properties API cleanup once again)

This commit is contained in:
Roman Shevchenko
2013-07-03 18:06:10 +02:00
parent 98bc9846f8
commit bcc05b25cb
@@ -17,32 +17,13 @@ package com.intellij.openapi.vfs;
import org.jetbrains.annotations.NotNull;
public interface VFileProperty {
import java.util.Locale;
public enum VFileProperty {
HIDDEN, SPECIAL, SYMLINK;
@NotNull
String getName();
class Impl implements VFileProperty {
private final String myName;
public Impl(@NotNull String name) {
myName = name;
}
@NotNull
@Override
public String getName() {
return myName;
}
@Override
public String toString() {
return myName;
}
public String getName() {
return toString().toLowerCase(Locale.ENGLISH);
}
VFileProperty HIDDEN = new Impl("hidden");
VFileProperty SPECIAL = new Impl("special");
VFileProperty SYMLINK = new Impl("symlink");
}