|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.procasor.core.helper.SentenceHelper
Class with static methods for work with Sentence class
Method Summary | |
static Semantics |
createManualSemanticsFromGenerated(TypeSentence sentence)
Creates new manual semantics duplicated from generated. |
static java.lang.String |
doToken(TypeSentence s)
Returns the token. |
static java.lang.String |
getActiveTypeOfSentence(TypeSentence sentence)
Returns type of sentence "" if type is empty |
static boolean |
includesStepNonDigitLetter(java.lang.String mark)
Returns true if mark includes non-digit char. |
static java.lang.String |
isStepMarkCorrect(BranchStep branchStep,
UseCase useCase)
To each BranchStep are found his parents (can be more than one) and the lists of parents to this branchStep is filled. |
static java.lang.String |
isStepMarkCorrect(UseCaseStep useCaseStep,
UseCase useCase)
Checks whether the Mark of the UsecaseStep is correct. |
static void |
returnToGeneratedSemnatics(TypeSentence sentence)
Remove manual semantics and sets as active generated semantics. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String getActiveTypeOfSentence(TypeSentence sentence)
sentence
- sentence the type is checked frompublic static java.lang.String isStepMarkCorrect(UseCaseStep useCaseStep, UseCase useCase)
useCaseStep
- step which mark is chceckeduseCase
- use case step is come from
public static java.lang.String isStepMarkCorrect(BranchStep branchStep, UseCase useCase)
branchStep
- step which is checkeduseCase
- use case step comes from
public static java.lang.String doToken(TypeSentence s)
s
- TypeSentence
public static Semantics createManualSemanticsFromGenerated(TypeSentence sentence)
sentence
- sentece generated semantics is getted from
public static void returnToGeneratedSemnatics(TypeSentence sentence)
sentence
- sentence which is modifiedpublic static boolean includesStepNonDigitLetter(java.lang.String mark)
mark
- mark which is checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |