directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r510296 [4/14] - in /directory/sandbox/oersoy/documentation.checklist.parent: ./ documentation.checklist.archetype/ documentation.checklist.archetype/src/ documentation.checklist.archetype/src/main/ documentation.checklist.archetype/src/mai...
Date Wed, 21 Feb 2007 23:05:34 GMT
Added: directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/CheckItemImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/CheckItemImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/CheckItemImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/CheckItemImpl.java Wed Feb 21 15:05:11 2007
@@ -0,0 +1,417 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import org.apache.maven.model.emf.documentation.checklist.CheckItem;
+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.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+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>Check Item</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.CheckItemImpl#getLabel <em>Label</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.CheckItemImpl#isRequired <em>Required</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.CheckItemImpl#getSeparator <em>Separator</em>}</li>
+ *   <li>{@link org.apache.maven.model.emf.documentation.checklist.impl.CheckItemImpl#getRecipeReferenceId <em>Recipe Reference Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CheckItemImpl extends EObjectImpl implements CheckItem
+{
+    /**
+     * 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 #isRequired() <em>Required</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #isRequired()
+     * @generated
+     * @ordered
+     */
+    protected static final boolean REQUIRED_EDEFAULT = true;
+
+    /**
+     * The cached value of the '{@link #isRequired() <em>Required</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #isRequired()
+     * @generated
+     * @ordered
+     */
+    protected boolean required = REQUIRED_EDEFAULT;
+
+    /**
+     * This is true if the Required attribute has been set.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    protected boolean requiredESet = false;
+
+    /**
+     * The cached value of the '{@link #getSeparator() <em>Separator</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSeparator()
+     * @generated
+     * @ordered
+     */
+    protected Separator separator = null;
+
+    /**
+     * The default value of the '{@link #getRecipeReferenceId() <em>Recipe Reference Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRecipeReferenceId()
+     * @generated
+     * @ordered
+     */
+    protected static final String RECIPE_REFERENCE_ID_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getRecipeReferenceId() <em>Recipe Reference Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRecipeReferenceId()
+     * @generated
+     * @ordered
+     */
+    protected String recipeReferenceId = RECIPE_REFERENCE_ID_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected CheckItemImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ChecklistPackage.Literals.CHECK_ITEM;
+    }
+
+    /**
+     * <!-- 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.CHECK_ITEM__LABEL, oldLabel, label));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isRequired()
+    {
+        return required;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRequired(boolean newRequired)
+    {
+        boolean oldRequired = required;
+        required = newRequired;
+        boolean oldRequiredESet = requiredESet;
+        requiredESet = true;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECK_ITEM__REQUIRED, oldRequired, required, !oldRequiredESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void unsetRequired()
+    {
+        boolean oldRequired = required;
+        boolean oldRequiredESet = requiredESet;
+        required = REQUIRED_EDEFAULT;
+        requiredESet = false;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.UNSET, ChecklistPackage.CHECK_ITEM__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isSetRequired()
+    {
+        return requiredESet;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Separator getSeparator()
+    {
+        return separator;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetSeparator(Separator newSeparator, NotificationChain msgs)
+    {
+        Separator oldSeparator = separator;
+        separator = newSeparator;
+        if (eNotificationRequired())
+        {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECK_ITEM__SEPARATOR, oldSeparator, newSeparator);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSeparator(Separator newSeparator)
+    {
+        if (newSeparator != separator)
+        {
+            NotificationChain msgs = null;
+            if (separator != null)
+                msgs = ((InternalEObject)separator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChecklistPackage.CHECK_ITEM__SEPARATOR, null, msgs);
+            if (newSeparator != null)
+                msgs = ((InternalEObject)newSeparator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChecklistPackage.CHECK_ITEM__SEPARATOR, null, msgs);
+            msgs = basicSetSeparator(newSeparator, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECK_ITEM__SEPARATOR, newSeparator, newSeparator));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getRecipeReferenceId()
+    {
+        return recipeReferenceId;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRecipeReferenceId(String newRecipeReferenceId)
+    {
+        String oldRecipeReferenceId = recipeReferenceId;
+        recipeReferenceId = newRecipeReferenceId;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ChecklistPackage.CHECK_ITEM__RECIPE_REFERENCE_ID, oldRecipeReferenceId, recipeReferenceId));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECK_ITEM__SEPARATOR:
+                return basicSetSeparator(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.CHECK_ITEM__LABEL:
+                return getLabel();
+            case ChecklistPackage.CHECK_ITEM__REQUIRED:
+                return isRequired() ? Boolean.TRUE : Boolean.FALSE;
+            case ChecklistPackage.CHECK_ITEM__SEPARATOR:
+                return getSeparator();
+            case ChecklistPackage.CHECK_ITEM__RECIPE_REFERENCE_ID:
+                return getRecipeReferenceId();
+        }
+        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.CHECK_ITEM__LABEL:
+                setLabel((String)newValue);
+                return;
+            case ChecklistPackage.CHECK_ITEM__REQUIRED:
+                setRequired(((Boolean)newValue).booleanValue());
+                return;
+            case ChecklistPackage.CHECK_ITEM__SEPARATOR:
+                setSeparator((Separator)newValue);
+                return;
+            case ChecklistPackage.CHECK_ITEM__RECIPE_REFERENCE_ID:
+                setRecipeReferenceId((String)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECK_ITEM__LABEL:
+                setLabel(LABEL_EDEFAULT);
+                return;
+            case ChecklistPackage.CHECK_ITEM__REQUIRED:
+                unsetRequired();
+                return;
+            case ChecklistPackage.CHECK_ITEM__SEPARATOR:
+                setSeparator((Separator)null);
+                return;
+            case ChecklistPackage.CHECK_ITEM__RECIPE_REFERENCE_ID:
+                setRecipeReferenceId(RECIPE_REFERENCE_ID_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ChecklistPackage.CHECK_ITEM__LABEL:
+                return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label);
+            case ChecklistPackage.CHECK_ITEM__REQUIRED:
+                return isSetRequired();
+            case ChecklistPackage.CHECK_ITEM__SEPARATOR:
+                return separator != null;
+            case ChecklistPackage.CHECK_ITEM__RECIPE_REFERENCE_ID:
+                return RECIPE_REFERENCE_ID_EDEFAULT == null ? recipeReferenceId != null : !RECIPE_REFERENCE_ID_EDEFAULT.equals(recipeReferenceId);
+        }
+        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(", required: ");
+        if (requiredESet) result.append(required); else result.append("<unset>");
+        result.append(", recipeReferenceId: ");
+        result.append(recipeReferenceId);
+        result.append(')');
+        return result.toString();
+    }
+
+} //CheckItemImpl

Added: directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistFactoryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistFactoryImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistFactoryImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistFactoryImpl.java Wed Feb 21 15:05:11 2007
@@ -0,0 +1,227 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.maven.model.emf.documentation.checklist.impl;
+
+import org.apache.maven.model.emf.documentation.checklist.*;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ChecklistFactoryImpl extends EFactoryImpl implements ChecklistFactory
+{
+    /**
+     * Creates the default factory implementation.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static ChecklistFactory init()
+    {
+        try
+        {
+            ChecklistFactory theChecklistFactory = (ChecklistFactory)EPackage.Registry.INSTANCE.getEFactory("http://maven.apache.org/documentation/checklists/1.0.0"); 
+            if (theChecklistFactory != null)
+            {
+                return theChecklistFactory;
+            }
+        }
+        catch (Exception exception)
+        {
+            EcorePlugin.INSTANCE.log(exception);
+        }
+        return new ChecklistFactoryImpl();
+    }
+
+    /**
+     * Creates an instance of the factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ChecklistFactoryImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public EObject create(EClass eClass)
+    {
+        switch (eClass.getClassifierID())
+        {
+            case ChecklistPackage.CHECK_ITEM: return createCheckItem();
+            case ChecklistPackage.CHECK_GROUP: return createCheckGroup();
+            case ChecklistPackage.CHECKLIST: return createChecklist();
+            case ChecklistPackage.DOCUMENT_ROOT: return createDocumentRoot();
+            case ChecklistPackage.PACKAGING_TARGET: return createPackagingTarget();
+            case ChecklistPackage.SEPARATOR: return createSeparator();
+            default:
+                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object createFromString(EDataType eDataType, String initialValue)
+    {
+        switch (eDataType.getClassifierID())
+        {
+            case ChecklistPackage.EMAP:
+                return createEMapFromString(eDataType, initialValue);
+            default:
+                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String convertToString(EDataType eDataType, Object instanceValue)
+    {
+        switch (eDataType.getClassifierID())
+        {
+            case ChecklistPackage.EMAP:
+                return convertEMapToString(eDataType, instanceValue);
+            default:
+                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public CheckItem createCheckItem()
+    {
+        CheckItemImpl checkItem = new CheckItemImpl();
+        return checkItem;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public CheckGroup createCheckGroup()
+    {
+        CheckGroupImpl checkGroup = new CheckGroupImpl();
+        return checkGroup;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Checklist createChecklist()
+    {
+        ChecklistImpl checklist = new ChecklistImpl();
+        return checklist;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DocumentRoot createDocumentRoot()
+    {
+        DocumentRootImpl documentRoot = new DocumentRootImpl();
+        return documentRoot;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PackagingTarget createPackagingTarget()
+    {
+        PackagingTargetImpl packagingTarget = new PackagingTargetImpl();
+        return packagingTarget;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Separator createSeparator()
+    {
+        SeparatorImpl separator = new SeparatorImpl();
+        return separator;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap createEMapFromString(EDataType eDataType, String initialValue)
+    {
+        return (EMap)super.createFromString(initialValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String convertEMapToString(EDataType eDataType, Object instanceValue)
+    {
+        return super.convertToString(instanceValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ChecklistPackage getChecklistPackage()
+    {
+        return (ChecklistPackage)getEPackage();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @deprecated
+     * @generated
+     */
+    @Deprecated
+    public static ChecklistPackage getPackage()
+    {
+        return ChecklistPackage.eINSTANCE;
+    }
+
+} //ChecklistFactoryImpl

Added: directory/sandbox/oersoy/documentation.checklist.parent/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.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistImpl.java Wed Feb 21 15:05:11 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.parent/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.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/ChecklistPackageImpl.java Wed Feb 21 15:05:11 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.parent/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.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/DocumentRootImpl.java Wed Feb 21 15:05:11 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.parent/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.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/PackagingTargetImpl.java Wed Feb 21 15:05:11 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.parent/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.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java?view=auto&rev=510296
==============================================================================
--- directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java (added)
+++ directory/sandbox/oersoy/documentation.checklist.parent/documentation.checklist.model.v100/src/main/java/org/apache/maven/model/emf/documentation/checklist/impl/SeparatorImpl.java Wed Feb 21 15:05:11 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



Mime
View raw message