當前位置: 首頁>>代碼示例>>Java>>正文


Java EEnum類代碼示例

本文整理匯總了Java中org.eclipse.emf.ecore.EEnum的典型用法代碼示例。如果您正苦於以下問題:Java EEnum類的具體用法?Java EEnum怎麽用?Java EEnum使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EEnum類屬於org.eclipse.emf.ecore包,在下文中一共展示了EEnum類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: visit

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
@Override
public void visit(Enum enum1, String param) {
    if (hasElement(enum1)) {
        return;
    }

    EEnum eEnum = g_EcoreFactory.createEEnum();
    setElement(enum1, eEnum);

    eEnum.setName(enum1.getId()
        .getName()
        .toString());

    EPackage enumPackage = packageFromId(enum1.getId()
        .getNamespace());
    enumPackage.getEClassifiers()
        .add(eEnum);

    List<EEnumLiteral> eLiterals = eEnum.getELiterals();
    for (Name litName : enum1.getLiterals()) {
        EEnumLiteral eEnumLit = g_EcoreFactory.createEEnumLiteral();
        eEnumLit.setName(litName.toString());
        //eEnumLit.setLiteral(litName.toString());

        eLiterals.add(eEnumLit);
    }
}
 
開發者ID:meteoorkip,項目名稱:JavaGraph,代碼行數:28,代碼來源:TypeToEcore.java

示例2: getInputMessageType

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EEnum getInputMessageType()
{
  return inputMessageTypeEEnum;
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:9,代碼來源:MqModulePackageImpl.java

示例3: getInternalTriggerModeKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link gluemodel.substationStandard.Enumerations.InternalTriggerModeKind <em>Internal Trigger Mode Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Internal Trigger Mode Kind</em>'.
 * @see gluemodel.substationStandard.Enumerations.InternalTriggerModeKind
 * @generated
 */
EEnum getInternalTriggerModeKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:EnumerationsPackage.java

示例4: getMovingAverageReferenceType

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EEnum getMovingAverageReferenceType ()
{
    return movingAverageReferenceTypeEEnum;
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:11,代碼來源:OsgiPackageImpl.java

示例5: getRecipientTypeEnum

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EEnum getRecipientTypeEnum()
{
  return recipientTypeEnumEEnum;
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:9,代碼來源:MailModulePackageImpl.java

示例6: getFACTSDeviceKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link gluemodel.CIM.IEC61970.Informative.InfAssets.FACTSDeviceKind <em>FACTS Device Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>FACTS Device Kind</em>'.
 * @see gluemodel.CIM.IEC61970.Informative.InfAssets.FACTSDeviceKind
 * @generated
 */
EEnum getFACTSDeviceKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:InfAssetsPackage.java

示例7: getRestraintModeKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link substationStandard.Enumerations.RestraintModeKind <em>Restraint Mode Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Restraint Mode Kind</em>'.
 * @see substationStandard.Enumerations.RestraintModeKind
 * @generated
 */
EEnum getRestraintModeKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:EnumerationsPackage.java

示例8: getIfcPileTypeEnum

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link cn.dlb.bim.models.ifc2x3tc1.IfcPileTypeEnum <em>Ifc Pile Type Enum</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Ifc Pile Type Enum</em>'.
 * @see cn.dlb.bim.models.ifc2x3tc1.IfcPileTypeEnum
 * @generated
 */
EEnum getIfcPileTypeEnum();
 
開發者ID:shenan4321,項目名稱:BIMplatform,代碼行數:10,代碼來源:Ifc2x3tc1Package.java

示例9: getPSREventKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link CIM.IEC61970.Informative.InfOperations.PSREventKind <em>PSR Event Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>PSR Event Kind</em>'.
 * @see CIM.IEC61970.Informative.InfOperations.PSREventKind
 * @generated
 */
EEnum getPSREventKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:InfOperationsPackage.java

示例10: getControlOutputKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link gluemodel.substationStandard.Enumerations.ControlOutputKind <em>Control Output Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Control Output Kind</em>'.
 * @see gluemodel.substationStandard.Enumerations.ControlOutputKind
 * @generated
 */
EEnum getControlOutputKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:EnumerationsPackage.java

示例11: getStructureSupportKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link gluemodel.CIM.IEC61970.Informative.InfAssets.StructureSupportKind <em>Structure Support Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Structure Support Kind</em>'.
 * @see gluemodel.CIM.IEC61970.Informative.InfAssets.StructureSupportKind
 * @generated
 */
EEnum getStructureSupportKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:InfAssetsPackage.java

示例12: getCurveCharKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link gluemodel.substationStandard.Enumerations.CurveCharKind <em>Curve Char Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Curve Char Kind</em>'.
 * @see gluemodel.substationStandard.Enumerations.CurveCharKind
 * @generated
 */
EEnum getCurveCharKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:EnumerationsPackage.java

示例13: getErpInvoiceKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link CIM.IEC61970.Informative.InfERPSupport.ErpInvoiceKind <em>Erp Invoice Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Erp Invoice Kind</em>'.
 * @see CIM.IEC61970.Informative.InfERPSupport.ErpInvoiceKind
 * @generated
 */
EEnum getErpInvoiceKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:InfERPSupportPackage.java

示例14: getUnblockFunctionModeKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link substationStandard.Enumerations.UnblockFunctionModeKind <em>Unblock Function Mode Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Unblock Function Mode Kind</em>'.
 * @see substationStandard.Enumerations.UnblockFunctionModeKind
 * @generated
 */
EEnum getUnblockFunctionModeKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:EnumerationsPackage.java

示例15: getJointFillKind

import org.eclipse.emf.ecore.EEnum; //導入依賴的package包/類
/**
 * Returns the meta object for enum '{@link gluemodel.CIM.IEC61970.Informative.InfAssets.JointFillKind <em>Joint Fill Kind</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for enum '<em>Joint Fill Kind</em>'.
 * @see gluemodel.CIM.IEC61970.Informative.InfAssets.JointFillKind
 * @generated
 */
EEnum getJointFillKind();
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:10,代碼來源:InfAssetsPackage.java


注:本文中的org.eclipse.emf.ecore.EEnum類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。