當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。