directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r510290 [4/13] - in /directory/sandbox/oersoy: ./ documentation.checklist.archetype/ documentation.checklist.archetype/src/ documentation.checklist.archetype/src/main/ documentation.checklist.archetype/src/main/resources/ documentation.chec...
Date Wed, 21 Feb 2007 23:01:21 GMT
Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,380 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import java.util.Collection;
+
+import org.apache.maven.model.emf.documentation.checklist.CheckGroup;
+import org.apache.maven.model.emf.documentation.checklist.Checklist;
+import org.apache.maven.model.emf.documentation.checklist.ChecklistPackage;
+import org.apache.maven.model.emf.documentation.checklist.PackagingTarget;
+
+import org.apache.maven.model.emf.documentation.recipe.Recipe;
+import org.apache.maven.model.emf.documentation.recipe.RecipePackage;
+
+import org.apache.maven.model.emf.documentation.recipe.impl.RecipeMapEntryImpl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Checklist</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.ChecklistImpl#getPackagingTarget <em>Packaging Target</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.ChecklistImpl#getCheckGroups <em>Check Groups</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.ChecklistImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.ChecklistImpl#getRecipeMap <em>Recipe Map</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ChecklistImpl extends EObjectImpl implements Checklist
+{
+    /**
+     * The cached value of the '{@link #getPackagingTarget() <em>Packaging Target</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPackagingTarget()
+     * @generated
+     * @ordered
+     */
+    protected PackagingTarget packagingTarget = null;
+
+    /**
+     * The cached value of the '{@link #getCheckGroups() <em>Check Groups</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCheckGroups()
+     * @generated
+     * @ordered
+     */
+    protected EList<CheckGroup> checkGroups = null;
+
+    /**
+     * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected static final String NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getName()
+     * @generated
+     * @ordered
+     */
+    protected String name = NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getRecipeMap() <em>Recipe Map</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRecipeMap()
+     * @generated
+     * @ordered
+     */
+    protected static final EMap RECIPE_MAP_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getRecipeMap() <em>Recipe Map</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRecipeMap()
+     * @generated
+     * @ordered
+     */
+    protected EMap recipeMap = RECIPE_MAP_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ChecklistImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ChecklistPackage.Literals.CHECKLIST;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PackagingTarget getPackagingTarget()
+    {
+        return packagingTarget;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetPackagingTarget(PackagingTarget newPackagingTarget, NotificationChain msgs)
+    {
+        PackagingTarget oldPackagingTarget = packagingTarget;
+        packagingTarget = newPackagingTarget;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECKLIST__PACKAGING_TARGET, oldPackagingTarget, newPackagingTarget);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setPackagingTarget(PackagingTarget newPackagingTarget)
+    {
+        if (newPackagingTarget != packagingTarget)
+        {
+            NotificationChain msgs = null;
+            if (packagingTarget != null)
+                msgs = ((InternalEObject)packagingTarget).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChecklistPackage.CHECKLIST__PACKAGING_TARGET, null, msgs);
+            if (newPackagingTarget != null)
+                msgs = ((InternalEObject)newPackagingTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChecklistPackage.CHECKLIST__PACKAGING_TARGET, null, msgs);
+            msgs = basicSetPackagingTarget(newPackagingTarget, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECKLIST__PACKAGING_TARGET, newPackagingTarget, newPackagingTarget));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList<CheckGroup> getCheckGroups()
+    {
+        if (checkGroups == null)
+        {
+            checkGroups = new EObjectContainmentEList<CheckGroup>(CheckGroup.class, this, ChecklistPackage.CHECKLIST__CHECK_GROUPS);
+        }
+        return checkGroups;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getName()
+    {
+        return name;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setName(String newName)
+    {
+        String oldName = name;
+        name = newName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECKLIST__NAME, oldName, name));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap getRecipeMap()
+    {
+        return recipeMap;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRecipeMap(EMap newRecipeMap)
+    {
+        EMap oldRecipeMap = recipeMap;
+        recipeMap = newRecipeMap;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECKLIST__RECIPE_MAP, oldRecipeMap, recipeMap));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECKLIST__PACKAGING_TARGET:
+                return basicSetPackagingTarget(null, msgs);
+            case ChecklistPackage.CHECKLIST__CHECK_GROUPS:
+                return ((InternalEList<?>)getCheckGroups()).basicRemove(otherEnd, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECKLIST__PACKAGING_TARGET:
+                return getPackagingTarget();
+            case ChecklistPackage.CHECKLIST__CHECK_GROUPS:
+                return getCheckGroups();
+            case ChecklistPackage.CHECKLIST__NAME:
+                return getName();
+            case ChecklistPackage.CHECKLIST__RECIPE_MAP:
+                return getRecipeMap();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @SuppressWarnings("unchecked")
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECKLIST__PACKAGING_TARGET:
+                setPackagingTarget((PackagingTarget)newValue);
+                return;
+            case ChecklistPackage.CHECKLIST__CHECK_GROUPS:
+                getCheckGroups().clear();
+                getCheckGroups().addAll((Collection<? extends CheckGroup>)newValue);
+                return;
+            case ChecklistPackage.CHECKLIST__NAME:
+                setName((String)newValue);
+                return;
+            case ChecklistPackage.CHECKLIST__RECIPE_MAP:
+                setRecipeMap((EMap)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECKLIST__PACKAGING_TARGET:
+                setPackagingTarget((PackagingTarget)null);
+                return;
+            case ChecklistPackage.CHECKLIST__CHECK_GROUPS:
+                getCheckGroups().clear();
+                return;
+            case ChecklistPackage.CHECKLIST__NAME:
+                setName(NAME_EDEFAULT);
+                return;
+            case ChecklistPackage.CHECKLIST__RECIPE_MAP:
+                setRecipeMap(RECIPE_MAP_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECKLIST__PACKAGING_TARGET:
+                return packagingTarget != null;
+            case ChecklistPackage.CHECKLIST__CHECK_GROUPS:
+                return checkGroups != null && !checkGroups.isEmpty();
+            case ChecklistPackage.CHECKLIST__NAME:
+                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+            case ChecklistPackage.CHECKLIST__RECIPE_MAP:
+                return RECIPE_MAP_EDEFAULT == null ? recipeMap != null : !RECIPE_MAP_EDEFAULT.equals(recipeMap);
+        }
+        return super.eIsSet(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String toString()
+    {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (name: ");
+        result.append(name);
+        result.append(", recipeMap: ");
+        result.append(recipeMap);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ChecklistImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,781 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import org.apache.maven.model.emf.documentation.checklist.CheckGroup;
+import org.apache.maven.model.emf.documentation.checklist.CheckItem;
+import org.apache.maven.model.emf.documentation.checklist.Checklist;
+import org.apache.maven.model.emf.documentation.checklist.ChecklistFactory;
+import org.apache.maven.model.emf.documentation.checklist.ChecklistPackage;
+import org.apache.maven.model.emf.documentation.checklist.DocumentRoot;
+import org.apache.maven.model.emf.documentation.checklist.PackagingTarget;
+import org.apache.maven.model.emf.documentation.checklist.Separator;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.apache.maven.model.emf.documentation.recipe.RecipePackage;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EOperation;
+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;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ChecklistPackageImpl extends EPackageImpl implements ChecklistPackage
+{
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass checkItemEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass checkGroupEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass checklistEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass documentRootEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass packagingTargetEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass separatorEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EDataType eMapEDataType = 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.apache.maven.model.emf.documentation.checklist.ChecklistPackage#eNS_URI
+     * @see #init()
+     * @generated
+     */
+    private ChecklistPackageImpl()
+    {
+        super(eNS_URI, ChecklistFactory.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 ChecklistPackage init()
+    {
+        if (isInited) return (ChecklistPackage)EPackage.Registry.INSTANCE.getEPackage(ChecklistPackage.eNS_URI);
+
+        // Obtain or create and register package
+        ChecklistPackageImpl theChecklistPackage = (ChecklistPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ChecklistPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ChecklistPackageImpl());
+
+        isInited = true;
+
+        // Initialize simple dependencies
+        XMLTypePackage.eINSTANCE.eClass();
+
+        // Create package meta-data objects
+        theChecklistPackage.createPackageContents();
+
+        // Initialize created meta-data
+        theChecklistPackage.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        theChecklistPackage.freeze();
+
+        return theChecklistPackage;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getCheckItem()
+    {
+        return checkItemEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCheckItem_Label()
+    {
+        return (EAttribute)checkItemEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCheckItem_Required()
+    {
+        return (EAttribute)checkItemEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getCheckItem_Separator()
+    {
+        return (EReference)checkItemEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCheckItem_RecipeReferenceId()
+    {
+        return (EAttribute)checkItemEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getCheckGroup()
+    {
+        return checkGroupEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getCheckGroup_CheckItems()
+    {
+        return (EReference)checkGroupEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCheckGroup_Id()
+    {
+        return (EAttribute)checkGroupEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCheckGroup_Label()
+    {
+        return (EAttribute)checkGroupEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getChecklist()
+    {
+        return checklistEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getChecklist_PackagingTarget()
+    {
+        return (EReference)checklistEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getChecklist_CheckGroups()
+    {
+        return (EReference)checklistEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getChecklist_Name()
+    {
+        return (EAttribute)checklistEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getChecklist_RecipeMap()
+    {
+        return (EAttribute)checklistEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- 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_Checklist()
+    {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getPackagingTarget()
+    {
+        return packagingTargetEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getPackagingTarget_Label()
+    {
+        return (EAttribute)packagingTargetEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getPackagingTarget_Type()
+    {
+        return (EAttribute)packagingTargetEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getSeparator()
+    {
+        return separatorEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSeparator_TagName()
+    {
+        return (EAttribute)separatorEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSeparator_TagBody()
+    {
+        return (EAttribute)separatorEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EDataType getEMap()
+    {
+        return eMapEDataType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ChecklistFactory getChecklistFactory()
+    {
+        return (ChecklistFactory)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
+        checkItemEClass = createEClass(CHECK_ITEM);
+        createEAttribute(checkItemEClass, CHECK_ITEM__LABEL);
+        createEAttribute(checkItemEClass, CHECK_ITEM__REQUIRED);
+        createEReference(checkItemEClass, CHECK_ITEM__SEPARATOR);
+        createEAttribute(checkItemEClass, CHECK_ITEM__RECIPE_REFERENCE_ID);
+
+        checkGroupEClass = createEClass(CHECK_GROUP);
+        createEReference(checkGroupEClass, CHECK_GROUP__CHECK_ITEMS);
+        createEAttribute(checkGroupEClass, CHECK_GROUP__ID);
+        createEAttribute(checkGroupEClass, CHECK_GROUP__LABEL);
+
+        checklistEClass = createEClass(CHECKLIST);
+        createEReference(checklistEClass, CHECKLIST__PACKAGING_TARGET);
+        createEReference(checklistEClass, CHECKLIST__CHECK_GROUPS);
+        createEAttribute(checklistEClass, CHECKLIST__NAME);
+        createEAttribute(checklistEClass, CHECKLIST__RECIPE_MAP);
+
+        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__CHECKLIST);
+
+        packagingTargetEClass = createEClass(PACKAGING_TARGET);
+        createEAttribute(packagingTargetEClass, PACKAGING_TARGET__LABEL);
+        createEAttribute(packagingTargetEClass, PACKAGING_TARGET__TYPE);
+
+        separatorEClass = createEClass(SEPARATOR);
+        createEAttribute(separatorEClass, SEPARATOR__TAG_NAME);
+        createEAttribute(separatorEClass, SEPARATOR__TAG_BODY);
+
+        // Create data types
+        eMapEDataType = createEDataType(EMAP);
+    }
+
+    /**
+     * <!-- 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(checkItemEClass, CheckItem.class, "CheckItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getCheckItem_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, CheckItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getCheckItem_Required(), theXMLTypePackage.getBoolean(), "required", "true", 0, 1, CheckItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getCheckItem_Separator(), this.getSeparator(), null, "separator", null, 0, 1, CheckItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getCheckItem_RecipeReferenceId(), theXMLTypePackage.getString(), "recipeReferenceId", null, 0, 1, CheckItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(checkGroupEClass, CheckGroup.class, "CheckGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getCheckGroup_CheckItems(), this.getCheckItem(), null, "checkItems", null, 1, -1, CheckGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getCheckGroup_Id(), theXMLTypePackage.getString(), "id", null, 0, 1, CheckGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getCheckGroup_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, CheckGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        EOperation op = addEOperation(checkGroupEClass, ecorePackage.getEString(), "getFileName", 0, 1);
+
+        initEClass(checklistEClass, Checklist.class, "Checklist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getChecklist_PackagingTarget(), this.getPackagingTarget(), null, "packagingTarget", null, 1, 1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getChecklist_CheckGroups(), this.getCheckGroup(), null, "checkGroups", null, 1, -1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getChecklist_Name(), ecorePackage.getEString(), "name", null, 0, 1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getChecklist_RecipeMap(), this.getEMap(), "recipeMap", null, 0, 1, Checklist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        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_Checklist(), this.getChecklist(), null, "checklist", null, 0, 1, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+        initEClass(packagingTargetEClass, PackagingTarget.class, "PackagingTarget", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getPackagingTarget_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, PackagingTarget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getPackagingTarget_Type(), theXMLTypePackage.getString(), "type", null, 0, 1, PackagingTarget.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(separatorEClass, Separator.class, "Separator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getSeparator_TagName(), ecorePackage.getEString(), "tagName", "h4", 1, 1, Separator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSeparator_TagBody(), ecorePackage.getEString(), "tagBody", null, 1, 1, Separator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        // Initialize data types
+        initEDataType(eMapEDataType, EMap.class, "EMap", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+        // Create resource
+        createResource(eNS_URI);
+
+        // Create annotations
+        // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+        createExtendedMetaDataAnnotations();
+        // http://www.eclipse.org/emf/2002/GenModel
+        createGenModelAnnotations();
+    }
+
+    /**
+     * 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
+          (checkItemEClass, 
+           source, 
+           new String[] 
+           {
+             "name", "CheckItem",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getCheckItem_Label(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "label"
+           });		
+        addAnnotation
+          (getCheckItem_Required(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "required"
+           });		
+        addAnnotation
+          (getCheckItem_RecipeReferenceId(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "recipeReferenceId"
+           });			
+        addAnnotation
+          (checkGroupEClass, 
+           source, 
+           new String[] 
+           {
+             "name", "CheckGroup",
+             "kind", "elementOnly"
+           });			
+        addAnnotation
+          (getCheckGroup_CheckItems(), 
+           source, 
+           new String[] 
+           {
+             "kind", "element",
+             "name", "checkItem",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getCheckGroup_Id(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "id"
+           });		
+        addAnnotation
+          (getCheckGroup_Label(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "label"
+           });			
+        addAnnotation
+          (checklistEClass, 
+           source, 
+           new String[] 
+           {
+             "name", "Checklist",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getChecklist_PackagingTarget(), 
+           source, 
+           new String[] 
+           {
+             "kind", "element",
+             "name", "packagingTarget",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getChecklist_CheckGroups(), 
+           source, 
+           new String[] 
+           {
+             "kind", "element",
+             "name", "checkGroup",
+             "namespace", "##targetNamespace"
+           });		
+        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_Checklist(), 
+           source, 
+           new String[] 
+           {
+             "kind", "element",
+             "name", "checklist",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (packagingTargetEClass, 
+           source, 
+           new String[] 
+           {
+             "name", "PackagingTarget",
+             "kind", "empty"
+           });		
+        addAnnotation
+          (getPackagingTarget_Label(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "label"
+           });		
+        addAnnotation
+          (getPackagingTarget_Type(), 
+           source, 
+           new String[] 
+           {
+             "kind", "attribute",
+             "name", "type"
+           });
+    }
+
+    /**
+     * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/GenModel</b>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected void createGenModelAnnotations()
+    {
+        String source = "http://www.eclipse.org/emf/2002/GenModel";		
+        addAnnotation
+          (checkItemEClass, 
+           source, 
+           new String[] 
+           {
+             "documentation", "1.0.0\n\n            A single check for this artifact type.\n         "
+           });						
+        addAnnotation
+          (checkGroupEClass, 
+           source, 
+           new String[] 
+           {
+             "documentation", "1.0.0\n\n            A container for a group of checks that should\n            be performed on the artifact deliverable.\n         "
+           });			
+        addAnnotation
+          (checkGroupEClass.getEOperations().get(0), 
+           source, 
+           new String[] 
+           {
+             "body", "return \"checklist\" + this.getId() + \".html\";"
+           });					
+        addAnnotation
+          (checklistEClass, 
+           source, 
+           new String[] 
+           {
+             "documentation", "1.0.0\n\n            The &lt;code&gt;&amp;lt;checklist&amp;gt;&lt;/code&gt;\n            element is the root of the descriptor. The following table\n            lists all of the possible child elements.\n         "
+           });										
+        addAnnotation
+          (packagingTargetEClass, 
+           source, 
+           new String[] 
+           {
+             "documentation", "1.0.0\n\n            The type of maven artifact (jar, war, etc.) that this\n            checklist is for.\n         "
+           });			
+    }
+
+} //ChecklistPackageImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,309 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import org.apache.maven.model.emf.documentation.checklist.Checklist;
+import org.apache.maven.model.emf.documentation.checklist.ChecklistPackage;
+import org.apache.maven.model.emf.documentation.checklist.DocumentRoot;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.DocumentRootImpl#getChecklist <em>Checklist</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot
+{
+    /**
+     * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMixed()
+     * @generated
+     * @ordered
+     */
+    protected FeatureMap mixed = null;
+
+    /**
+     * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getXMLNSPrefixMap()
+     * @generated
+     * @ordered
+     */
+    protected EMap<String, String> xMLNSPrefixMap = null;
+
+    /**
+     * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getXSISchemaLocation()
+     * @generated
+     * @ordered
+     */
+    protected EMap<String, String> xSISchemaLocation = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected DocumentRootImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ChecklistPackage.Literals.DOCUMENT_ROOT;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getMixed()
+    {
+        if (mixed == null)
+        {
+            mixed = new BasicFeatureMap(this, ChecklistPackage.DOCUMENT_ROOT__MIXED);
+        }
+        return mixed;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap<String, String> getXMLNSPrefixMap()
+    {
+        if (xMLNSPrefixMap == null)
+        {
+            xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ChecklistPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+        }
+        return xMLNSPrefixMap;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap<String, String> getXSISchemaLocation()
+    {
+        if (xSISchemaLocation == null)
+        {
+            xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, ChecklistPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+        }
+        return xSISchemaLocation;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Checklist getChecklist()
+    {
+        return (Checklist)getMixed().get(ChecklistPackage.Literals.DOCUMENT_ROOT__CHECKLIST, true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetChecklist(Checklist newChecklist, NotificationChain msgs)
+    {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(ChecklistPackage.Literals.DOCUMENT_ROOT__CHECKLIST, newChecklist, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setChecklist(Checklist newChecklist)
+    {
+        ((FeatureMap.Internal)getMixed()).set(ChecklistPackage.Literals.DOCUMENT_ROOT__CHECKLIST, newChecklist);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.DOCUMENT_ROOT__MIXED:
+                return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+            case ChecklistPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+            case ChecklistPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+            case ChecklistPackage.DOCUMENT_ROOT__CHECKLIST:
+                return basicSetChecklist(null, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.DOCUMENT_ROOT__MIXED:
+                if (coreType) return getMixed();
+                return ((FeatureMap.Internal)getMixed()).getWrapper();
+            case ChecklistPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                if (coreType) return getXMLNSPrefixMap();
+                else return getXMLNSPrefixMap().map();
+            case ChecklistPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                if (coreType) return getXSISchemaLocation();
+                else return getXSISchemaLocation().map();
+            case ChecklistPackage.DOCUMENT_ROOT__CHECKLIST:
+                return getChecklist();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.DOCUMENT_ROOT__MIXED:
+                ((FeatureMap.Internal)getMixed()).set(newValue);
+                return;
+            case ChecklistPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+                return;
+            case ChecklistPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+                return;
+            case ChecklistPackage.DOCUMENT_ROOT__CHECKLIST:
+                setChecklist((Checklist)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                return;
+            case ChecklistPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                return;
+            case ChecklistPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                return;
+            case ChecklistPackage.DOCUMENT_ROOT__CHECKLIST:
+                setChecklist((Checklist)null);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.DOCUMENT_ROOT__MIXED:
+                return mixed != null && !mixed.isEmpty();
+            case ChecklistPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+            case ChecklistPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+            case ChecklistPackage.DOCUMENT_ROOT__CHECKLIST:
+                return getChecklist() != null;
+        }
+        return super.eIsSet(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String toString()
+    {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (mixed: ");
+        result.append(mixed);
+        result.append(')');
+        return result.toString();
+    }
+
+} //DocumentRootImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,237 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import org.apache.maven.model.emf.documentation.checklist.ChecklistPackage;
+import org.apache.maven.model.emf.documentation.checklist.PackagingTarget;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Packaging Target</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.PackagingTargetImpl#getLabel <em>Label</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.PackagingTargetImpl#getType <em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PackagingTargetImpl extends EObjectImpl implements PackagingTarget
+{
+    /**
+     * The default value of the '{@link #getLabel() <em>Label</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getLabel()
+     * @generated
+     * @ordered
+     */
+    protected static final String LABEL_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getLabel() <em>Label</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getLabel()
+     * @generated
+     * @ordered
+     */
+    protected String label = LABEL_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getType()
+     * @generated
+     * @ordered
+     */
+    protected static final String TYPE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getType()
+     * @generated
+     * @ordered
+     */
+    protected String type = TYPE_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected PackagingTargetImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ChecklistPackage.Literals.PACKAGING_TARGET;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getLabel()
+    {
+        return label;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setLabel(String newLabel)
+    {
+        String oldLabel = label;
+        label = newLabel;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.PACKAGING_TARGET__LABEL, oldLabel, label));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getType()
+    {
+        return type;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setType(String newType)
+    {
+        String oldType = type;
+        type = newType;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.PACKAGING_TARGET__TYPE, oldType, type));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.PACKAGING_TARGET__LABEL:
+                return getLabel();
+            case ChecklistPackage.PACKAGING_TARGET__TYPE:
+                return getType();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.PACKAGING_TARGET__LABEL:
+                setLabel((String)newValue);
+                return;
+            case ChecklistPackage.PACKAGING_TARGET__TYPE:
+                setType((String)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.PACKAGING_TARGET__LABEL:
+                setLabel(LABEL_EDEFAULT);
+                return;
+            case ChecklistPackage.PACKAGING_TARGET__TYPE:
+                setType(TYPE_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.PACKAGING_TARGET__LABEL:
+                return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label);
+            case ChecklistPackage.PACKAGING_TARGET__TYPE:
+                return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+        }
+        return super.eIsSet(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String toString()
+    {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (label: ");
+        result.append(label);
+        result.append(", type: ");
+        result.append(type);
+        result.append(')');
+        return result.toString();
+    }
+
+} //PackagingTargetImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,237 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import org.apache.maven.model.emf.documentation.checklist.ChecklistPackage;
+import org.apache.maven.model.emf.documentation.checklist.Separator;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Separator</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.SeparatorImpl#getTagName <em>Tag Name</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.SeparatorImpl#getTagBody <em>Tag Body</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SeparatorImpl extends EObjectImpl implements Separator
+{
+    /**
+     * The default value of the '{@link #getTagName() <em>Tag Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTagName()
+     * @generated
+     * @ordered
+     */
+    protected static final String TAG_NAME_EDEFAULT = "h4";
+
+    /**
+     * The cached value of the '{@link #getTagName() <em>Tag Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTagName()
+     * @generated
+     * @ordered
+     */
+    protected String tagName = TAG_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getTagBody() <em>Tag Body</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTagBody()
+     * @generated
+     * @ordered
+     */
+    protected static final String TAG_BODY_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getTagBody() <em>Tag Body</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTagBody()
+     * @generated
+     * @ordered
+     */
+    protected String tagBody = TAG_BODY_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected SeparatorImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ChecklistPackage.Literals.SEPARATOR;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getTagName()
+    {
+        return tagName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setTagName(String newTagName)
+    {
+        String oldTagName = tagName;
+        tagName = newTagName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.SEPARATOR__TAG_NAME, oldTagName, tagName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getTagBody()
+    {
+        return tagBody;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setTagBody(String newTagBody)
+    {
+        String oldTagBody = tagBody;
+        tagBody = newTagBody;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.SEPARATOR__TAG_BODY, oldTagBody, tagBody));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.SEPARATOR__TAG_NAME:
+                return getTagName();
+            case ChecklistPackage.SEPARATOR__TAG_BODY:
+                return getTagBody();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.SEPARATOR__TAG_NAME:
+                setTagName((String)newValue);
+                return;
+            case ChecklistPackage.SEPARATOR__TAG_BODY:
+                setTagBody((String)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.SEPARATOR__TAG_NAME:
+                setTagName(TAG_NAME_EDEFAULT);
+                return;
+            case ChecklistPackage.SEPARATOR__TAG_BODY:
+                setTagBody(TAG_BODY_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.SEPARATOR__TAG_NAME:
+                return TAG_NAME_EDEFAULT == null ? tagName != null : !TAG_NAME_EDEFAULT.equals(tagName);
+            case ChecklistPackage.SEPARATOR__TAG_BODY:
+                return TAG_BODY_EDEFAULT == null ? tagBody != null : !TAG_BODY_EDEFAULT.equals(tagBody);
+        }
+        return super.eIsSet(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String toString()
+    {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (tagName: ");
+        result.append(tagName);
+        result.append(", tagBody: ");
+        result.append(tagBody);
+        result.append(')');
+        return result.toString();
+    }
+
+} //SeparatorImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistAdapterFactory.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistAdapterFactory.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistAdapterFactory.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistAdapterFactory.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,236 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.util;
+
+import org.apache.maven.model.emf.documentation.checklist.*;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.apache.maven.model.emf.documentation.checklist.ChecklistPackage
+ * @generated
+ */
+public class ChecklistAdapterFactory extends AdapterFactoryImpl
+{
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static ChecklistPackage modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ChecklistAdapterFactory()
+    {
+        if (modelPackage == null)
+        {
+            modelPackage = ChecklistPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Returns whether this factory is applicable for the type of the object.
+     * <!-- begin-user-doc -->
+     * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+     * <!-- end-user-doc -->
+     * @return whether this factory is applicable for the type of the object.
+     * @generated
+     */
+    @Override
+    public boolean isFactoryForType(Object object)
+    {
+        if (object == modelPackage)
+        {
+            return true;
+        }
+        if (object instanceof EObject)
+        {
+            return ((EObject)object).eClass().getEPackage() == modelPackage;
+        }
+        return false;
+    }
+
+    /**
+     * The switch the delegates to the <code>createXXX</code> methods.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ChecklistSwitch<Adapter> modelSwitch =
+        new ChecklistSwitch<Adapter>()
+        {
+            @Override
+            public Adapter caseCheckItem(CheckItem object)
+            {
+                return createCheckItemAdapter();
+            }
+            @Override
+            public Adapter caseCheckGroup(CheckGroup object)
+            {
+                return createCheckGroupAdapter();
+            }
+            @Override
+            public Adapter caseChecklist(Checklist object)
+            {
+                return createChecklistAdapter();
+            }
+            @Override
+            public Adapter caseDocumentRoot(DocumentRoot object)
+            {
+                return createDocumentRootAdapter();
+            }
+            @Override
+            public Adapter casePackagingTarget(PackagingTarget object)
+            {
+                return createPackagingTargetAdapter();
+            }
+            @Override
+            public Adapter caseSeparator(Separator object)
+            {
+                return createSeparatorAdapter();
+            }
+            @Override
+            public Adapter defaultCase(EObject object)
+            {
+                return createEObjectAdapter();
+            }
+        };
+
+    /**
+     * Creates an adapter for the <code>target</code>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param target the object to adapt.
+     * @return the adapter for the <code>target</code>.
+     * @generated
+     */
+    @Override
+    public Adapter createAdapter(Notifier target)
+    {
+        return modelSwitch.doSwitch((EObject)target);
+    }
+
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.maven.model.emf.documentation.checklist.CheckItem <em>Check Item</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.maven.model.emf.documentation.checklist.CheckItem
+     * @generated
+     */
+    public Adapter createCheckItemAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.maven.model.emf.documentation.checklist.CheckGroup <em>Check Group</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.maven.model.emf.documentation.checklist.CheckGroup
+     * @generated
+     */
+    public Adapter createCheckGroupAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.maven.model.emf.documentation.checklist.Checklist <em>Checklist</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.maven.model.emf.documentation.checklist.Checklist
+     * @generated
+     */
+    public Adapter createChecklistAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.maven.model.emf.documentation.checklist.DocumentRoot <em>Document Root</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.maven.model.emf.documentation.checklist.DocumentRoot
+     * @generated
+     */
+    public Adapter createDocumentRootAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.maven.model.emf.documentation.checklist.PackagingTarget <em>Packaging Target</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.maven.model.emf.documentation.checklist.PackagingTarget
+     * @generated
+     */
+    public Adapter createPackagingTargetAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.maven.model.emf.documentation.checklist.Separator <em>Separator</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.maven.model.emf.documentation.checklist.Separator
+     * @generated
+     */
+    public Adapter createSeparatorAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for the default case.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @generated
+     */
+    public Adapter createEObjectAdapter()
+    {
+        return null;
+    }
+
+} //ChecklistAdapterFactory

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceFactoryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceFactoryImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceFactoryImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceFactoryImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,59 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.maven.model.emf.documentation.checklist.util.ChecklistResourceImpl
+ * @generated
+ */
+public class ChecklistResourceFactoryImpl extends ResourceFactoryImpl
+{
+    /**
+     * Creates an instance of the resource factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ChecklistResourceFactoryImpl()
+    {
+        super();
+    }
+
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Resource createResource(URI uri)
+    {
+        XMLResource result = new ChecklistResourceImpl(uri);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
+        return result;
+    }
+
+} //ChecklistResourceFactoryImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceImpl.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistResourceImpl.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,34 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.apache.maven.model.emf.documentation.checklist.util.ChecklistResourceFactoryImpl
+ * @generated
+ */
+public class ChecklistResourceImpl extends XMLResourceImpl
+{
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param uri the URI of the new resource.
+     * @generated
+     */
+    public ChecklistResourceImpl(URI uri)
+    {
+        super(uri);
+    }
+
+} //ChecklistResourceImpl

Added: directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistSwitch.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistSwitch.java?view=auto&rev=510290
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistSwitch.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/util/ChecklistSwitch.java Wed Feb 21 15:01:00 2007
@@ -0,0 +1,257 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.util;
+
+import java.util.List;
+
+import org.apache.maven.model.emf.documentation.checklist.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.apache.maven.model.emf.documentation.checklist.ChecklistPackage
+ * @generated
+ */
+public class ChecklistSwitch<T> 
+{
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static ChecklistPackage modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ChecklistSwitch()
+    {
+        if (modelPackage == null)
+        {
+            modelPackage = ChecklistPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    public T doSwitch(EObject theEObject)
+    {
+        return doSwitch(theEObject.eClass(), theEObject);
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected T doSwitch(EClass theEClass, EObject theEObject)
+    {
+        if (theEClass.eContainer() == modelPackage)
+        {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else
+        {
+            List<EClass> eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch(eSuperTypes.get(0), theEObject);
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected T doSwitch(int classifierID, EObject theEObject)
+    {
+        switch (classifierID)
+        {
+            case ChecklistPackage.CHECK_ITEM:
+            {
+                CheckItem checkItem = (CheckItem)theEObject;
+                T result = caseCheckItem(checkItem);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ChecklistPackage.CHECK_GROUP:
+            {
+                CheckGroup checkGroup = (CheckGroup)theEObject;
+                T result = caseCheckGroup(checkGroup);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ChecklistPackage.CHECKLIST:
+            {
+                Checklist checklist = (Checklist)theEObject;
+                T result = caseChecklist(checklist);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ChecklistPackage.DOCUMENT_ROOT:
+            {
+                DocumentRoot documentRoot = (DocumentRoot)theEObject;
+                T result = caseDocumentRoot(documentRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ChecklistPackage.PACKAGING_TARGET:
+            {
+                PackagingTarget packagingTarget = (PackagingTarget)theEObject;
+                T result = casePackagingTarget(packagingTarget);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ChecklistPackage.SEPARATOR:
+            {
+                Separator separator = (Separator)theEObject;
+                T result = caseSeparator(separator);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Check Item</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Check Item</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseCheckItem(CheckItem object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Check Group</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Check Group</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseCheckGroup(CheckGroup object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Checklist</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Checklist</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseChecklist(Checklist object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseDocumentRoot(DocumentRoot object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Packaging Target</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Packaging Target</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T casePackagingTarget(PackagingTarget object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Separator</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Separator</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseSeparator(Separator object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch, but this is the last case anyway.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+    public T defaultCase(EObject object)
+    {
+        return null;
+    }
+
+} //ChecklistSwitch



Mime
View raw message