public static AnnotationDocumentState transition(AnnotationDocumentStateTransition aTransition) throws IllegalArgumentException { if (aTransition.equals(NEW_TO_ANNOTATION_IN_PROGRESS)) { return AnnotationDocumentState.IN_PROGRESS; } else if (aTransition.equals(ANNOTATION_IN_PROGRESS_TO_ANNOTATION_FINISHED)) { return AnnotationDocumentState.FINISHED; } else if (aTransition.equals(ANNOTATION_FINISHED_TO_ANNOTATION_IN_PROGRESS)) { return AnnotationDocumentState.IN_PROGRESS; } else if (aTransition.equals(NEW_TO_IGNORE)) { return AnnotationDocumentState.IGNORE; } else if (aTransition.equals(IGNORE_TO_NEW)) { return AnnotationDocumentState.NEW; } else { throw new IllegalArgumentException(); } }
public static AnnotationDocumentState transition(AnnotationDocumentStateTransition aTransition) throws IllegalArgumentException { if (aTransition.equals(NEW_TO_ANNOTATION_IN_PROGRESS)) { return AnnotationDocumentState.IN_PROGRESS; } else if (aTransition.equals(ANNOTATION_IN_PROGRESS_TO_ANNOTATION_FINISHED)) { return AnnotationDocumentState.FINISHED; } else if (aTransition.equals(ANNOTATION_FINISHED_TO_ANNOTATION_IN_PROGRESS)) { return AnnotationDocumentState.IN_PROGRESS; } else if (aTransition.equals(NEW_TO_IGNORE)) { return AnnotationDocumentState.IGNORE; } else if (aTransition.equals(IGNORE_TO_NEW)) { return AnnotationDocumentState.NEW; } else { throw new IllegalArgumentException(); } }
public static AnnotationDocumentState transition(AnnotationDocumentStateTransition aTransition) throws IllegalArgumentException { if (aTransition.equals(NEW_TO_ANNOTATION_IN_PROGRESS)) { return AnnotationDocumentState.IN_PROGRESS; } else if (aTransition.equals(ANNOTATION_IN_PROGRESS_TO_ANNOTATION_FINISHED)) { return AnnotationDocumentState.FINISHED; } else if (aTransition.equals(ANNOTATION_FINISHED_TO_ANNOTATION_IN_PROGRESS)) { return AnnotationDocumentState.IN_PROGRESS; } else if (aTransition.equals(NEW_TO_IGNORE)) { return AnnotationDocumentState.IGNORE; } else if (aTransition.equals(IGNORE_TO_NEW)) { return AnnotationDocumentState.NEW; } else { throw new IllegalArgumentException(); } }