org.activemath.content.metadata
Class CompetencyLevel

java.lang.Object
  extended by org.activemath.content.metadata.MetadataConstant
      extended by org.activemath.content.metadata.CompetencyLevel
All Implemented Interfaces:
Comparable<CompetencyLevel>

public final class CompetencyLevel
extends MetadataConstant
implements Comparable<CompetencyLevel>

Metadata CompetencyLevel (typesafe enum pattern)


Field Summary
static CompetencyLevel COMPLEX
           
static CompetencyLevel ELEMENTARY
           
static CompetencyLevel MULTI_STEP
           
static CompetencyLevel NO_COMPETENCY
           
static CompetencyLevel SIMPLE_CONCEPTUAL
           
static List<CompetencyLevel> VALUES
           
 
Fields inherited from class org.activemath.content.metadata.MetadataConstant
log
 
Method Summary
 int bitValue()
          Return a bitvalue for the competency
NOTE: hack for the tbm until CompetencyLevel.NO_COMPETENCY can be added
 int compareTo(CompetencyLevel arg0)
           
static CompetencyLevel getByName(String name)
           
 int intValue()
           
 
Methods inherited from class org.activemath.content.metadata.MetadataConstant
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUES

public static final List<CompetencyLevel> VALUES

NO_COMPETENCY

public static final CompetencyLevel NO_COMPETENCY

ELEMENTARY

public static final CompetencyLevel ELEMENTARY

SIMPLE_CONCEPTUAL

public static final CompetencyLevel SIMPLE_CONCEPTUAL

MULTI_STEP

public static final CompetencyLevel MULTI_STEP

COMPLEX

public static final CompetencyLevel COMPLEX
Method Detail

intValue

public int intValue()
Returns:
numerical value indicating an order on this metadata element.

bitValue

public int bitValue()
Return a bitvalue for the competency
NOTE: hack for the tbm until CompetencyLevel.NO_COMPETENCY can be added

Returns:
The bitvalue for the competency

getByName

public static final CompetencyLevel getByName(String name)
Returns:
CompetencyLevel instance for type name, or null.

compareTo

public int compareTo(CompetencyLevel arg0)
Specified by:
compareTo in interface Comparable<CompetencyLevel>