Enum UnitAssignmentType
- java.lang.Object
-
- java.lang.Enum<UnitAssignmentType>
-
- fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignmentType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UnitAssignmentType>
public enum UnitAssignmentType extends java.lang.Enum<UnitAssignmentType>
This enum represents the different types of assignments
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGN_DOWNASSIGN_UPCREATIONTRANSFER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnitAssignmentTypefindByCode(java.lang.String strAssignmentTypeCode)Finds the assignment type corresponding to the specified assignment codejava.lang.StringgetAssignmentTypeCode()Gives the assignment type codestatic UnitAssignmentTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UnitAssignmentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATION
public static final UnitAssignmentType CREATION
-
ASSIGN_UP
public static final UnitAssignmentType ASSIGN_UP
-
ASSIGN_DOWN
public static final UnitAssignmentType ASSIGN_DOWN
-
TRANSFER
public static final UnitAssignmentType TRANSFER
-
-
Method Detail
-
values
public static UnitAssignmentType[] 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 (UnitAssignmentType c : UnitAssignmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitAssignmentType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAssignmentTypeCode
public java.lang.String getAssignmentTypeCode()
Gives the assignment type code- Returns:
- the assignment type code
-
findByCode
public static UnitAssignmentType findByCode(java.lang.String strAssignmentTypeCode)
Finds the assignment type corresponding to the specified assignment code- Parameters:
strAssignmentTypeCode- the assignment type code- Returns:
- the assignment type
-
-