Java 类org.eclipse.emf.ecore.util.BasicInternalEList 实例源码

项目:turnus    文件:NetworkImpl.java   
/**
 * <!-- 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;
}
项目:statecharts    文件:StateImpl.java   
/**
 * <!-- 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;
}
项目:statecharts    文件:StateImpl.java   
/**
 * <!-- 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;
}
项目:statecharts    文件:StatechartImpl.java   
/**
 * <!-- 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;
}
项目:statecharts    文件:StatechartImpl.java   
/**
 * <!-- 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;
}
项目:DarwinSPL    文件:HyexpressionCopiedEObjectInternalEList.java   
public HyexpressionCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:DarwinSPL    文件:HymanifestCopiedEObjectInternalEList.java   
public HymanifestCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:DarwinSPL    文件:HymappingCopiedEObjectInternalEList.java   
public HymappingCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:DarwinSPL    文件:HyconstraintsCopiedEObjectInternalEList.java   
public HyconstraintsCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:DarwinSPL    文件:HyvalidityformulaCopiedEObjectInternalEList.java   
public HyvalidityformulaCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:DarwinSPL    文件:HydatavalueCopiedEObjectInternalEList.java   
public HydatavalueCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:DarwinSPL    文件:DwprofileCopiedEObjectInternalEList.java   
public DwprofileCopiedEObjectInternalEList(InternalEList<EObject> original) {
    super(original);
    this.original = original;
    this.copy = new BasicInternalEList<EObject>(EObject.class);
    this.copy.addAll(this.original);
}
项目:fixflow    文件:Bpmn2OppositeReferenceAdapter.java   
/**
 * 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;
}