| /** |
| * Copyright (c) 2006, 2007 Borland Software Corporation. |
| * 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: |
| * Richard Gronback (Borland) - initial API and implementation |
| * |
| * $Id: MindmapPackageImpl.java,v 1.6 2007/10/31 02:57:50 rgronback Exp $ |
| */ |
| package org.eclipse.gmf.examples.mindmap.impl; |
| |
| import org.eclipse.emf.ecore.EAttribute; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EDataType; |
| import org.eclipse.emf.ecore.EEnum; |
| import org.eclipse.emf.ecore.EPackage; |
| import org.eclipse.emf.ecore.EReference; |
| |
| import org.eclipse.emf.ecore.impl.EPackageImpl; |
| |
| import org.eclipse.emf.ecore.xml.type.XMLTypePackage; |
| |
| import org.eclipse.gmf.examples.mindmap.DocumentRoot; |
| import org.eclipse.gmf.examples.mindmap.Map; |
| import org.eclipse.gmf.examples.mindmap.MindmapFactory; |
| import org.eclipse.gmf.examples.mindmap.MindmapPackage; |
| import org.eclipse.gmf.examples.mindmap.Priority; |
| import org.eclipse.gmf.examples.mindmap.Relationship; |
| import org.eclipse.gmf.examples.mindmap.RelationshipType; |
| import org.eclipse.gmf.examples.mindmap.Resource; |
| import org.eclipse.gmf.examples.mindmap.ThreadItem; |
| import org.eclipse.gmf.examples.mindmap.Topic; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Package</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class MindmapPackageImpl extends EPackageImpl implements MindmapPackage { |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass documentRootEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass mapEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass relationshipEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass resourceEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass threadEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass threadItemEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EClass topicEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EEnum priorityEEnum = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EEnum relationshipTypeEEnum = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EDataType priorityObjectEDataType = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| private EDataType relationshipTypeObjectEDataType = 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 org.eclipse.gmf.examples.mindmap.MindmapPackage#eNS_URI |
| * @see #init() |
| * @generated |
| */ |
| private MindmapPackageImpl() { |
| super(eNS_URI, MindmapFactory.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. Simple |
| * dependencies are satisfied by calling this method on all |
| * dependent packages before doing anything else. This method drives |
| * initialization for interdependent packages directly, in parallel |
| * with this package, itself. |
| * <p>Of this package and its interdependencies, all packages which |
| * have not yet been registered by their URI values are first created |
| * and registered. The packages are then initialized in two steps: |
| * meta-model objects for all of the packages are created before any |
| * are initialized, since one package's meta-model objects may refer to |
| * those of another. |
| * <p>Invocation of this method will not affect any packages that have |
| * already been initialized. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #eNS_URI |
| * @see #createPackageContents() |
| * @see #initializePackageContents() |
| * @generated |
| */ |
| public static MindmapPackage init() { |
| if (isInited) return (MindmapPackage)EPackage.Registry.INSTANCE.getEPackage(MindmapPackage.eNS_URI); |
| |
| // Obtain or create and register package |
| MindmapPackageImpl theMindmapPackage = (MindmapPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof MindmapPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new MindmapPackageImpl()); |
| |
| isInited = true; |
| |
| // Initialize simple dependencies |
| XMLTypePackage.eINSTANCE.eClass(); |
| |
| // Create package meta-data objects |
| theMindmapPackage.createPackageContents(); |
| |
| // Initialize created meta-data |
| theMindmapPackage.initializePackageContents(); |
| |
| // Mark meta-data to indicate it can't be changed |
| theMindmapPackage.freeze(); |
| |
| return theMindmapPackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getDocumentRoot() { |
| return documentRootEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getDocumentRoot_Mixed() { |
| return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getDocumentRoot_XMLNSPrefixMap() { |
| return (EReference)documentRootEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getDocumentRoot_XSISchemaLocation() { |
| return (EReference)documentRootEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getDocumentRoot_Map() { |
| return (EReference)documentRootEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getMap() { |
| return mapEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getMap_RootTopics() { |
| return (EReference)mapEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getMap_Relations() { |
| return (EReference)mapEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getMap_Resources() { |
| return (EReference)mapEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getMap_Title() { |
| return (EAttribute)mapEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getRelationship() { |
| return relationshipEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getRelationship_Label() { |
| return (EAttribute)relationshipEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getRelationship_Source() { |
| return (EReference)relationshipEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getRelationship_Target() { |
| return (EReference)relationshipEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getRelationship_Type() { |
| return (EAttribute)relationshipEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getResource() { |
| return resourceEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getResource_Comments() { |
| return (EReference)resourceEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getResource_Email() { |
| return (EAttribute)resourceEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getResource_Name() { |
| return (EAttribute)resourceEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getResource_Topics() { |
| return (EReference)resourceEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getThread() { |
| return threadEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getThread_Items() { |
| return (EReference)threadEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getThread_Author() { |
| return (EReference)threadEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getThread_PostDate() { |
| return (EAttribute)threadEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getThread_Subject() { |
| return (EAttribute)threadEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getThreadItem() { |
| return threadItemEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getThreadItem_Author() { |
| return (EReference)threadItemEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getThreadItem_Body() { |
| return (EAttribute)threadItemEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getThreadItem_ItemPostDate() { |
| return (EAttribute)threadItemEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EClass getTopic() { |
| return topicEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTopic_Comments() { |
| return (EReference)topicEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTopic_Duration() { |
| return (EAttribute)topicEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTopic_EndDate() { |
| return (EAttribute)topicEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTopic_Name() { |
| return (EAttribute)topicEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTopic_PercentComplete() { |
| return (EAttribute)topicEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTopic_Priority() { |
| return (EAttribute)topicEClass.getEStructuralFeatures().get(5); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTopic_Resources() { |
| return (EReference)topicEClass.getEStructuralFeatures().get(6); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EAttribute getTopic_StartDate() { |
| return (EAttribute)topicEClass.getEStructuralFeatures().get(7); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EReference getTopic_Subtopics() { |
| return (EReference)topicEClass.getEStructuralFeatures().get(8); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EEnum getPriority() { |
| return priorityEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EEnum getRelationshipType() { |
| return relationshipTypeEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EDataType getPriorityObject() { |
| return priorityObjectEDataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EDataType getRelationshipTypeObject() { |
| return relationshipTypeObjectEDataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MindmapFactory getMindmapFactory() { |
| return (MindmapFactory)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 |
| documentRootEClass = createEClass(DOCUMENT_ROOT); |
| createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); |
| createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); |
| createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); |
| createEReference(documentRootEClass, DOCUMENT_ROOT__MAP); |
| |
| mapEClass = createEClass(MAP); |
| createEReference(mapEClass, MAP__ROOT_TOPICS); |
| createEReference(mapEClass, MAP__RELATIONS); |
| createEReference(mapEClass, MAP__RESOURCES); |
| createEAttribute(mapEClass, MAP__TITLE); |
| |
| relationshipEClass = createEClass(RELATIONSHIP); |
| createEAttribute(relationshipEClass, RELATIONSHIP__LABEL); |
| createEReference(relationshipEClass, RELATIONSHIP__SOURCE); |
| createEReference(relationshipEClass, RELATIONSHIP__TARGET); |
| createEAttribute(relationshipEClass, RELATIONSHIP__TYPE); |
| |
| resourceEClass = createEClass(RESOURCE); |
| createEReference(resourceEClass, RESOURCE__COMMENTS); |
| createEAttribute(resourceEClass, RESOURCE__EMAIL); |
| createEAttribute(resourceEClass, RESOURCE__NAME); |
| createEReference(resourceEClass, RESOURCE__TOPICS); |
| |
| threadEClass = createEClass(THREAD); |
| createEReference(threadEClass, THREAD__ITEMS); |
| createEReference(threadEClass, THREAD__AUTHOR); |
| createEAttribute(threadEClass, THREAD__POST_DATE); |
| createEAttribute(threadEClass, THREAD__SUBJECT); |
| |
| threadItemEClass = createEClass(THREAD_ITEM); |
| createEReference(threadItemEClass, THREAD_ITEM__AUTHOR); |
| createEAttribute(threadItemEClass, THREAD_ITEM__BODY); |
| createEAttribute(threadItemEClass, THREAD_ITEM__ITEM_POST_DATE); |
| |
| topicEClass = createEClass(TOPIC); |
| createEReference(topicEClass, TOPIC__COMMENTS); |
| createEAttribute(topicEClass, TOPIC__DURATION); |
| createEAttribute(topicEClass, TOPIC__END_DATE); |
| createEAttribute(topicEClass, TOPIC__NAME); |
| createEAttribute(topicEClass, TOPIC__PERCENT_COMPLETE); |
| createEAttribute(topicEClass, TOPIC__PRIORITY); |
| createEReference(topicEClass, TOPIC__RESOURCES); |
| createEAttribute(topicEClass, TOPIC__START_DATE); |
| createEReference(topicEClass, TOPIC__SUBTOPICS); |
| |
| // Create enums |
| priorityEEnum = createEEnum(PRIORITY); |
| relationshipTypeEEnum = createEEnum(RELATIONSHIP_TYPE); |
| |
| // Create data types |
| priorityObjectEDataType = createEDataType(PRIORITY_OBJECT); |
| relationshipTypeObjectEDataType = createEDataType(RELATIONSHIP_TYPE_OBJECT); |
| } |
| |
| /** |
| * <!-- 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); |
| |
| // Obtain other dependent packages |
| XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); |
| |
| // Create type parameters |
| |
| // Set bounds for type parameters |
| |
| // Add supertypes to classes |
| |
| // Initialize classes and features; add operations and parameters |
| initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getDocumentRoot_Map(), this.getMap(), null, "map", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
| |
| initEClass(mapEClass, Map.class, "Map", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getMap_RootTopics(), this.getTopic(), null, "rootTopics", null, 0, -1, Map.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getMap_Relations(), this.getRelationship(), null, "relations", null, 0, -1, Map.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getMap_Resources(), this.getResource(), null, "resources", null, 0, -1, Map.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMap_Title(), theXMLTypePackage.getString(), "title", null, 0, 1, Map.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(relationshipEClass, Relationship.class, "Relationship", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getRelationship_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, Relationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getRelationship_Source(), this.getTopic(), null, "source", null, 0, 1, Relationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getRelationship_Target(), this.getTopic(), null, "target", null, 0, 1, Relationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getRelationship_Type(), this.getRelationshipType(), "type", "DEPENDENCY", 0, 1, Relationship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getResource_Comments(), this.getThread(), this.getThread_Author(), "comments", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getResource_Email(), theXMLTypePackage.getString(), "email", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getResource_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getResource_Topics(), this.getTopic(), this.getTopic_Resources(), "topics", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(threadEClass, org.eclipse.gmf.examples.mindmap.Thread.class, "Thread", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getThread_Items(), this.getThreadItem(), null, "items", null, 0, -1, org.eclipse.gmf.examples.mindmap.Thread.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getThread_Author(), this.getResource(), this.getResource_Comments(), "author", null, 0, 1, org.eclipse.gmf.examples.mindmap.Thread.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getThread_PostDate(), theXMLTypePackage.getDate(), "postDate", null, 0, 1, org.eclipse.gmf.examples.mindmap.Thread.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getThread_Subject(), theXMLTypePackage.getString(), "subject", null, 0, 1, org.eclipse.gmf.examples.mindmap.Thread.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(threadItemEClass, ThreadItem.class, "ThreadItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getThreadItem_Author(), this.getResource(), null, "author", null, 0, 1, ThreadItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getThreadItem_Body(), theXMLTypePackage.getString(), "body", null, 0, 1, ThreadItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getThreadItem_ItemPostDate(), theXMLTypePackage.getDate(), "itemPostDate", null, 0, 1, ThreadItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(topicEClass, Topic.class, "Topic", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getTopic_Comments(), this.getThread(), null, "comments", null, 0, -1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTopic_Duration(), theXMLTypePackage.getFloat(), "duration", "0", 0, 1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTopic_EndDate(), theXMLTypePackage.getDate(), "endDate", null, 0, 1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTopic_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTopic_PercentComplete(), theXMLTypePackage.getFloat(), "percentComplete", null, 0, 1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTopic_Priority(), this.getPriority(), "priority", "ZERO", 0, 1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getTopic_Resources(), this.getResource(), this.getResource_Topics(), "resources", null, 0, -1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getTopic_StartDate(), theXMLTypePackage.getDate(), "startDate", null, 0, 1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getTopic_Subtopics(), this.getTopic(), null, "subtopics", null, 0, -1, Topic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| // Initialize enums and add enum literals |
| initEEnum(priorityEEnum, Priority.class, "Priority"); |
| addEEnumLiteral(priorityEEnum, Priority.ZERO); |
| addEEnumLiteral(priorityEEnum, Priority.ONE); |
| addEEnumLiteral(priorityEEnum, Priority.TWO); |
| addEEnumLiteral(priorityEEnum, Priority.THREE); |
| addEEnumLiteral(priorityEEnum, Priority.FOUR); |
| addEEnumLiteral(priorityEEnum, Priority.FIVE); |
| |
| initEEnum(relationshipTypeEEnum, RelationshipType.class, "RelationshipType"); |
| addEEnumLiteral(relationshipTypeEEnum, RelationshipType.DEPENDENCY); |
| addEEnumLiteral(relationshipTypeEEnum, RelationshipType.INCLUDES); |
| addEEnumLiteral(relationshipTypeEEnum, RelationshipType.EXTENDS); |
| |
| // Initialize data types |
| initEDataType(priorityObjectEDataType, Priority.class, "PriorityObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); |
| initEDataType(relationshipTypeObjectEDataType, RelationshipType.class, "RelationshipTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); |
| |
| // Create resource |
| createResource(eNS_URI); |
| |
| // Create annotations |
| // http:///org/eclipse/emf/ecore/util/ExtendedMetaData |
| createExtendedMetaDataAnnotations(); |
| } |
| |
| /** |
| * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void createExtendedMetaDataAnnotations() { |
| String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; |
| addAnnotation |
| (documentRootEClass, |
| source, |
| new String[] { |
| "name", "", |
| "kind", "mixed" |
| }); |
| addAnnotation |
| (getDocumentRoot_Mixed(), |
| source, |
| new String[] { |
| "kind", "elementWildcard", |
| "name", ":mixed" |
| }); |
| addAnnotation |
| (getDocumentRoot_XMLNSPrefixMap(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "xmlns:prefix" |
| }); |
| addAnnotation |
| (getDocumentRoot_XSISchemaLocation(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "xsi:schemaLocation" |
| }); |
| addAnnotation |
| (getDocumentRoot_Map(), |
| source, |
| new String[] { |
| "kind", "element", |
| "name", "map", |
| "namespace", "##targetNamespace" |
| }); |
| addAnnotation |
| (mapEClass, |
| source, |
| new String[] { |
| "name", "Map", |
| "kind", "elementOnly" |
| }); |
| addAnnotation |
| (getMap_RootTopics(), |
| source, |
| new String[] { |
| "kind", "element", |
| "name", "rootTopics" |
| }); |
| addAnnotation |
| (getMap_Relations(), |
| source, |
| new String[] { |
| "kind", "element", |
| "name", "relations" |
| }); |
| addAnnotation |
| (getMap_Resources(), |
| source, |
| new String[] { |
| "kind", "element", |
| "name", "resources" |
| }); |
| addAnnotation |
| (getMap_Title(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "title" |
| }); |
| addAnnotation |
| (priorityEEnum, |
| source, |
| new String[] { |
| "name", "Priority" |
| }); |
| addAnnotation |
| (priorityObjectEDataType, |
| source, |
| new String[] { |
| "name", "Priority:Object", |
| "baseType", "Priority" |
| }); |
| addAnnotation |
| (relationshipEClass, |
| source, |
| new String[] { |
| "name", "Relationship", |
| "kind", "empty" |
| }); |
| addAnnotation |
| (getRelationship_Label(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "label" |
| }); |
| addAnnotation |
| (getRelationship_Source(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "source" |
| }); |
| addAnnotation |
| (getRelationship_Target(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "target" |
| }); |
| addAnnotation |
| (getRelationship_Type(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "type" |
| }); |
| addAnnotation |
| (relationshipTypeEEnum, |
| source, |
| new String[] { |
| "name", "RelationshipType" |
| }); |
| addAnnotation |
| (relationshipTypeObjectEDataType, |
| source, |
| new String[] { |
| "name", "RelationshipType:Object", |
| "baseType", "RelationshipType" |
| }); |
| addAnnotation |
| (resourceEClass, |
| source, |
| new String[] { |
| "name", "Resource", |
| "kind", "empty" |
| }); |
| addAnnotation |
| (getResource_Comments(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "comments" |
| }); |
| addAnnotation |
| (getResource_Email(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "email" |
| }); |
| addAnnotation |
| (getResource_Name(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "name" |
| }); |
| addAnnotation |
| (getResource_Topics(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "topics" |
| }); |
| addAnnotation |
| (threadEClass, |
| source, |
| new String[] { |
| "name", "Thread", |
| "kind", "elementOnly" |
| }); |
| addAnnotation |
| (getThread_Items(), |
| source, |
| new String[] { |
| "kind", "element", |
| "name", "items" |
| }); |
| addAnnotation |
| (getThread_Author(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "author" |
| }); |
| addAnnotation |
| (getThread_PostDate(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "postDate" |
| }); |
| addAnnotation |
| (getThread_Subject(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "subject" |
| }); |
| addAnnotation |
| (threadItemEClass, |
| source, |
| new String[] { |
| "name", "ThreadItem", |
| "kind", "empty" |
| }); |
| addAnnotation |
| (getThreadItem_Author(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "author" |
| }); |
| addAnnotation |
| (getThreadItem_Body(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "body" |
| }); |
| addAnnotation |
| (getThreadItem_ItemPostDate(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "itemPostDate" |
| }); |
| addAnnotation |
| (topicEClass, |
| source, |
| new String[] { |
| "name", "Topic", |
| "kind", "elementOnly" |
| }); |
| addAnnotation |
| (getTopic_Comments(), |
| source, |
| new String[] { |
| "kind", "element", |
| "name", "comments" |
| }); |
| addAnnotation |
| (getTopic_Duration(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "duration" |
| }); |
| addAnnotation |
| (getTopic_EndDate(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "endDate" |
| }); |
| addAnnotation |
| (getTopic_Name(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "name" |
| }); |
| addAnnotation |
| (getTopic_PercentComplete(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "percentComplete" |
| }); |
| addAnnotation |
| (getTopic_Priority(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "priority" |
| }); |
| addAnnotation |
| (getTopic_Resources(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "resources" |
| }); |
| addAnnotation |
| (getTopic_StartDate(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "startDate" |
| }); |
| addAnnotation |
| (getTopic_Subtopics(), |
| source, |
| new String[] { |
| "kind", "attribute", |
| "name", "subtopics" |
| }); |
| } |
| |
| } //MindmapPackageImpl |