|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.procasor.core.helper.BranchStepHelper
Field Summary | |
static java.lang.String |
TYPE_EXTENSION
Type of branchStep - extension |
static java.lang.String |
TYPE_VARIATION
Type of branchStep - variation |
Method Summary | |
static boolean |
canIncludeFailure(BranchStep step)
Check if the branchStep is a condition and if the parent includes useCase. |
static BranchStep |
create(java.lang.String stepMark,
java.lang.String text)
Creates new BranchStep and inicializes all parametrs. |
static java.lang.String |
getExtensionStepMark(BranchStep step)
Generates new stepMark, that extends step from parameter. |
static java.lang.String |
getNextStepMark(BranchStep step)
Generates new stepMark, that follows step from parameter. |
static boolean |
isCondition(BranchStep step)
Check if branchStep is condition or not. |
static boolean |
isTypeExtension(BranchStep branchStep)
Returns true, if branch step is extension. |
static void |
reMarkSteps(UseCase useCase,
BranchStep step,
java.lang.String mark)
Remarks branch mark and all it children. |
static void |
remove(UseCase useCase,
BranchStep branchStep)
Remove branchStep from the project. |
static void |
save(BranchStep branchStep,
UseCase useCase,
int position)
Generate id for branch step and add this step to the UseCase to the specified postion. |
static void |
setTypeExtension(BranchStep branchStep)
Sets parametr typeOfBranchStep to extension. |
static void |
setTypeOfBranchStep(BranchStep step,
java.lang.String value)
Sets type to the branch step. |
static void |
setTypeVariation(BranchStep branchStep)
Sets parametr typeOfBranchStep to variation. |
static void |
tryToSetTypeFromParent(BranchStep step)
Try to set up type of branchStep (var or ext) from parent, if this si possible. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TYPE_EXTENSION
public static final java.lang.String TYPE_VARIATION
Method Detail |
public static BranchStep create(java.lang.String stepMark, java.lang.String text)
stepMark
- text of stepMarktext
- text of step
public static void save(BranchStep branchStep, UseCase useCase, int position)
branchStep
- branchStep to be added to the use caseuseCase
- use case, branch step is additing toposition
- position in the list of branch step use casespublic static void remove(UseCase useCase, BranchStep branchStep)
branchStep
- branch step to be removed from projectpublic static void setTypeExtension(BranchStep branchStep)
branchStep
- modified branch steppublic static void setTypeVariation(BranchStep branchStep)
branchStep
- modified branch steppublic static boolean isTypeExtension(BranchStep branchStep)
branchStep
- branch step
public static java.lang.String getNextStepMark(BranchStep step)
public static java.lang.String getExtensionStepMark(BranchStep step)
public static boolean isCondition(BranchStep step)
step
- checked branch steppublic static boolean canIncludeFailure(BranchStep step)
step
- checked branch steppublic static void tryToSetTypeFromParent(BranchStep step)
step
- modified branch steppublic static void reMarkSteps(UseCase useCase, BranchStep step, java.lang.String mark)
useCase
- use case step mark belongs tostep
- branch step, which mark has to be checkedmark
- new mark fot branch steppublic static void setTypeOfBranchStep(BranchStep step, java.lang.String value)
step
- modified branch step.value
- string value of the new type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |