当前位置: 首页>>代码示例>>Java>>正文


Java EStructuralFeature类代码示例

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


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

示例1: eSet

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case XmlManipModulePackage.DOCUMENT_ROOT__MIXED:
      ((FeatureMap.Internal)getMixed()).set(newValue);
      return;
    case XmlManipModulePackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
      ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
      return;
    case XmlManipModulePackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
      ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
      return;
    case XmlManipModulePackage.DOCUMENT_ROOT__XML_MANIP_CONFIGURATION:
      setXmlManipConfiguration((XmlManipConfiguration)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:25,代码来源:DocumentRootImpl.java

示例2: getRelatedResources

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
protected static Set<Resource> getRelatedResources(Resource res,
		Set<Resource> result) {
	if (result.contains(res))
		return result;
	result.add(res);
	Map<EObject, Collection<EStructuralFeature.Setting>> crossRefs = EcoreUtil.ExternalCrossReferencer
			.find(res);
	for (Map.Entry<EObject, Collection<EStructuralFeature.Setting>> entry : crossRefs
			.entrySet()) {
		EObject proxyEObject = entry.getKey();
		result.addAll(getRelatedResources(proxyEObject.eResource(), result));
	}
	return result;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:15,代码来源:EMFResource.java

示例3: associatedFeature

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#associatedFeature(java.lang.Object)
 */
public EStructuralFeature associatedFeature(Object editorKey) {
	if (editorKey == MetamodelViewsRepository.BatchProcess.Properties.name) {
		return MetamodelPackage.eINSTANCE.getComponent_Name();
	}
	if (editorKey == MetamodelViewsRepository.BatchProcess.Properties.duration) {
		return MetamodelPackage.eINSTANCE.getProcess_Duration();
	}
	if (editorKey == MetamodelViewsRepository.BatchProcess.Properties.storageOutputFlow) {
		return MetamodelPackage.eINSTANCE.getProcess_StorageOutputFlow();
	}
	if (editorKey == MetamodelViewsRepository.BatchProcess.Properties.percentageOfSuccess) {
		return MetamodelPackage.eINSTANCE.getBatchProcess_PercentageOfSuccess();
	}
	if (editorKey == MetamodelViewsRepository.BatchProcess.Properties.numberOfLines) {
		return MetamodelPackage.eINSTANCE.getBatchProcess_NumberOfChains();
	}
	if (editorKey == MetamodelViewsRepository.BatchProcess.Properties.outputs) {
		return MetamodelPackage.eINSTANCE.getBatchProcess_Outputs();
	}
	return super.associatedFeature(editorKey);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:26,代码来源:BatchProcessPropertiesEditionComponent.java

示例4: getChildrenFeatures

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures ( Object object )
{
    if ( childrenFeatures == null )
    {
        super.getChildrenFeatures ( object );
        childrenFeatures.add ( ComponentPackage.Literals.CALCULATION_MODULE__KNOWN_INPUTS );
        childrenFeatures.add ( ComponentPackage.Literals.CALCULATION_MODULE__KNOWN_OUTPUTS );
        childrenFeatures.add ( ComponentPackage.Literals.SCRIPT_MODULE__INIT_SCRIPT );
        childrenFeatures.add ( ComponentPackage.Literals.SCRIPT_MODULE__UPDATE_SCRIPT );
        childrenFeatures.add ( ComponentPackage.Literals.SCRIPT_MODULE__WRITE_COMMAND_SCRIPT );
        childrenFeatures.add ( ComponentPackage.Literals.SCRIPT_MODULE__TIMER_SCRIPT );
    }
    return childrenFeatures;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:24,代码来源:ScriptModuleItemProvider.java

示例5: associatedFeature

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#associatedFeature(java.lang.Object)
 */
public EStructuralFeature associatedFeature(Object editorKey) {
	if (editorKey == HrmViewsRepository.Timing.TimingProperties.clock) {
		return HrmPackage.eINSTANCE.getHardwareResource_Clock();
	}
	if (editorKey == HrmViewsRepository.Timing.TimingProperties.timings) {
		return HrmPackage.eINSTANCE.getHardwareMemory_Timings();
	}
	if (editorKey == HrmViewsRepository.Timing.TimingProperties.replPolicy) {
		return HrmPackage.eINSTANCE.getHardwareProcessingMemory_ReplPolicy();
	}
	if (editorKey == HrmViewsRepository.Timing.TimingProperties.writePolicy) {
		return HrmPackage.eINSTANCE.getHardwareProcessingMemory_WritePolicy();
	}
	return super.associatedFeature(editorKey);
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:20,代码来源:HardwareCacheTimingPropertiesEditionComponent.java

示例6: associatedFeature

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#associatedFeature(java.lang.Object)
 */
public EStructuralFeature associatedFeature(Object editorKey) {
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.period) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_Period();
	}
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.threshold) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_Threshold();
	}
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.name) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_Name();
	}
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.orderQuantity) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_OrderQuantity();
	}
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.orderType) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_OrderType();
	}
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.supplier) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_Supplier();
	}
	if (editorKey == MetamodelViewsRepository.OrderOnStockThreshold.Properties.storage) {
		return MetamodelPackage.eINSTANCE.getOrderOnStockThreshold_Storage();
	}
	return super.associatedFeature(editorKey);
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:29,代码来源:OrderOnStockThresholdPropertiesEditionComponent.java

示例7: performValidation

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
protected void performValidation ( final EObject target, final EStructuralFeature feature, final ValidationContext ctx )
{
    final Object service = target.eGet ( feature );
    if ( service == null )
    {
        return;
    }

    if ( ! ( service instanceof HttpServiceModule ) )
    {
        throw new IllegalStateException ( String.format ( "Validator can only handle %s", HttpServiceModule.class.getName () ) );
    }

    if ( !HttpServices.isValid ( target, (HttpServiceModule)service ) )
    {
        ctx.add ( feature, "Selected HTTP Service is not present in the target application setup. The selected service must be either a module in the same application or in the selected configuration of the application." );
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:19,代码来源:HttpServiceValidator.java

示例8: processPossibleInclude

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
protected void processPossibleInclude(CanInclude previousInclude, Include include) throws QueryException, DatabaseException {
		if (include.hasTypes()) {
			for (EClass filterClass : include.getTypes()) {
				if (!filterClass.isSuperTypeOf(currentObject.eClass())) {
//					System.out.println(filterClass.getName() + " / " + currentObject.eClass().getName());
					return;
				}
			}
		}
		if (include.hasFields()) {
			for (EStructuralFeature eStructuralFeature : include.getFields()) {
				currentObject.addUseForSerialization(eStructuralFeature);
			}
		}
		getQueryObjectProvider().push(new QueryIncludeStackFrame(getQueryObjectProvider(), getReusable(), previousInclude, include, currentObject, queryPart));
	}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:17,代码来源:DatabaseReadingStackFrame.java

示例9: writeEnum

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
private void writeEnum(EObject object, EStructuralFeature feature) throws SerializerException, IOException {
	Object val = object.eGet(feature);
	if (feature.getEType().getName().equals("Tristate")) {
		IfcParserWriterUtils.writePrimitive(val, outputStream);
	} else {
		if (val == null) {
			print(DOLLAR);
		} else {
			if (((Enum<?>) val).toString().equals(NULL)) {
				print(DOLLAR);
			} else {
				print(DOT);
				print(val.toString());
				print(DOT);
			}
		}
	}
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:19,代码来源:IfcStepSerializer.java

示例10: getChildFeature

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected EStructuralFeature getChildFeature ( Object object, Object child )
{
    // Check the type of the specified child object and return the proper feature to use for
    // adding (see {@link AddCommand}) it as a child.

    return super.getChildFeature ( object, child );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:14,代码来源:RoundedRectangleItemProvider.java

示例11: getChildFeature

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
	// Check the type of the specified child object and return the proper feature to use for
	// adding (see {@link AddCommand}) it as a child.

	return super.getChildFeature(object, child);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:12,代码来源:CurrentSessionItemProvider.java

示例12: getChildrenFeatures

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
	if (childrenFeatures == null) {
		super.getChildrenFeatures(object);
		childrenFeatures.add(GrmPackage.Literals.RESOURCE__OWNED_RESOURCE);
		childrenFeatures.add(GrmPackage.Literals.RESOURCE__PSERVICES);
		childrenFeatures.add(GrmPackage.Literals.RESOURCE__OWNED_PORT);
		childrenFeatures.add(GrmPackage.Literals.RESOURCE__OWNED_CONNECTOR);
	}
	return childrenFeatures;
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:20,代码来源:ResourceItemProvider.java

示例13: getChildrenFeatures

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures ( Object object )
{
    if ( childrenFeatures == null )
    {
        super.getChildrenFeatures ( object );
        childrenFeatures.add ( VisualInterfacePackage.Literals.FIGURE_CONTAINER__CONTENT );
    }
    return childrenFeatures;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:19,代码来源:FigureContainerItemProvider.java

示例14: getChildrenFeatures

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures ( Object object )
{
    if ( childrenFeatures == null )
    {
        super.getChildrenFeatures ( object );
        childrenFeatures.add ( WorldPackage.Literals.COMMON_DRIVER__PASSWORD );
    }
    return childrenFeatures;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:19,代码来源:CommonDriverItemProvider.java

示例15: getChildrenFeatures

import org.eclipse.emf.ecore.EStructuralFeature; //导入依赖的package包/类
/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
	if (childrenFeatures == null) {
		super.getChildrenFeatures(object);
		childrenFeatures.add(OCCIPackage.Literals.FSM__OWNED_STATE);
	}
	return childrenFeatures;
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:17,代码来源:FSMItemProvider.java


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