public enum RequirementStatus extends Enum<RequirementStatus> implements Level
| Enum Constant and Description |
|---|
APPROVED |
OBSOLETE |
UNDER_REVIEW |
WORK_IN_PROGRESS |
| Modifier and Type | Method and Description |
|---|---|
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() |
int |
getLevel() |
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.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.
|
public static final RequirementStatus WORK_IN_PROGRESS
public static final RequirementStatus UNDER_REVIEW
public static final RequirementStatus APPROVED
public static final RequirementStatus OBSOLETE
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 nameNullPointerException - if the argument is nullpublic int getLevel()
getLevel in interface LevelLevel.getLevel()public 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.tm.domain.requirement.RequirementStatus.StringComparator stringComparator()
public String getI18nKey()
getI18nKey in interface org.squashtest.tm.core.foundation.i18n.Internationalizablepublic boolean isTransitionLegal(RequirementStatus newStatus)
public abstract Set<RequirementStatus> getDisabledStatus()
protected Set<RequirementStatus> returnDisabledStatus()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.