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


Java EDataType.getClassifierID方法代碼示例

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


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

示例1: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
	switch (eDataType.getClassifierID()) {
		case MetamodelPackage.ORDER_TYPE:
			return createOrderTypeFromString(eDataType, initialValue);
		case MetamodelPackage.OUTPUT_TYPE:
			return createOutputTypeFromString(eDataType, initialValue);
		case MetamodelPackage.QUERY_TYPE:
			return createQueryTypeFromString(eDataType, initialValue);
		case MetamodelPackage.PERCENT:
			return createPercentFromString(eDataType, initialValue);
		case MetamodelPackage.POSITIVE_INT:
			return createPositiveIntFromString(eDataType, initialValue);
		case MetamodelPackage.POSITIVE_DOUBLE:
			return createPositiveDoubleFromString(eDataType, initialValue);
		case MetamodelPackage.POSITIVE_INT_NOT_NULL:
			return createPositiveIntNotNullFromString(eDataType, initialValue);
		case MetamodelPackage.POSITIVE_DOUBLE_NOT_NULL:
			return createPositiveDoubleNotNullFromString(eDataType, initialValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:29,代碼來源:MetamodelFactoryImpl.java

示例2: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString ( EDataType eDataType, String initialValue )
{
    switch ( eDataType.getClassifierID () )
    {
        case DeploymentPackage.FALLBACK_MAPPING_MODE:
            return createFallbackMappingModeFromString ( eDataType, initialValue );
        case DeploymentPackage.ARCHITECTURE:
            return createArchitectureFromString ( eDataType, initialValue );
        case DeploymentPackage.STARTUP_MECHANISM:
            return createStartupMechanismFromString ( eDataType, initialValue );
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:21,代碼來源:DeploymentFactoryImpl.java

示例3: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
  switch (eDataType.getClassifierID())
  {
    case ListenersPackage.RECIPIENT_TYPE_ENUM:
      return convertRecipientTypeEnumToString(eDataType, instanceValue);
    case ListenersPackage.TAP_OUTPUT_TYPE_ENUM:
      return convertTAPOutputTypeEnumToString(eDataType, instanceValue);
    case ListenersPackage.RECIPIENT_TYPE_ENUM_OBJECT:
      return convertRecipientTypeEnumObjectToString(eDataType, instanceValue);
    case ListenersPackage.TAP_OUTPUT_TYPE_ENUM_OBJECT:
      return convertTAPOutputTypeEnumObjectToString(eDataType, instanceValue);
    default:
      throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
  }
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:22,代碼來源:ListenersFactoryImpl.java

示例4: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case CIMPackage.ENUMERATED_TYPE:
			return convertEnumeratedTypeToString(eDataType, instanceValue);
		case CIMPackage.POWER_ROC_PER_MIN:
			return convertPowerROCPerMinToString(eDataType, instanceValue);
		case CIMPackage.FLOWGATE_IDC_TYPE:
			return convertFlowgateIdcTypeToString(eDataType, instanceValue);
		case CIMPackage.QUANTITY:
			return convertQuantityToString(eDataType, instanceValue);
		case CIMPackage.ENERGY_AS_MWH:
			return convertEnergyAsMWhToString(eDataType, instanceValue);
		case CIMPackage.PENALTY_FACTOR:
			return convertPenaltyFactorToString(eDataType, instanceValue);
		case CIMPackage.FREQ_BIAS_FACTOR:
			return convertFreqBiasFactorToString(eDataType, instanceValue);
		case CIMPackage.RATE_OF_CHANGE:
			return convertRateOfChangeToString(eDataType, instanceValue);
		case CIMPackage.FLOWGATE_AFC_USE_CODE:
			return convertFlowgateAfcUseCodeToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:31,代碼來源:CIMFactoryImpl.java

示例5: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case InfAssetModelsPackage.TRANSFORMER_CONSTRUCTION_KIND:
			return convertTransformerConstructionKindToString(eDataType, instanceValue);
		case InfAssetModelsPackage.WINDING_INSULATION_KIND:
			return convertWindingInsulationKindToString(eDataType, instanceValue);
		case InfAssetModelsPackage.OIL_PRESERVATION_KIND:
			return convertOilPreservationKindToString(eDataType, instanceValue);
		case InfAssetModelsPackage.TAP_CHANGER_SWITCHING_KIND:
			return convertTapChangerSwitchingKindToString(eDataType, instanceValue);
		case InfAssetModelsPackage.CABLE_SHIELD_KIND:
			return convertCableShieldKindToString(eDataType, instanceValue);
		case InfAssetModelsPackage.TRANSFORMER_FUNCTION_KIND:
			return convertTransformerFunctionKindToString(eDataType, instanceValue);
		case InfAssetModelsPackage.TRANSFORMER_CORE_KIND:
			return convertTransformerCoreKindToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:27,代碼來源:InfAssetModelsFactoryImpl.java

示例6: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
	switch (eDataType.getClassifierID()) {
	case BoemTestPackage.AN_ENUMERATION:
		return createAnEnumerationFromString(eDataType, initialValue);
	default:
		throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:i-BP,項目名稱:boem,代碼行數:15,代碼來源:BoemTestFactoryImpl.java

示例7: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case MeasPackage.VALIDITY:
			return convertValidityToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:15,代碼來源:MeasFactoryImpl.java

示例8: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
  switch (eDataType.getClassifierID())
  {
    case SaturnReportPackage.RESULT_STATUS:
      return convertResultStatusToString(eDataType, instanceValue);
    case SaturnReportPackage.RESULT_STATUS_OBJECT:
      return convertResultStatusObjectToString(eDataType, instanceValue);
    default:
      throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
  }
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:18,代碼來源:SaturnReportFactoryImpl.java

示例9: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case TypeRefsPackage.OPTIONAL_FIELD_STRATEGY:
			return convertOptionalFieldStrategyToString(eDataType, instanceValue);
		case TypeRefsPackage.PARAMETERIZED_TYPE_REF_ITERABLE:
			return convertParameterizedTypeRefIterableToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:17,代碼來源:TypeRefsFactoryImpl.java

示例10: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString ( EDataType eDataType, String initialValue )
{
    switch ( eDataType.getClassifierID () )
    {
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:15,代碼來源:ItemFactoryImpl.java

示例11: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
	switch (eDataType.getClassifierID()) {
		case SCADAPackage.SOURCE:
			return createSourceFromString(eDataType, initialValue);
		case SCADAPackage.REMOTE_UNIT_TYPE:
			return createRemoteUnitTypeFromString(eDataType, initialValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:17,代碼來源:SCADAFactoryImpl.java

示例12: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
  switch (eDataType.getClassifierID())
  {
    case EnvValidatorModulePackage.ENV_VAR_VALIDATION_TYPE:
      return convertEnvVarValidationTypeToString(eDataType, instanceValue);
    case EnvValidatorModulePackage.ENV_VAR_VALIDATION_TYPE_OBJECT:
      return convertEnvVarValidationTypeObjectToString(eDataType, instanceValue);
    default:
      throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
  }
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:18,代碼來源:EnvValidatorModuleFactoryImpl.java

示例13: convertToString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case OutagePackage.SWITCH_STATE:
			return convertSwitchStateToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:15,代碼來源:OutageFactoryImpl.java

示例14: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
	switch (eDataType.getClassifierID()) {
		case ProductionPackage.FUEL_TYPE:
			return createFuelTypeFromString(eDataType, initialValue);
		case ProductionPackage.PENSTOCK_TYPE:
			return createPenstockTypeFromString(eDataType, initialValue);
		case ProductionPackage.GENERATOR_CONTROL_SOURCE:
			return createGeneratorControlSourceFromString(eDataType, initialValue);
		case ProductionPackage.EMISSION_VALUE_SOURCE:
			return createEmissionValueSourceFromString(eDataType, initialValue);
		case ProductionPackage.GENERATOR_OPERATING_MODE:
			return createGeneratorOperatingModeFromString(eDataType, initialValue);
		case ProductionPackage.SPILLWAY_GATE_TYPE:
			return createSpillwayGateTypeFromString(eDataType, initialValue);
		case ProductionPackage.GENERATOR_CONTROL_MODE:
			return createGeneratorControlModeFromString(eDataType, initialValue);
		case ProductionPackage.HYDRO_PLANT_TYPE:
			return createHydroPlantTypeFromString(eDataType, initialValue);
		case ProductionPackage.EMISSION_TYPE:
			return createEmissionTypeFromString(eDataType, initialValue);
		case ProductionPackage.HYDRO_ENERGY_CONVERSION_KIND:
			return createHydroEnergyConversionKindFromString(eDataType, initialValue);
		case ProductionPackage.SURGE_TANK_CODE:
			return createSurgeTankCodeFromString(eDataType, initialValue);
		case ProductionPackage.HEAT_RATE:
			return createHeatRateFromString(eDataType, initialValue);
		case ProductionPackage.CLASSIFICATION:
			return createClassificationFromString(eDataType, initialValue);
		case ProductionPackage.EMISSION:
			return createEmissionFromString(eDataType, initialValue);
		case ProductionPackage.COST_PER_HEAT_UNIT:
			return createCostPerHeatUnitFromString(eDataType, initialValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:43,代碼來源:ProductionFactoryImpl.java

示例15: createFromString

import org.eclipse.emf.ecore.EDataType; //導入方法依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
	switch (eDataType.getClassifierID()) {
		case InfWorkPackage.DESIGN_KIND:
			return createDesignKindFromString(eDataType, initialValue);
		case InfWorkPackage.CONDITION_FACTOR_KIND:
			return createConditionFactorKindFromString(eDataType, initialValue);
		case InfWorkPackage.WORK_ACTION_KIND:
			return createWorkActionKindFromString(eDataType, initialValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:19,代碼來源:InfWorkFactoryImpl.java


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