/** * Returns a list of printable permission values. * * @return list of namespace permission values, as "Namespace." + permission name */ public static List<String> printableValues() { NamespacePermission[] a = NamespacePermission.values(); List<String> list = new ArrayList<String>(a.length); for (NamespacePermission p : a) list.add("Namespace." + p); return list; }
static { for (NamespacePermission perm : NamespacePermission.values()) mapping[perm.permID] = perm; }