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

项目:turnus    文件:NetworkImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated NOT
 */
public List<SharedVariable> getSharedVariables() {
    List<SharedVariable> sharedVars = new EObjectEList<SharedVariable>(
            SharedVariable.class, this,
            DataflowPackage.NETWORK__SHARED_VARIABLES);

    for (Actor actor : getActors()) {
        for (Variable variable : actor.getVariables()) {
            if (variable instanceof SharedVariable) {
                sharedVars.add((SharedVariable) variable);
            }
        }
    }

    return sharedVars;
}
项目:ttc2017smartGrids    文件:PointArrayImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Point> getPoint() {
    if (point == null) {
        point = new EObjectEList<Point>(Point.class, this, DataclassesPackage.POINT_ARRAY__POINT);
    }
    return point;
}
项目:ttc2017smartGrids    文件:PointArrayImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Point> getPoint() {
    if (point == null) {
        point = new EObjectEList<Point>(Point.class, this, DataclassesPackage.POINT_ARRAY__POINT);
    }
    return point;
}
项目:rgse.ttc17.emoflon.tgg    文件:PointArrayImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Point> getPoint() {
    if (point == null) {
        point = new EObjectEList<Point>(Point.class, this, DataclassesPackage.POINT_ARRAY__POINT);
    }
    return point;
}
项目:turnus    文件:ArchitectureImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated NOT
 */
public List<ProcessingUnit> getProcessingUnits(String family) {
    List<ProcessingUnit> pus = new EObjectEList<ProcessingUnit>(
            ProcessingUnit.class, this,
            ArchitecturePackage.ARCHITECTURE___GET_PROCESSING_UNITS__STRING);

    for (ProcessingUnit pu : getProcessingUnits()) {
        if (family.equals(pu.getName())) {
            pus.add(pu);
        }
    }

    return pus;
}
项目:turnus    文件:ActorImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated NOT
 */
public List<Buffer> getIncomingBuffers() {
    EList<Buffer> buffers = new EObjectEList<Buffer>(Buffer.class, this, DataflowPackage.ACTOR__INCOMING_BUFFERS);
    for (Port port : getInputPorts()) {
        Buffer buffer = port.getInput();
        if (buffer != null && !buffers.contains(buffer)) {
            buffers.add(buffer);
        }
    }
    return buffers;
}
项目:turnus    文件:ActorImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated NOT
 */
