/** * Copyright (c) 2011 Hannes Niederhausen. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Hannes Niederhausen - Initial API and implementation * */ package de.hannesniederhausen.storynotes.model.impl; import de.hannesniederhausen.storynotes.model.Category; import de.hannesniederhausen.storynotes.model.File; import de.hannesniederhausen.storynotes.model.FileElement; import de.hannesniederhausen.storynotes.model.GenericCategory; import de.hannesniederhausen.storynotes.model.GenericNote; import de.hannesniederhausen.storynotes.model.Note; import de.hannesniederhausen.storynotes.model.PersonCategory; import de.hannesniederhausen.storynotes.model.PersonNote; import de.hannesniederhausen.storynotes.model.PlotCategory; import de.hannesniederhausen.storynotes.model.PlotNote; import de.hannesniederhausen.storynotes.model.Project; import de.hannesniederhausen.storynotes.model.SettingCategory; import de.hannesniederhausen.storynotes.model.SettingNote; import de.hannesniederhausen.storynotes.model.StorynotesFactory; import de.hannesniederhausen.storynotes.model.StorynotesPackage; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class StorynotesPackageImpl extends EPackageImpl implements StorynotesPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass fileEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass projectEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass fileElementEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass categoryEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass noteEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass personNoteEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass settingNoteEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass plotNoteEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass genericNoteEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass genericCategoryEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass personCategoryEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass settingCategoryEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass plotCategoryEClass = null; /** * Creates an instance of the model <b>Package</b>, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. * <p>Note: the correct way to create the package is via the static * factory method {@link #init init()}, which also performs * initialization of the package, or returns the registered package, * if one already exists. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.eclipse.emf.ecore.EPackage.Registry * @see de.hannesniederhausen.storynotes.model.StorynotesPackage#eNS_URI * @see #init() * @generated */ private StorynotesPackageImpl() { super(eNS_URI, StorynotesFactory.eINSTANCE); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link StorynotesPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static StorynotesPackage init() { if (isInited) return (StorynotesPackage) EPackage.Registry.INSTANCE .getEPackage(StorynotesPackage.eNS_URI); // Obtain or create and register package StorynotesPackageImpl theStorynotesPackage = (StorynotesPackageImpl) (EPackage.Registry.INSTANCE .get(eNS_URI) instanceof StorynotesPackageImpl ? EPackage.Registry.INSTANCE .get(eNS_URI) : new StorynotesPackageImpl()); isInited = true; // Create package meta-data objects theStorynotesPackage.createPackageContents(); // Initialize created meta-data theStorynotesPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theStorynotesPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(StorynotesPackage.eNS_URI, theStorynotesPackage); return theStorynotesPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getFile() { return fileEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFile_Filename() { return (EAttribute) fileEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFile_Author() { return (EAttribute) fileEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFile_Version() { return (EAttribute) fileEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getFile_Projects() { return (EReference) fileEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getProject() { return projectEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getProject_Name() { return (EAttribute) projectEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getProject_Description() { return (EAttribute) projectEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getProject_Categories() { return (EReference) projectEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getFileElement() { return fileElementEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getFileElement_Id() { return (EAttribute) fileElementEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getCategory() { return categoryEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getCategory_Name() { return (EAttribute) categoryEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getCategory_Notes() { return (EReference) categoryEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getNote() { return noteEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getNote_RefId() { return (EAttribute) noteEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getPersonNote() { return personNoteEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_Name() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_Cv() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_Age() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_HairColor() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_EyeColor() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_Size() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_Weight() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_SkinColor() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(7); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_SocialBackground() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(8); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_Hobbies() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(9); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPersonNote_PsychologicalBackground() { return (EAttribute) personNoteEClass.getEStructuralFeatures().get(10); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getSettingNote() { return settingNoteEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSettingNote_Name() { return (EAttribute) settingNoteEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSettingNote_Kind() { return (EAttribute) settingNoteEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSettingNote_Description() { return (EAttribute) settingNoteEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getPlotNote() { return plotNoteEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPlotNote_Number() { return (EAttribute) plotNoteEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPlotNote_Title() { return (EAttribute) plotNoteEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPlotNote_Description() { return (EAttribute) plotNoteEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getPlotNote_InsideOutline() { return (EAttribute) plotNoteEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getGenericNote() { return genericNoteEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getGenericNote_Title() { return (EAttribute) genericNoteEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getGenericNote_Description() { return (EAttribute) genericNoteEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getGenericCategory() { return genericCategoryEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getPersonCategory() { return personCategoryEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getSettingCategory() { return settingCategoryEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getPlotCategory() { return plotCategoryEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StorynotesFactory getStorynotesFactory() { return (StorynotesFactory) getEFactoryInstance(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private boolean isCreated = false; /** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features fileEClass = createEClass(FILE); createEAttribute(fileEClass, FILE__FILENAME); createEAttribute(fileEClass, FILE__AUTHOR); createEAttribute(fileEClass, FILE__VERSION); createEReference(fileEClass, FILE__PROJECTS); projectEClass = createEClass(PROJECT); createEAttribute(projectEClass, PROJECT__NAME); createEAttribute(projectEClass, PROJECT__DESCRIPTION); createEReference(projectEClass, PROJECT__CATEGORIES); fileElementEClass = createEClass(FILE_ELEMENT); createEAttribute(fileElementEClass, FILE_ELEMENT__ID); categoryEClass = createEClass(CATEGORY); createEAttribute(categoryEClass, CATEGORY__NAME); createEReference(categoryEClass, CATEGORY__NOTES); noteEClass = createEClass(NOTE); createEAttribute(noteEClass, NOTE__REF_ID); personNoteEClass = createEClass(PERSON_NOTE); createEAttribute(personNoteEClass, PERSON_NOTE__NAME); createEAttribute(personNoteEClass, PERSON_NOTE__CV); createEAttribute(personNoteEClass, PERSON_NOTE__AGE); createEAttribute(personNoteEClass, PERSON_NOTE__HAIR_COLOR); createEAttribute(personNoteEClass, PERSON_NOTE__EYE_COLOR); createEAttribute(personNoteEClass, PERSON_NOTE__SIZE); createEAttribute(personNoteEClass, PERSON_NOTE__WEIGHT); createEAttribute(personNoteEClass, PERSON_NOTE__SKIN_COLOR); createEAttribute(personNoteEClass, PERSON_NOTE__SOCIAL_BACKGROUND); createEAttribute(personNoteEClass, PERSON_NOTE__HOBBIES); createEAttribute(personNoteEClass, PERSON_NOTE__PSYCHOLOGICAL_BACKGROUND); settingNoteEClass = createEClass(SETTING_NOTE); createEAttribute(settingNoteEClass, SETTING_NOTE__NAME); createEAttribute(settingNoteEClass, SETTING_NOTE__KIND); createEAttribute(settingNoteEClass, SETTING_NOTE__DESCRIPTION); plotNoteEClass = createEClass(PLOT_NOTE); createEAttribute(plotNoteEClass, PLOT_NOTE__NUMBER); createEAttribute(plotNoteEClass, PLOT_NOTE__TITLE); createEAttribute(plotNoteEClass, PLOT_NOTE__DESCRIPTION); createEAttribute(plotNoteEClass, PLOT_NOTE__INSIDE_OUTLINE); genericNoteEClass = createEClass(GENERIC_NOTE); createEAttribute(genericNoteEClass, GENERIC_NOTE__TITLE); createEAttribute(genericNoteEClass, GENERIC_NOTE__DESCRIPTION); genericCategoryEClass = createEClass(GENERIC_CATEGORY); personCategoryEClass = createEClass(PERSON_CATEGORY); settingCategoryEClass = createEClass(SETTING_CATEGORY); plotCategoryEClass = createEClass(PLOT_CATEGORY); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private boolean isInitialized = false; /** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes projectEClass.getESuperTypes().add(this.getFileElement()); categoryEClass.getESuperTypes().add(this.getFileElement()); noteEClass.getESuperTypes().add(this.getFileElement()); personNoteEClass.getESuperTypes().add(this.getNote()); settingNoteEClass.getESuperTypes().add(this.getNote()); plotNoteEClass.getESuperTypes().add(this.getNote()); genericNoteEClass.getESuperTypes().add(this.getNote()); genericCategoryEClass.getESuperTypes().add(this.getCategory()); personCategoryEClass.getESuperTypes().add(this.getCategory()); settingCategoryEClass.getESuperTypes().add(this.getCategory()); plotCategoryEClass.getESuperTypes().add(this.getCategory()); // Initialize classes and features; add operations and parameters initEClass(fileEClass, File.class, "File", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getFile_Filename(), ecorePackage.getEString(), "filename", null, 0, 1, File.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFile_Author(), ecorePackage.getEString(), "author", null, 1, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFile_Version(), ecorePackage.getEString(), "version", null, 1, 1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getFile_Projects(), this.getProject(), null, "projects", null, 0, -1, File.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(projectEClass, Project.class, "Project", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getProject_Name(), ecorePackage.getEString(), "name", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getProject_Description(), ecorePackage.getEString(), "description", null, 0, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getProject_Categories(), this.getCategory(), null, "categories", null, 0, -1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(fileElementEClass, FileElement.class, "FileElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getFileElement_Id(), ecorePackage.getELong(), "id", null, 1, 1, FileElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(categoryEClass, Category.class, "Category", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCategory_Name(), ecorePackage.getEString(), "name", null, 1, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getCategory_Notes(), this.getNote(), null, "notes", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(noteEClass, Note.class, "Note", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNote_RefId(), ecorePackage.getEString(), "refId", null, 1, 1, Note.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(personNoteEClass, PersonNote.class, "PersonNote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPersonNote_Name(), ecorePackage.getEString(), "name", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_Cv(), ecorePackage.getEString(), "cv", null, 0, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_Age(), ecorePackage.getEString(), "age", null, 0, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_HairColor(), ecorePackage.getEString(), "hairColor", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_EyeColor(), ecorePackage.getEString(), "eyeColor", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_Size(), ecorePackage.getEInt(), "size", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_Weight(), ecorePackage.getEFloat(), "weight", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_SkinColor(), ecorePackage.getEString(), "skinColor", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_SocialBackground(), ecorePackage.getEString(), "socialBackground", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_Hobbies(), ecorePackage.getEString(), "hobbies", null, 1, -1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPersonNote_PsychologicalBackground(), ecorePackage.getEString(), "psychologicalBackground", null, 1, 1, PersonNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(settingNoteEClass, SettingNote.class, "SettingNote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSettingNote_Name(), ecorePackage.getEString(), "name", null, 1, 1, SettingNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSettingNote_Kind(), ecorePackage.getEString(), "kind", null, 1, 1, SettingNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSettingNote_Description(), ecorePackage.getEString(), "description", null, 1, 1, SettingNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(plotNoteEClass, PlotNote.class, "PlotNote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPlotNote_Number(), ecorePackage.getEString(), "number", null, 0, 1, PlotNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPlotNote_Title(), ecorePackage.getEString(), "title", null, 0, 1, PlotNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPlotNote_Description(), ecorePackage.getEString(), "description", null, 1, 1, PlotNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getPlotNote_InsideOutline(), ecorePackage.getEBoolean(), "insideOutline", "false", 0, 1, PlotNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(genericNoteEClass, GenericNote.class, "GenericNote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getGenericNote_Title(), ecorePackage.getEString(), "title", null, 0, 1, GenericNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getGenericNote_Description(), ecorePackage.getEString(), "description", null, 1, 1, GenericNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(genericCategoryEClass, GenericCategory.class, "GenericCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(personCategoryEClass, PersonCategory.class, "PersonCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(settingCategoryEClass, SettingCategory.class, "SettingCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(plotCategoryEClass, PlotCategory.class, "PlotCategory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); // Create resource createResource(eNS_URI); // Create annotations // http://storynote.hannesniederhausen.de/model/label createLabelAnnotations(); } /** * Initializes the annotations for <b>http://storynote.hannesniederhausen.de/model/label</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void createLabelAnnotations() { String source = "http://storynote.hannesniederhausen.de/model/label"; addAnnotation(getFile_Filename(), source, new String[] {}); addAnnotation(getProject_Name(), source, new String[] {}); addAnnotation(getCategory_Name(), source, new String[] {}); addAnnotation(getPersonNote_Name(), source, new String[] {}); addAnnotation(getSettingNote_Name(), source, new String[] {}); addAnnotation(getPlotNote_Title(), source, new String[] {}); addAnnotation(getGenericNote_Title(), source, new String[] {}); } } //StorynotesPackageImpl