de.cau.cs.kieler.kex.model
Enum ExampleResource.Type

java.lang.Object
  extended by java.lang.Enum<ExampleResource.Type>
      extended by de.cau.cs.kieler.kex.model.ExampleResource.Type
All Implemented Interfaces:
Comparable<ExampleResource.Type>
Enclosing class:
ExampleResource

public static enum ExampleResource.Type
extends Enum<ExampleResource.Type>

Used to distinguish the resources.

Rating red

Enum Constant Summary
FILE
          A resource can be a file, a folder or a project.
FOLDER
           
PROJECT
           
 
Method Summary
static String map(ExampleResource.Type type)
          Gets the name of an Type.
static ExampleResource.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExampleResource.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FILE

public static final ExampleResource.Type FILE
A resource can be a file, a folder or a project.


FOLDER

public static final ExampleResource.Type FOLDER

PROJECT

public static final ExampleResource.Type PROJECT
Method Detail

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