Java Code Examples for org.eclipse.emf.ecore.EDataType.getName()

The following are Jave code examples for showing how to use getName() of the org.eclipse.emf.ecore.EDataType class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: BIMplatform   File: Ifc2x3tc1FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 2
Project: BIMplatform   File: StoreFactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 3
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 4
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 5
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 6
Project: ttc2017smartGrids   File: MeasFactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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");
	}
}
 
Example 7
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 8
Project: BIMplatform   File: Ifc2x3tc1FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 9
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 10
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 11
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 12
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 13
Project: Saturn   File: TypesFactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 14
Project: BIMplatform   File: Ifc4FactoryImpl.java   View Source Code Vote up 5 votes
/**
 * <!-- 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;
}
 
Example 15
Project: rgse.ttc17.emoflon.tgg   File: EnumerationsFactoryImpl.java   View Source Code Vote up 4 votes
/**
 * <!-- 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;
}
 
Example 16
Project: rgse.ttc17.emoflon.tgg   File: InfAssetsFactoryImpl.java   View Source Code Vote up 4 votes
/**
 * <!-- 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");
	}
}
 
Example 17
Project: gemoc-studio   File: GexpressionsFactoryImpl.java   View Source Code Vote up 4 votes
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public GMultiplicationOperator createGMultiplicationOperatorFromString(EDataType eDataType, String initialValue) {
	GMultiplicationOperator result = GMultiplicationOperator.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
Example 18
Project: rgse.ttc17.emoflon.tgg   File: EnumerationsFactoryImpl.java   View Source Code Vote up 4 votes
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DirectionPhaseKind createDirectionPhaseKindFromString(EDataType eDataType, String initialValue) {
	DirectionPhaseKind result = DirectionPhaseKind.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
Example 19
Project: rgse.ttc17.emoflon.tgg   File: EnumerationsFactoryImpl.java   View Source Code Vote up 4 votes
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public SIUnitsKind createSIUnitsKindFromString(EDataType eDataType, String initialValue) {
	SIUnitsKind result = SIUnitsKind.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
Example 20
Project: ttc2017smartGrids   File: InfAssetsFactoryImpl.java   View Source Code Vote up 4 votes
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public JointConfigurationKind createJointConfigurationKindFromString(EDataType eDataType, String initialValue) {
	JointConfigurationKind result = JointConfigurationKind.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}