|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RequirementStatus>
org.squashtest.csp.tm.domain.requirement.RequirementStatus
public enum RequirementStatus
| Enum Constant Summary | |
|---|---|
APPROVED
|
|
OBSOLETE
|
|
UNDER_REVIEW
|
|
WORK_IN_PROGRESS
|
|
| Method Summary | |
|---|---|
protected Set<RequirementStatus> |
defaultAvailableSet()
|
abstract boolean |
getAllowsStatusUpdate()
tells whether the status could be changed regardless of isRequirementModifiable(); |
abstract Set<RequirementStatus> |
getAvailableNextStatus()
the set of the available status transition. |
abstract Set<RequirementStatus> |
getDisabledStatus()
the set of the NON-available status transition. |
String |
getI18nKey()
|
abstract boolean |
isRequirementLinkable()
|
abstract boolean |
isRequirementModifiable()
tells whether this status allows the owner to be modified, i.e. its intrinsic properties can be changed. |
boolean |
isTransitionLegal(RequirementStatus newStatus)
will check if the transition from this status to new status is legal |
protected Set<RequirementStatus> |
returnDisabledStatus()
|
static org.squashtest.csp.tm.domain.requirement.RequirementStatus.StringComparator |
stringComparator()
|
static RequirementStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RequirementStatus[] |
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 |
|---|
public static final RequirementStatus WORK_IN_PROGRESS
public static final RequirementStatus UNDER_REVIEW
public static final RequirementStatus APPROVED
public static final RequirementStatus OBSOLETE
| Method Detail |
|---|
public static RequirementStatus[] values()
for (RequirementStatus c : RequirementStatus.values()) System.out.println(c);
public static RequirementStatus valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getI18nKey()
getI18nKey in interface Internationalizablepublic abstract Set<RequirementStatus> getAvailableNextStatus()
public abstract boolean isRequirementModifiable()
public abstract boolean getAllowsStatusUpdate()
isRequirementModifiable();
public abstract boolean isRequirementLinkable()
protected Set<RequirementStatus> defaultAvailableSet()
public static org.squashtest.csp.tm.domain.requirement.RequirementStatus.StringComparator stringComparator()
public boolean isTransitionLegal(RequirementStatus newStatus)
public abstract Set<RequirementStatus> getDisabledStatus()
protected Set<RequirementStatus> returnDisabledStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||