unitsOfMeasurementObjectEDataType = createEDataType(UNITS_OF_MEASUREMENT_OBJECT);
    public void createPackageContents()    {        if (isCreated)            return;        isCreated = true;        // Create classes and their features        actionValueEClass = createEClass(ACTION_VALUE);        axisOriginEClass = createEClass(AXIS_ORIGIN);        createEAttribute(axisOriginEClass, AXIS_ORIGIN__TYPE);        createEReference(axisOriginEClass, AXIS_ORIGIN__VALUE);        boundsEClass = createEClass(BOUNDS);        createEAttribute(boundsEClass, BOUNDS__LEFT);        createEAttribute(boundsEClass, BOUNDS__TOP);        createEAttribute(boundsEClass, BOUNDS__WIDTH);        createEAttribute(boundsEClass, BOUNDS__HEIGHT);        colorDefinitionEClass = createEClass(COLOR_DEFINITION);        createEAttribute(colorDefinitionEClass, COLOR_DEFINITION__TRANSPARENCY);        createEAttribute(colorDefinitionEClass, COLOR_DEFINITION__RED);        createEAttribute(colorDefinitionEClass, COLOR_DEFINITION__GREEN);        createEAttribute(colorDefinitionEClass, COLOR_DEFINITION__BLUE);        dataPointEClass = createEClass(DATA_POINT);        createEReference(dataPointEClass, DATA_POINT__COMPONENTS);        createEAttribute(dataPointEClass, DATA_POINT__PREFIX);        createEAttribute(dataPointEClass, DATA_POINT__SUFFIX);        createEAttribute(dataPointEClass, DATA_POINT__SEPARATOR);        dataPointComponentEClass = createEClass(DATA_POINT_COMPONENT);        createEAttribute(dataPointComponentEClass, DATA_POINT_COMPONENT__TYPE);        createEReference(dataPointComponentEClass, DATA_POINT_COMPONENT__FORMAT_SPECIFIER);        dateFormatSpecifierEClass = createEClass(DATE_FORMAT_SPECIFIER);        createEAttribute(dateFormatSpecifierEClass, DATE_FORMAT_SPECIFIER__TYPE);        createEAttribute(dateFormatSpecifierEClass, DATE_FORMAT_SPECIFIER__DETAIL);        extendedPropertyEClass = createEClass(EXTENDED_PROPERTY);        createEAttribute(extendedPropertyEClass, EXTENDED_PROPERTY__NAME);        createEAttribute(extendedPropertyEClass, EXTENDED_PROPERTY__VALUE);        fillEClass = createEClass(FILL);        createEAttribute(fillEClass, FILL__TYPE);        fontDefinitionEClass = createEClass(FONT_DEFINITION);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__NAME);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__SIZE);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__BOLD);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__ITALIC);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__STRIKETHROUGH);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__UNDERLINE);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__WORD_WRAP);        createEReference(fontDefinitionEClass, FONT_DEFINITION__ALIGNMENT);        createEAttribute(fontDefinitionEClass, FONT_DEFINITION__ROTATION);        formatSpecifierEClass = createEClass(FORMAT_SPECIFIER);        gradientEClass = createEClass(GRADIENT);        createEReference(gradientEClass, GRADIENT__START_COLOR);        createEReference(gradientEClass, GRADIENT__END_COLOR);        createEAttribute(gradientEClass, GRADIENT__DIRECTION);        createEAttribute(gradientEClass, GRADIENT__CYCLIC);        createEAttribute(gradientEClass, GRADIENT__TRANSPARENCY);        imageEClass = createEClass(IMAGE);        createEAttribute(imageEClass, IMAGE__URL);        insetsEClass = createEClass(INSETS);        createEAttribute(insetsEClass, INSETS__TOP);        createEAttribute(insetsEClass, INSETS__LEFT);        createEAttribute(insetsEClass, INSETS__BOTTOM);        createEAttribute(insetsEClass, INSETS__RIGHT);        javaDateFormatSpecifierEClass = createEClass(JAVA_DATE_FORMAT_SPECIFIER);        createEAttribute(javaDateFormatSpecifierEClass, JAVA_DATE_FORMAT_SPECIFIER__PATTERN);        javaNumberFormatSpecifierEClass = createEClass(JAVA_NUMBER_FORMAT_SPECIFIER);        createEAttribute(javaNumberFormatSpecifierEClass, JAVA_NUMBER_FORMAT_SPECIFIER__PATTERN);        createEAttribute(javaNumberFormatSpecifierEClass, JAVA_NUMBER_FORMAT_SPECIFIER__MULTIPLIER);        lineAttributesEClass = createEClass(LINE_ATTRIBUTES);        createEAttribute(lineAttributesEClass, LINE_ATTRIBUTES__STYLE);        createEAttribute(lineAttributesEClass, LINE_ATTRIBUTES__THICKNESS);        createEReference(lineAttributesEClass, LINE_ATTRIBUTES__COLOR);        createEAttribute(lineAttributesEClass, LINE_ATTRIBUTES__VISIBLE);        locationEClass = createEClass(LOCATION);        createEAttribute(locationEClass, LOCATION__X);        createEAttribute(locationEClass, LOCATION__Y);        markerEClass = createEClass(MARKER);        createEAttribute(markerEClass, MARKER__TYPE);        createEAttribute(markerEClass, MARKER__SIZE);        createEAttribute(markerEClass, MARKER__VISIBLE);        numberFormatSpecifierEClass = createEClass(NUMBER_FORMAT_SPECIFIER);        createEAttribute(numberFormatSpecifierEClass, NUMBER_FORMAT_SPECIFIER__PREFIX);        createEAttribute(numberFormatSpecifierEClass, NUMBER_FORMAT_SPECIFIER__SUFFIX);        createEAttribute(numberFormatSpecifierEClass, NUMBER_FORMAT_SPECIFIER__MULTIPLIER);        createEAttribute(numberFormatSpecifierEClass, NUMBER_FORMAT_SPECIFIER__FRACTION_DIGITS);        paletteEClass = createEClass(PALETTE);        createEAttribute(paletteEClass, PALETTE__NAME);        createEReference(paletteEClass, PALETTE__ENTRIES);        scriptValueEClass = createEClass(SCRIPT_VALUE);        createEAttribute(scriptValueEClass, SCRIPT_VALUE__SCRIPT);        seriesHintEClass = createEClass(SERIES_HINT);        createEAttribute(seriesHintEClass, SERIES_HINT__SERIES_CLASS);        createEAttribute(seriesHintEClass, SERIES_HINT__MODIFIER);        seriesValueEClass = createEClass(SERIES_VALUE);        createEAttribute(seriesValueEClass, SERIES_VALUE__NAME);        sizeEClass = createEClass(SIZE);        createEAttribute(sizeEClass, SIZE__HEIGHT);        createEAttribute(sizeEClass, SIZE__WIDTH);        styleMapEClass = createEClass(STYLE_MAP);        createEAttribute(styleMapEClass, STYLE_MAP__COMPONENT_NAME);        createEAttribute(styleMapEClass, STYLE_MAP__STYLE);        textEClass = createEClass(TEXT);        createEAttribute(textEClass, TEXT__VALUE);        createEReference(textEClass, TEXT__FONT);        createEReference(textEClass, TEXT__COLOR);        textAlignmentEClass = createEClass(TEXT_ALIGNMENT);        createEAttribute(textAlignmentEClass, TEXT_ALIGNMENT__HORIZONTAL_ALIGNMENT);        createEAttribute(textAlignmentEClass, TEXT_ALIGNMENT__VERTICAL_ALIGNMENT);        tooltipValueEClass = createEClass(TOOLTIP_VALUE);        createEAttribute(tooltipValueEClass, TOOLTIP_VALUE__TEXT);        createEAttribute(tooltipValueEClass, TOOLTIP_VALUE__DELAY);        urlValueEClass = createEClass(URL_VALUE);        createEAttribute(urlValueEClass, URL_VALUE__BASE_URL);        createEAttribute(urlValueEClass, URL_VALUE__TARGET);        createEAttribute(urlValueEClass, URL_VALUE__BASE_PARAMETER_NAME);        createEAttribute(urlValueEClass, URL_VALUE__VALUE_PARAMETER_NAME);        createEAttribute(urlValueEClass, URL_VALUE__SERIES_PARAMETER_NAME);        // Create enums        actionTypeEEnum = createEEnum(ACTION_TYPE);        anchorEEnum = createEEnum(ANCHOR);        axisTypeEEnum = createEEnum(AXIS_TYPE);        chartDimensionEEnum = createEEnum(CHART_DIMENSION);        chartTypeEEnum = createEEnum(CHART_TYPE);        dataPointComponentTypeEEnum = createEEnum(DATA_POINT_COMPONENT_TYPE);        dateFormatDetailEEnum = createEEnum(DATE_FORMAT_DETAIL);        dateFormatTypeEEnum = createEEnum(DATE_FORMAT_TYPE);        directionEEnum = createEEnum(DIRECTION);        horizontalAlignmentEEnum = createEEnum(HORIZONTAL_ALIGNMENT);        intersectionTypeEEnum = createEEnum(INTERSECTION_TYPE);        leaderLineStyleEEnum = createEEnum(LEADER_LINE_STYLE);        legendItemTypeEEnum = createEEnum(LEGEND_ITEM_TYPE);        lineStyleEEnum = createEEnum(LINE_STYLE);        markerTypeEEnum = createEEnum(MARKER_TYPE);        orientationEEnum = createEEnum(ORIENTATION);        positionEEnum = createEEnum(POSITION);        riserTypeEEnum = createEEnum(RISER_TYPE);        ruleTypeEEnum = createEEnum(RULE_TYPE);        scaleUnitTypeEEnum = createEEnum(SCALE_UNIT_TYPE);        sortOptionEEnum = createEEnum(SORT_OPTION);        stretchEEnum = createEEnum(STRETCH);        styledComponentEEnum = createEEnum(STYLED_COMPONENT);        tickStyleEEnum = createEEnum(TICK_STYLE);        triggerConditionEEnum = createEEnum(TRIGGER_CONDITION);        verticalAlignmentEEnum = createEEnum(VERTICAL_ALIGNMENT);        // Create data types        actionTypeObjectEDataType = createEDataType(ACTION_TYPE_OBJECT);        anchorObjectEDataType = createEDataType(ANCHOR_OBJECT);        axisTypeObjectEDataType = createEDataType(AXIS_TYPE_OBJECT);        chartDimensionObjectEDataType = createEDataType(CHART_DIMENSION_OBJECT);        chartTypeObjectEDataType = createEDataType(CHART_TYPE_OBJECT);        dataPointComponentTypeObjectEDataType = createEDataType(DATA_POINT_COMPONENT_TYPE_OBJECT);        dateFormatDetailObjectEDataType = createEDataType(DATE_FORMAT_DETAIL_OBJECT);        dateFormatTypeObjectEDataType = createEDataType(DATE_FORMAT_TYPE_OBJECT);        directionObjectEDataType = createEDataType(DIRECTION_OBJECT);        horizontalAlignmentObjectEDataType = createEDataType(HORIZONTAL_ALIGNMENT_OBJECT);        idEDataType = createEDataType(ID);        intersectionTypeObjectEDataType = createEDataType(INTERSECTION_TYPE_OBJECT);        leaderLineStyleObjectEDataType = createEDataType(LEADER_LINE_STYLE_OBJECT);        legendItemTypeObjectEDataType = createEDataType(LEGEND_ITEM_TYPE_OBJECT);        lineStyleObjectEDataType = createEDataType(LINE_STYLE_OBJECT);        markerTypeObjectEDataType = createEDataType(MARKER_TYPE_OBJECT);        orientationObjectEDataType = createEDataType(ORIENTATION_OBJECT);        percentageEDataType = createEDataType(PERCENTAGE);        percentageObjectEDataType = createEDataType(PERCENTAGE_OBJECT);        positionObjectEDataType = createEDataType(POSITION_OBJECT);        rgbValueEDataType = createEDataType(RGB_VALUE);        rgbValueObjectEDataType = createEDataType(RGB_VALUE_OBJECT);        riserTypeObjectEDataType = createEDataType(RISER_TYPE_OBJECT);        ruleTypeObjectEDataType = createEDataType(RULE_TYPE_OBJECT);        scaleUnitTypeObjectEDataType = createEDataType(SCALE_UNIT_TYPE_OBJECT);        sortOptionObjectEDataType = createEDataType(SORT_OPTION_OBJECT);        stretchObjectEDataType = createEDataType(STRETCH_OBJECT);        styledComponentObjectEDataType = createEDataType(STYLED_COMPONENT_OBJECT);        tickStyleObjectEDataType = createEDataType(TICK_STYLE_OBJECT);        triggerConditionObjectEDataType = createEDataType(TRIGGER_CONDITION_OBJECT);        verticalAlignmentObjectEDataType = createEDataType(VERTICAL_ALIGNMENT_OBJECT);    }