State
4142434445464748495051
/** * @see org.andromda.metafacades.uml.GuardFacade#getTransition() */ protected java.lang.Object handleGetTransition() { Element owner = this.metaObject.getOwner(); if (owner instanceof Transition) { return owner; } return null;
626364656667686970717273
/** * @see org.andromda.metafacades.uml.StateVertexFacade#getStateMachine() */ protected java.lang.Object handleGetStateMachine() { Element owner = this.metaObject; while (!(owner instanceof StateMachine)) { owner = owner.getOwner(); } return owner; }
134135136137138139140141142143144
modelElement); Collection stereotypeNames = Collections.EMPTY_LIST; if (modelElement instanceof Element) { Element element = (Element)modelElement; stereotypeNames = UmlUtilities.getStereotypeNames(element); } else if (modelElement instanceof ModelElementFacade) { stereotypeNames = ((ModelElementFacade)modelElement).getStereotypeNames();
3940414243444546474849505152535455565758596061
{ // Be careful. Should return true only when it has an owning transition // contained in frontend usecase // from UML1.4: return this.getTransition() instanceof FrontEndForward; // Causes stack overflow... Element owner = (Element)this.metaObject; if (!(owner.getOwner() instanceof Transition)) { return false; } while (owner != null) { if (owner instanceof UseCase) { if (this.shieldedElement(owner) instanceof FrontEndUseCase) { return true; } } owner = owner.getOwner(); } return false; }
3536373839404142434445
/** * @see org.andromda.metafacades.uml.StateMachineFacade#getContextElement() */ protected java.lang.Object handleGetContextElement() { Element context = this.metaObject.getContext(); if (context == null) { context = this.metaObject.getOwner(); } return context;
2324252627282930313233
/** * @see org.andromda.metafacades.uml.PartitionFacade#getActivityGraph() */ protected java.lang.Object handleGetActivityGraph() { Element owner = this.metaObject.getOwner(); if (owner instanceof StateMachine) { return owner; } return null;
2324252627282930
/** * @see org.andromda.metafacades.uml.ActionFacade#getTransition() */ protected java.lang.Object handleGetTransition() { final Element owner = this.metaObject.getActivity().getOwner(); return owner instanceof Transition ? owner : null; }
3233343536373839
/** * @see org.andromda.metafacades.uml.ActionFacade#getActionState() */ protected java.lang.Object handleGetActionState() { final Element owner = this.metaObject.getActivity().getOwner(); return owner instanceof State ? owner : null; }
144145146147148149150151152153154
/** * @see org.andromda.metafacades.uml.ParameterFacade#getEvent() */ protected java.lang.Object handleGetEvent() { Element owner = this.metaObject.getOwner(); if (owner instanceof Activity) { return owner; } return null;
144145146147148149150151152153154155
fsCollection, new Predicate() { public boolean evaluate(final Object candidate) { FinalState fs = (FinalState)candidate; return fs.getName().equals(useCase.getName()); } }); return fsCollection; }