org.squashtest.csp.tm.domain.requirement
Enum RequirementStatus

java.lang.Object
  extended by java.lang.Enum<RequirementStatus>
      extended by org.squashtest.csp.tm.domain.requirement.RequirementStatus
All Implemented Interfaces:
Serializable, Comparable<RequirementStatus>, Internationalizable

public enum RequirementStatus
extends Enum<RequirementStatus>
implements Internationalizable


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

WORK_IN_PROGRESS

public static final RequirementStatus WORK_IN_PROGRESS

UNDER_REVIEW

public static final RequirementStatus UNDER_REVIEW

APPROVED

public static final RequirementStatus APPROVED

OBSOLETE

public static final RequirementStatus OBSOLETE
Method Detail

values

public static RequirementStatus[] 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 (RequirementStatus c : RequirementStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RequirementStatus 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

getI18nKey

public String getI18nKey()
Specified by:
getI18nKey in interface Internationalizable
Returns:
the non null key used to get this object's i18n'd message.

getAvailableNextStatus

public abstract Set<RequirementStatus> getAvailableNextStatus()
the set of the available status transition. As for 1.1.0 and until further notice, should also include this

Returns:
the availableTransition.

isRequirementModifiable

public abstract boolean isRequirementModifiable()
tells whether this status allows the owner to be modified, i.e. its intrinsic properties can be changed.

Returns:
yay or nay.

getAllowsStatusUpdate

public abstract boolean getAllowsStatusUpdate()
tells whether the status could be changed regardless of isRequirementModifiable();

Returns:
yay or nay.

isRequirementLinkable

public abstract boolean isRequirementLinkable()
Returns:
the owning Requirement can be (un)linked to Test Cases

defaultAvailableSet

protected Set<RequirementStatus> defaultAvailableSet()

stringComparator

public static org.squashtest.csp.tm.domain.requirement.RequirementStatus.StringComparator stringComparator()

isTransitionLegal

public boolean isTransitionLegal(RequirementStatus newStatus)
will check if the transition from this status to new status is legal

Returns:
true if it's okay

getDisabledStatus

public abstract Set<RequirementStatus> getDisabledStatus()
the set of the NON-available status transition. As for 1.1.0 and until further notice, should NOT include this

Returns:
the NON-availableTransition.

returnDisabledStatus

protected Set<RequirementStatus> returnDisabledStatus()


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.