public List<Buffer> getOutgoingBuffers() {
    EList<Buffer> buffers = new EObjectEList<Buffer>(Buffer.class, this, DataflowPackage.ACTOR__OUTGOING_BUFFERS);
    for (Port port : getOutputPorts()) {
        for (Buffer buffer : port.getOutputs()) {
            if (!buffers.contains(buffer)) {
                buffers.add(buffer);
            }
        }
    }
    return buffers;
}
项目:xtext-core    文件:UnresolvedProxyPropertyImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Type> getType() {
    if (type == null) {
        type = new EObjectEList<Type>(Type.class, this, LazyLinkingPackage.UNRESOLVED_PROXY_PROPERTY__TYPE);
    }
    return type;
}
项目:NEXCORE-UML-Modeler    文件:ContainerNodeImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EList<AbstractConnection> getConnectionList() {
    if (connectionList == null) {
        connectionList = new EObjectEList<AbstractConnection>(AbstractConnection.class, this, UMLDiagramPackage.CONTAINER_NODE__CONNECTION_LIST);
    }
    return connectionList;
}
项目:NEXCORE-UML-Modeler    文件:AbstractNodeImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EList<AbstractConnection> getIncomingConnectionList() {
    if (incomingConnectionList == null) {
        incomingConnectionList = new EObjectEList<AbstractConnection>(AbstractConnection.class, this, UMLDiagramPackage.ABSTRACT_NODE__INCOMING_CONNECTION_LIST);
    }
    return incomingConnectionList;
}
项目:NEXCORE-UML-Modeler    文件:AbstractNodeImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EList<AbstractConnection> getOutgoingConnectionList() {
    if (outgoingConnectionList == null) {
        outgoingConnectionList = new EObjectEList<AbstractConnection>(AbstractConnection.class, this, UMLDiagramPackage.ABSTRACT_NODE__OUTGOING_CONNECTION_LIST);
    }
    return outgoingConnectionList;
}
项目:NEXCORE-UML-Modeler    文件:NotationNodeImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EList<LabelNode> getLabels() {
    if (labels == null) {
        labels = new EObjectEList<LabelNode>(LabelNode.class, this, UMLDiagramPackage.NOTATION_NODE__LABELS);
    }
    return labels;
}
项目:SecureBPMN    文件:DataAssociationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public List<ItemAwareElement> getSourceRef() {
    if (sourceRef == null) {
        sourceRef = new EObjectEList<ItemAwareElement>(
                ItemAwareElement.class, this,
                Bpmn2Package.DATA_ASSOCIATION__SOURCE_REF);
    }
    return sourceRef;
}
项目:fixflow    文件:DataAssociationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public List<ItemAwareElement> getSourceRef() {
    if (sourceRef == null) {
        sourceRef = new EObjectEList<ItemAwareElement>(ItemAwareElement.class, this,
                Bpmn2Package.DATA_ASSOCIATION__SOURCE_REF);
    }
    return sourceRef;
}
项目:acceleo-launcher-examples    文件:LibraryImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public EList<Book> getBooks()
{
  if (books == null)
  {
    // create a custom list implementation that synchronizes its content
    //    with the "stock" superset
    books = new EObjectEList<Book>(Book.class, this, EXTLibraryPackage.LIBRARY__BOOKS)
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected void didAdd(int index, Book newObject)
        {
          if (getStock().indexOf(newObject) == -1)
          {
            // these lists are unordered, so index doesn't matter
            getStock().add(newObject);
          }
        }

        @Override
        protected void didRemove(int index, Book oldObject)
        {
          if (getStock().indexOf(oldObject) != -1)
          {
            // these lists are unordered, so index doesn't matter
            getStock().remove(oldObject);
          }
        }

        @Override
        protected void didSet(int index, Book newObject, Book oldObject)
        {
          didRemove(index, oldObject);
          didAdd(index, newObject);
        }
      };
  }

  return books;
}
项目:econ-na-2014-emf-edit    文件:LibraryImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public EList<Book> getBooks()
{
  if (books == null)
  {
    // create a custom list implementation that synchronizes its content
    //    with the "stock" superset
    books = new EObjectEList<Book>(Book.class, this, EXTLibraryPackage.LIBRARY__BOOKS)
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected void didAdd(int index, Book newObject)
        {
          if (getStock().indexOf(newObject) == -1)
          {
            // these lists are unordered, so index doesn't matter
            getStock().add(newObject);
          }
        }

        @Override
        protected void didRemove(int index, Book oldObject)
        {
          if (getStock().indexOf(oldObject) != -1)
          {
            // these lists are unordered, so index doesn't matter
            getStock().remove(oldObject);
          }
        }

        @Override
        protected void didSet(int index, Book newObject, Book oldObject)
        {
          didRemove(index, oldObject);
          didAdd(index, newObject);
        }
      };
  }

  return books;
}
项目:eclipse-avro    文件:LibraryImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public EList<Book> getBooks()
{
  if (books == null)
  {
    // create a custom list implementation that synchronizes its content
    //    with the "stock" superset
    books = new EObjectEList<Book>(Book.class, this, EXTLibraryPackage.LIBRARY__BOOKS)
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected void didAdd(int index, Book newObject)
        {
          if (getStock().indexOf(newObject) == -1)
          {
            // these lists are unordered, so index doesn't matter
            getStock().add(newObject);
          }
        }

        @Override
        protected void didRemove(int index, Book oldObject)
        {
          if (getStock().indexOf(oldObject) != -1)
          {
            // these lists are unordered, so index doesn't matter
            getStock().remove(oldObject);
          }
        }

        @Override
        protected void didSet(int index, Book newObject, Book oldObject)
        {
          didRemove(index, oldObject);
          didAdd(index, newObject);
        }
      };
  }

  return books;
}