{ GroupingUnitType result = GroupingUnitType.get( initialValue ); if ( result == null ) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); return result; }
return createGroupingUnitTypeFromString( eDataType, initialValue );
	public Object createFromString( EDataType eDataType, String initialValue )	{		switch ( eDataType.getClassifierID( ) )		{			case AttributePackage.ACTION_TYPE :			{				ActionType result = ActionType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.ANCHOR :			{				Anchor result = Anchor.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.ANGLE_TYPE :			{				AngleType result = AngleType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.AXIS_TYPE :			{				AxisType result = AxisType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.CHART_DIMENSION :			{				ChartDimension result = ChartDimension.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.CHART_TYPE :			{				ChartType result = ChartType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.DATA_POINT_COMPONENT_TYPE :			{				DataPointComponentType result = DataPointComponentType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.DATA_TYPE :			{				DataType result = DataType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.DATE_FORMAT_DETAIL :			{				DateFormatDetail result = DateFormatDetail.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.DATE_FORMAT_TYPE :			{				DateFormatType result = DateFormatType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.DIRECTION :			{				Direction result = Direction.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.GROUPING_UNIT_TYPE :			{				GroupingUnitType result = GroupingUnitType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.HORIZONTAL_ALIGNMENT :			{				HorizontalAlignment result = HorizontalAlignment.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.INTERSECTION_TYPE :			{				IntersectionType result = IntersectionType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.LEADER_LINE_STYLE :			{				LeaderLineStyle result = LeaderLineStyle.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.LEGEND_BEHAVIOR_TYPE :			{				LegendBehaviorType result = LegendBehaviorType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.LEGEND_ITEM_TYPE :			{				LegendItemType result = LegendItemType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.LINE_DECORATOR :			{				LineDecorator result = LineDecorator.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.LINE_STYLE :			{				LineStyle result = LineStyle.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.MARKER_TYPE :			{				MarkerType result = MarkerType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.ORIENTATION :			{				Orientation result = Orientation.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.POSITION :			{				Position result = Position.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.RISER_TYPE :			{				RiserType result = RiserType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.RULE_TYPE :			{				RuleType result = RuleType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.SCALE_UNIT_TYPE :			{				ScaleUnitType result = ScaleUnitType.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.SORT_OPTION :			{				SortOption result = SortOption.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.STRETCH :			{				Stretch result = Stretch.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.STYLED_COMPONENT :			{				StyledComponent result = StyledComponent.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.TICK_STYLE :			{				TickStyle result = TickStyle.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.TRIGGER_CONDITION :			{				TriggerCondition result = TriggerCondition.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.TRIGGER_FLOW :			{				TriggerFlow result = TriggerFlow.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.UNITS_OF_MEASUREMENT :			{				UnitsOfMeasurement result = UnitsOfMeasurement.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.VERTICAL_ALIGNMENT :			{				VerticalAlignment result = VerticalAlignment.get( initialValue );				if ( result == null )					throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$				return result;			}			case AttributePackage.ACTION_TYPE_OBJECT :				return createActionTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.ANCHOR_OBJECT :				return createAnchorObjectFromString( eDataType, initialValue );			case AttributePackage.ANGLE_TYPE_OBJECT :				return createAngleTypeObjectFromString( eDataType, initialValue );			case AttributePackage.AXIS_TYPE_OBJECT :				return createAxisTypeObjectFromString( eDataType, initialValue );			case AttributePackage.CHART_DIMENSION_OBJECT :				return createChartDimensionObjectFromString( eDataType,						initialValue );			case AttributePackage.CHART_TYPE_OBJECT :				return createChartTypeObjectFromString( eDataType, initialValue );			case AttributePackage.DATA_POINT_COMPONENT_TYPE_OBJECT :				return createDataPointComponentTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.DATA_TYPE_OBJECT :				return createDataTypeObjectFromString( eDataType, initialValue );			case AttributePackage.DATE_FORMAT_DETAIL_OBJECT :				return createDateFormatDetailObjectFromString( eDataType,						initialValue );			case AttributePackage.DATE_FORMAT_TYPE_OBJECT :				return createDateFormatTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.DIRECTION_OBJECT :				return createDirectionObjectFromString( eDataType, initialValue );			case AttributePackage.GROUPING_UNIT_TYPE_OBJECT :				return createGroupingUnitTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.HORIZONTAL_ALIGNMENT_OBJECT :				return createHorizontalAlignmentObjectFromString( eDataType,						initialValue );			case AttributePackage.ID :				return createIDFromString( eDataType, initialValue );			case AttributePackage.INTERSECTION_TYPE_OBJECT :				return createIntersectionTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.LEADER_LINE_STYLE_OBJECT :				return createLeaderLineStyleObjectFromString( eDataType,						initialValue );			case AttributePackage.LEGEND_BEHAVIOR_TYPE_OBJECT :				return createLegendBehaviorTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.LEGEND_ITEM_TYPE_OBJECT :				return createLegendItemTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.LINE_DECORATOR_OBJECT :				return createLineDecoratorObjectFromString( eDataType,						initialValue );			case AttributePackage.LINE_STYLE_OBJECT :				return createLineStyleObjectFromString( eDataType, initialValue );			case AttributePackage.MARKER_TYPE_OBJECT :				return createMarkerTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.ORIENTATION_OBJECT :				return createOrientationObjectFromString( eDataType,						initialValue );			case AttributePackage.PERCENTAGE :				return createPercentageFromString( eDataType, initialValue );			case AttributePackage.PERCENTAGE_OBJECT :				return createPercentageObjectFromString( eDataType,						initialValue );			case AttributePackage.POSITION_OBJECT :				return createPositionObjectFromString( eDataType, initialValue );			case AttributePackage.RGB_VALUE :				return createRGBValueFromString( eDataType, initialValue );			case AttributePackage.RGB_VALUE_OBJECT :				return createRGBValueObjectFromString( eDataType, initialValue );			case AttributePackage.RISER_TYPE_OBJECT :				return createRiserTypeObjectFromString( eDataType, initialValue );			case AttributePackage.RULE_TYPE_OBJECT :				return createRuleTypeObjectFromString( eDataType, initialValue );			case AttributePackage.SCALE_UNIT_TYPE_OBJECT :				return createScaleUnitTypeObjectFromString( eDataType,						initialValue );			case AttributePackage.SORT_OPTION_OBJECT :				return createSortOptionObjectFromString( eDataType,						initialValue );			case AttributePackage.STRETCH_OBJECT :				return createStretchObjectFromString( eDataType, initialValue );			case AttributePackage.STYLED_COMPONENT_OBJECT :				return createStyledComponentObjectFromString( eDataType,						initialValue );			case AttributePackage.TICK_STYLE_OBJECT :				return createTickStyleObjectFromString( eDataType, initialValue );			case AttributePackage.TRIGGER_CONDITION_OBJECT :				return createTriggerConditionObjectFromString( eDataType,						initialValue );			case AttributePackage.TRIGGER_FLOW_OBJECT :				return createTriggerFlowObjectFromString( eDataType,						initialValue );			case AttributePackage.UNITS_OF_MEASUREMENT_OBJECT :				return createUnitsOfMeasurementObjectFromString( eDataType,						initialValue );			case AttributePackage.VERTICAL_ALIGNMENT_OBJECT :				return createVerticalAlignmentObjectFromString( eDataType,						initialValue );			default :				throw new IllegalArgumentException( "The datatype '" + eDataType.getName( ) + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$		}	}