/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public List<SharedVariable> getSharedVariables(String tag) { List<SharedVariable> sharedVars = new BasicInternalEList<SharedVariable>( SharedVariable.class); for (SharedVariable variable : getSharedVariables()) { if (tag.equals(variable.getTag())) sharedVars.add(variable); } return sharedVars; }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public EList<Reaction> getReactions() { EList<Reaction> result = new BasicInternalEList<Reaction>( Reaction.class); result.addAll(getOutgoingTransitions()); result.addAll(getLocalReactions()); return result; }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public EList<Reaction> getLocalReactions() { EList<Reaction> result = new BasicInternalEList<Reaction>( Reaction.class); EList<Scope> scopes = getScopes(); for (Scope scope : scopes) { result.addAll(scope.getReactions()); } return result; }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public EList<Reaction> getReactions() { EList<Reaction> result = new BasicInternalEList<Reaction>( Reaction.class); result.addAll(getLocalReactions()); return result; }
public HyexpressionCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
public HymanifestCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
public HymappingCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
public HyconstraintsCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
public HyvalidityformulaCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
public HydatavalueCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
public DwprofileCopiedEObjectInternalEList(InternalEList<EObject> original) { super(original); this.original = original; this.copy = new BasicInternalEList<EObject>(EObject.class); this.copy.addAll(this.original); }
/** * Returns a list that holds the opposite elements of the given reference for the given owner. * The opposite elements are those of type E that have the reference to owner. * * The collection corresponding to opposite in the following picture is returned, * for given owner and reference. * <pre> * <b>opposite</b> reference * E ----------------------------- owner * </pre> * * reference has to be a key of the map observedRefToOpposite. * @param <E> * @param <E> The type of the elements in the collection. * @param dataClass The class of the elements in the collection. * @param owner The object whose list is retrieved. * @param reference The reference whose opposite reference is retrieved. * @return The opposite of reference for owner. */ public <E> List<E> getOppositeList(Class<E> dataClass, InternalEObject owner, EReference reference) { EReference opposite = observedRefToOpposite.get(reference); if (opposite == null) throw new IllegalArgumentException("This reference is not observed by this adapter: " + reference.toString()); List<E> result = new BasicInternalEList<E>(dataClass); for (Setting cur : getNonNavigableInverseReferences(owner, false)) { if (cur.getEStructuralFeature().equals(reference)) result.add(dataClass.cast(cur.getEObject())); } return result; }