de.cau.cs.kieler.kex.model
Enum ExampleResource.Type
java.lang.Object
java.lang.Enum<ExampleResource.Type>
de.cau.cs.kieler.kex.model.ExampleResource.Type
- All Implemented Interfaces:
- Serializable, Comparable<ExampleResource.Type>
- Enclosing class:
- ExampleResource
public static enum ExampleResource.Type
- extends Enum<ExampleResource.Type>
Used to distinguish the resources.
- Rating

FILE
public static final ExampleResource.Type FILE
FOLDER
public static final ExampleResource.Type FOLDER
PROJECT
public static final ExampleResource.Type PROJECT
values
public static ExampleResource.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ExampleResource.Type c : ExampleResource.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ExampleResource.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
map
public static String map(ExampleResource.Type type)
- Gets the name of an Type.
- Parameters:
type
- , ExampleResource.Type
- Returns:
String