• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EObjectEList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.emf.ecore.util.EObjectEList的典型用法代码示例。如果您正苦于以下问题:Java EObjectEList类的具体用法?Java EObjectEList怎么用?Java EObjectEList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EObjectEList类属于org.eclipse.emf.ecore.util包,在下文中一共展示了EObjectEList类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getSharedVariables

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:turnus,项目名称:turnus,代码行数:21,代码来源:NetworkImpl.java


示例2: getPoint

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:12,代码来源:PointArrayImpl.java


示例3: getProcessingUnits

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:turnus,项目名称:turnus,代码行数:19,代码来源:ArchitectureImpl.java


示例4: getIncomingBuffers

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:turnus,项目名称:turnus,代码行数:16,代码来源:ActorImpl.java


示例5: getOutgoingBuffers

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:turnus,项目名称:turnus,代码行数:17,代码来源:ActorImpl.java


示例6: getType

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:12,代码来源:UnresolvedProxyPropertyImpl.java


示例7: getConnectionList

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:11,代码来源:ContainerNodeImpl.java


示例8: getIncomingConnectionList

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:11,代码来源:AbstractNodeImpl.java


示例9: getOutgoingConnectionList

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:11,代码来源:AbstractNodeImpl.java


示例10: getLabels

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:11,代码来源:NotationNodeImpl.java


示例11: getSourceRef

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:DataAssociationImpl.java


示例12: getSourceRef

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:13,代码来源:DataAssociationImpl.java


示例13: getBooks

import org.eclipse.emf.ecore.util.EObjectEList; //导入依赖的package包/类
/**
 * <!-- 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;
}
 
开发者ID:cbrun,项目名称:acceleo-launcher-examples,代码行数:47,代码来源:LibraryImpl.java



注:本文中的org.eclipse.emf.ecore.util.EObjectEList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ServicePort类代码示例发布时间:2022-05-22
下一篇:
Java CorbaAcceptor类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap