本文整理汇总了Java中org.eclipse.emf.ecore.EDataType.getName方法的典型用法代码示例。如果您正苦于以下问题:Java EDataType.getName方法的具体用法?Java EDataType.getName怎么用?Java EDataType.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.ecore.EDataType
的用法示例。
在下文中一共展示了EDataType.getName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createIfcSoundScaleEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcSoundScaleEnum createIfcSoundScaleEnumFromString(EDataType eDataType, String initialValue) {
IfcSoundScaleEnum result = IfcSoundScaleEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例2: createActionStateFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActionState createActionStateFromString(EDataType eDataType, String initialValue) {
ActionState result = ActionState.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例3: createIfcWindowPanelPositionEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcWindowPanelPositionEnum createIfcWindowPanelPositionEnumFromString(EDataType eDataType, String initialValue) {
IfcWindowPanelPositionEnum result = IfcWindowPanelPositionEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例4: createIfcCrewResourceTypeEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcCrewResourceTypeEnum createIfcCrewResourceTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcCrewResourceTypeEnum result = IfcCrewResourceTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例5: createIfcMechanicalFastenerTypeEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcMechanicalFastenerTypeEnum createIfcMechanicalFastenerTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcMechanicalFastenerTypeEnum result = IfcMechanicalFastenerTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例6: 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");
}
}
示例7: createIfcReflectanceMethodEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcReflectanceMethodEnum createIfcReflectanceMethodEnumFromString(EDataType eDataType, String initialValue) {
IfcReflectanceMethodEnum result = IfcReflectanceMethodEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例8: createIfcAlarmTypeEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcAlarmTypeEnum createIfcAlarmTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcAlarmTypeEnum result = IfcAlarmTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例9: createIfcConnectionTypeEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcConnectionTypeEnum createIfcConnectionTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcConnectionTypeEnum result = IfcConnectionTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例10: createIfcDoorPanelPositionEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcDoorPanelPositionEnum createIfcDoorPanelPositionEnumFromString(EDataType eDataType, String initialValue) {
IfcDoorPanelPositionEnum result = IfcDoorPanelPositionEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例11: createIfcTankTypeEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcTankTypeEnum createIfcTankTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcTankTypeEnum result = IfcTankTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例12: createColumnTrimEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public ColumnTrimEnum createColumnTrimEnumFromString(EDataType eDataType, String initialValue)
{
ColumnTrimEnum result = ColumnTrimEnum.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例13: createIfcBurnerTypeEnumFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IfcBurnerTypeEnum createIfcBurnerTypeEnumFromString(EDataType eDataType, String initialValue) {
IfcBurnerTypeEnum result = IfcBurnerTypeEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例14: createRangeKindFromString
import org.eclipse.emf.ecore.EDataType; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public RangeKind createRangeKindFromString(EDataType eDataType, String initialValue) {
RangeKind result = RangeKind.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
示例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 InfAssetsPackage.POLE_BASE_KIND:
return createPoleBaseKindFromString(eDataType, initialValue);
case InfAssetsPackage.SHUNT_IMPEDANCE_LOCAL_CONTROL_KIND:
return createShuntImpedanceLocalControlKindFromString(eDataType, initialValue);
case InfAssetsPackage.JOINT_FILL_KIND:
return createJointFillKindFromString(eDataType, initialValue);
case InfAssetsPackage.PROCEDURE_KIND:
return createProcedureKindFromString(eDataType, initialValue);
case InfAssetsPackage.STREETLIGHT_LAMP_KIND:
return createStreetlightLampKindFromString(eDataType, initialValue);
case InfAssetsPackage.SHUNT_IMPEDANCE_CONTROL_KIND:
return createShuntImpedanceControlKindFromString(eDataType, initialValue);
case InfAssetsPackage.FAILURE_ISOLATION_METHOD_KIND:
return createFailureIsolationMethodKindFromString(eDataType, initialValue);
case InfAssetsPackage.UNDERGROUND_STRUCTURE_KIND:
return createUndergroundStructureKindFromString(eDataType, initialValue);
case InfAssetsPackage.SUBSTATION_FUNCTION_KIND:
return createSubstationFunctionKindFromString(eDataType, initialValue);
case InfAssetsPackage.COOLING_KIND:
return createCoolingKindFromString(eDataType, initialValue);
case InfAssetsPackage.POLE_PRESERVATIVE_KIND:
return createPolePreservativeKindFromString(eDataType, initialValue);
case InfAssetsPackage.POLE_TREATMENT_KIND:
return createPoleTreatmentKindFromString(eDataType, initialValue);
case InfAssetsPackage.FAULT_INDICATOR_RESET_KIND:
return createFaultIndicatorResetKindFromString(eDataType, initialValue);
case InfAssetsPackage.FACTS_DEVICE_KIND:
return createFACTSDeviceKindFromString(eDataType, initialValue);
case InfAssetsPackage.STRUCTURE_SUPPORT_KIND:
return createStructureSupportKindFromString(eDataType, initialValue);
case InfAssetsPackage.VEHICLE_USAGE_KIND:
return createVehicleUsageKindFromString(eDataType, initialValue);
case InfAssetsPackage.REGULATION_BRANCH_KIND:
return createRegulationBranchKindFromString(eDataType, initialValue);
case InfAssetsPackage.TOWER_CONSTRUCTION_KIND:
return createTowerConstructionKindFromString(eDataType, initialValue);
case InfAssetsPackage.BUSHING_INSULATION_PF_TEST_KIND:
return createBushingInsulationPfTestKindFromString(eDataType, initialValue);
case InfAssetsPackage.BUSHING_INSULATION_KIND:
return createBushingInsulationKindFromString(eDataType, initialValue);
case InfAssetsPackage.COMPOSITE_SWITCH_KIND:
return createCompositeSwitchKindFromString(eDataType, initialValue);
case InfAssetsPackage.STRUCTURE_MATERIAL_KIND:
return createStructureMaterialKindFromString(eDataType, initialValue);
case InfAssetsPackage.MEDIUM_KIND:
return createMediumKindFromString(eDataType, initialValue);
case InfAssetsPackage.ANCHOR_KIND:
return createAnchorKindFromString(eDataType, initialValue);
case InfAssetsPackage.JOINT_CONFIGURATION_KIND:
return createJointConfigurationKindFromString(eDataType, initialValue);
case InfAssetsPackage.FACILITY_KIND:
return createFacilityKindFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}