org.eclipse.mylyn.reviews.core_0.9.1.v20120425-0100

return Integer.valueOf(getEnd());
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 0: 
      setStart(((Integer)newValue).intValue());
      return;
    case 1: 
      setEnd(((Integer)newValue).intValue());
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      setStart(0);
      return;
    case 1: 
      setEnd(0);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      return start != 0;
    case 1: 
      return end != 0;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (start: ");
    result.append(start);
    result.append(", end: ");
    result.append(end);
    result.append(')');
    return result.toString();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.LineRange
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.reviews.internal.core.model;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.mylyn.reviews.core.model.IFileItem;
import org.eclipse.mylyn.reviews.core.model.IFileRevision;

public class FileItem
  extends ReviewItem
  implements IFileItem
{
  protected IFileRevision base;
  protected IFileRevision target;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.FILE_ITEM;
  }
  
  public IFileRevision getBase()
  {
    if ((base != null) && (((EObject)base).eIsProxy()))
    {
      InternalEObject oldBase = (InternalEObject)base;
      base = ((IFileRevision)eResolveProxy(oldBase));
      if ((base != oldBase) && 
        (eNotificationRequired())) {
        eNotify(new ENotificationImpl(this, 9, 6, oldBase, 
          base));
      }
    }
    return base;
  }
  
  public IFileRevision basicGetBase()
  {
    return base;
  }
  
  public void setBase(IFileRevision newBase)
  {
    IFileRevision oldBase = base;
    base = newBase;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 6, oldBase, base));
    }
  }
  
  public IFileRevision getTarget()
  {
    if ((target != null) && (((EObject)target).eIsProxy()))
    {
      InternalEObject oldTarget = (InternalEObject)target;
      target = ((IFileRevision)eResolveProxy(oldTarget));
      if ((target != oldTarget) && 
        (eNotificationRequired())) {
        eNotify(new ENotificationImpl(this, 9, 7, 
          oldTarget, target));
      }
    }
    return target;
  }
  
  public IFileRevision basicGetTarget()
  {
    return target;
  }
  
  public void setTarget(IFileRevision newTarget)
  {
    IFileRevision oldTarget = target;
    target = newTarget;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 7, oldTarget, target));
    }
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 6: 
      if (resolve) {
        return getBase();
      }
      return basicGetBase();
    case 7: 
      if (resolve) {
        return getTarget();
      }
      return basicGetTarget();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 6: 
      setBase((IFileRevision)newValue);
      return;
    case 7: 
      setTarget((IFileRevision)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 6: 
      setBase(null);
      return;
    case 7: 
      setTarget(null);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 6: 
      return base != null;
    case 7: 
      return target != null;
    }
    return super.eIsSet(featureID);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.FileItem
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.reviews.internal.core.model;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.mylyn.reviews.core.model.IUser;

public class User
  extends EObjectImpl
  implements IUser
{
  protected static final String ID_EDEFAULT = null;
  protected String id = ID_EDEFAULT;
  protected static final String DISPLAY_NAME_EDEFAULT = null;
  protected String displayName = DISPLAY_NAME_EDEFAULT;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.USER;
  }
  
  public String getId()
  {
    return id;
  }
  
  public void setId(String newId)
  {
    String oldId = id;
    id = newId;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 0, oldId, id));
    }
  }
  
  public String getDisplayName()
  {
    return displayName;
  }
  
  public void setDisplayName(String newDisplayName)
  {
    String oldDisplayName = displayName;
    displayName = newDisplayName;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 1, oldDisplayName, 
        displayName));
    }
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 0: 
      return getId();
    case 1: 
      return getDisplayName();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 0: 
      setId((String)newValue);
      return;
    case 1: 
      setDisplayName((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      setId(ID_EDEFAULT);
      return;
    case 1: 
      setDisplayName(DISPLAY_NAME_EDEFAULT);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      return id != null;
    case 1: 
      return displayName != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (id: ");
    result.append(id);
    result.append(", displayName: ");
    result.append(displayName);
    result.append(')');
    return result.toString();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.User
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.reviews.internal.core.model;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.ecore.EPackage.Registry;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.eclipse.mylyn.reviews.core.model.IComment;
import org.eclipse.mylyn.reviews.core.model.ICommentType;
import org.eclipse.mylyn.reviews.core.model.IFileItem;
import org.eclipse.mylyn.reviews.core.model.IFileRevision;
import org.eclipse.mylyn.reviews.core.model.ILineLocation;
import org.eclipse.mylyn.reviews.core.model.ILineRange;
import org.eclipse.mylyn.reviews.core.model.ILocation;
import org.eclipse.mylyn.reviews.core.model.IReview;
import org.eclipse.mylyn.reviews.core.model.IReviewComponent;
import org.eclipse.mylyn.reviews.core.model.IReviewGroup;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
import org.eclipse.mylyn.reviews.core.model.IReviewItemSet;
import org.eclipse.mylyn.reviews.core.model.IReviewState;
import org.eclipse.mylyn.reviews.core.model.IReviewsFactory;
import org.eclipse.mylyn.reviews.core.model.ITaskReference;
import org.eclipse.mylyn.reviews.core.model.ITopic;
import org.eclipse.mylyn.reviews.core.model.IUser;

public class ReviewsPackage
  extends EPackageImpl
{
  public static final String eNAME = "reviews";
  public static final String eNS_URI = "http://eclipse.org/mylyn/reviews/core/1.0";
  public static final String eNS_PREFIX = "reviews";
  public static final ReviewsPackage eINSTANCE = ;
  public static final int REVIEW_COMPONENT = 10;
  public static final int REVIEW_COMPONENT__ENABLED = 0;
  public static final int REVIEW_COMPONENT_FEATURE_COUNT = 1;
  public static final int REVIEW = 0;
  public static final int REVIEW__ENABLED = 0;
  public static final int REVIEW__TOPICS = 1;
  public static final int REVIEW__ITEMS = 2;
  public static final int REVIEW__REVIEW_TASK = 3;
  public static final int REVIEW__STATE = 4;
  public static final int REVIEW__ID = 5;
  public static final int REVIEW_FEATURE_COUNT = 6;
  public static final int COMMENT = 1;
  public static final int COMMENT__ENABLED = 0;
  public static final int COMMENT__AUTHOR = 1;
  public static final int COMMENT__TYPE = 2;
  public static final int COMMENT__DESCRIPTION = 3;
  public static final int COMMENT__CREATION_DATE = 4;
  public static final int COMMENT__ID = 5;
  public static final int COMMENT__REPLIES = 6;
  public static final int COMMENT__DRAFT = 7;
  public static final int COMMENT_FEATURE_COUNT = 8;
  public static final int REVIEW_ITEM = 2;
  public static final int REVIEW_ITEM__ENABLED = 0;
  public static final int REVIEW_ITEM__ADDED_BY = 1;
  public static final int REVIEW_ITEM__REVIEW = 2;
  public static final int REVIEW_ITEM__NAME = 3;
  public static final int REVIEW_ITEM__TOPICS = 4;
  public static final int REVIEW_ITEM__ID = 5;
  public static final int REVIEW_ITEM_FEATURE_COUNT = 6;
  public static final int LOCATION = 3;
  public static final int LOCATION_FEATURE_COUNT = 0;
  public static final int USER = 4;
  public static final int USER__ID = 0;
  public static final int USER__DISPLAY_NAME = 1;
  public static final int USER_FEATURE_COUNT = 2;
  public static final int TASK_REFERENCE = 5;
  public static final int TASK_REFERENCE__ENABLED = 0;
  public static final int TASK_REFERENCE__TASK_ID = 1;
  public static final int TASK_REFERENCE__REPOSITORY_URL = 2;
  public static final int TASK_REFERENCE_FEATURE_COUNT = 3;
  public static final int REVIEW_STATE = 6;
  public static final int REVIEW_STATE__ENABLED = 0;
  public static final int REVIEW_STATE_FEATURE_COUNT = 1;
  public static final int REVIEW_GROUP = 7;
  public static final int REVIEW_GROUP__ENABLED = 0;
  public static final int REVIEW_GROUP__REVIEWS = 1;
  public static final int REVIEW_GROUP__REVIEW_GROUP_TASK = 2;
  public static final int REVIEW_GROUP__DESCRIPTION = 3;
  public static final int REVIEW_GROUP_FEATURE_COUNT = 4;
  public static final int COMMENT_TYPE = 8;
  public static final int COMMENT_TYPE_FEATURE_COUNT = 0;
  public static final int TOPIC = 9;
  public static final int TOPIC__ENABLED = 0;
  public static final int TOPIC__AUTHOR = 1;
  public static final int TOPIC__TYPE = 2;
  public static final int TOPIC__DESCRIPTION = 3;
  public static final int TOPIC__CREATION_DATE = 4;
  public static final int TOPIC__ID = 5;
  public static final int TOPIC__REPLIES = 6;
  public static final int TOPIC__DRAFT = 7;
  public static final int TOPIC__TASK = 8;
  public static final int TOPIC__LOCATION = 9;
  public static final int TOPIC__COMMENTS = 10;
  public static final int TOPIC__REVIEW = 11;
  public static final int TOPIC__TITLE = 12;
  public static final int TOPIC__ITEM = 13;
  public static final int TOPIC_FEATURE_COUNT = 14;
  public static final int FILE_ITEM = 11;
  public static final int FILE_ITEM__ENABLED = 0;
  public static final int FILE_ITEM__ADDED_BY = 1;
  public static final int FILE_ITEM__REVIEW = 2;
  public static final int FILE_ITEM__NAME = 3;
  public static final int FILE_ITEM__TOPICS = 4;
  public static final int FILE_ITEM__ID = 5;
  public static final int FILE_ITEM__BASE = 6;
  public static final int FILE_ITEM__TARGET = 7;
  public static final int FILE_ITEM_FEATURE_COUNT = 8;
  public static final int REVIEW_ITEM_SET = 12;
  public static final int REVIEW_ITEM_SET__ENABLED = 0;
  public static final int REVIEW_ITEM_SET__ADDED_BY = 1;
  public static final int REVIEW_ITEM_SET__REVIEW = 2;
  public static final int REVIEW_ITEM_SET__NAME = 3;
  public static final int REVIEW_ITEM_SET__TOPICS = 4;
  public static final int REVIEW_ITEM_SET__ID = 5;
  public static final int REVIEW_ITEM_SET__ITEMS = 6;
  public static final int REVIEW_ITEM_SET__REVISION = 7;
  public static final int REVIEW_ITEM_SET_FEATURE_COUNT = 8;
  public static final int LINE_LOCATION = 13;
  public static final int LINE_LOCATION__RANGES = 0;
  public static final int LINE_LOCATION_FEATURE_COUNT = 1;
  public static final int LINE_RANGE = 14;
  public static final int LINE_RANGE__START = 0;
  public static final int LINE_RANGE__END = 1;
  public static final int LINE_RANGE_FEATURE_COUNT = 2;
  public static final int FILE_REVISION = 15;
  public static final int FILE_REVISION__ENABLED = 0;
  public static final int FILE_REVISION__ADDED_BY = 1;
  public static final int FILE_REVISION__REVIEW = 2;
  public static final int FILE_REVISION__NAME = 3;
  public static final int FILE_REVISION__TOPICS = 4;
  public static final int FILE_REVISION__ID = 5;
  public static final int FILE_REVISION__PATH = 6;
  public static final int FILE_REVISION__REVISION = 7;
  public static final int FILE_REVISION__CONTENT = 8;
  public static final int FILE_REVISION_FEATURE_COUNT = 9;
  private EClass reviewEClass = null;
  private EClass commentEClass = null;
  private EClass reviewItemEClass = null;
  private EClass locationEClass = null;
  private EClass userEClass = null;
  private EClass taskReferenceEClass = null;
  private EClass reviewStateEClass = null;
  private EClass reviewGroupEClass = null;
  private EClass commentTypeEClass = null;
  private EClass topicEClass = null;
  private EClass reviewComponentEClass = null;
  private EClass fileItemEClass = null;
  private EClass reviewItemSetEClass = null;
  private EClass lineLocationEClass = null;
  private EClass lineRangeEClass = null;
  private EClass fileRevisionEClass = null;
  
  private ReviewsPackage()
  {
    super("http://eclipse.org/mylyn/reviews/core/1.0", (EFactory)IReviewsFactory.INSTANCE);
  }
  
  private static boolean isInited = false;
  
  public static ReviewsPackage init()
  {
    if (isInited) {
      return (ReviewsPackage)EPackage.Registry.INSTANCE.getEPackage("http://eclipse.org/mylyn/reviews/core/1.0");
    }
    ReviewsPackage theReviewsPackage = (ReviewsPackage)((EPackage.Registry.INSTANCE.get("http://eclipse.org/mylyn/reviews/core/1.0") instanceof ReviewsPackage) ? 
      EPackage.Registry.INSTANCE.get("http://eclipse.org/mylyn/reviews/core/1.0") : 
      new ReviewsPackage());
    
    isInited = true;
    
    theReviewsPackage.createPackageContents();
    
    theReviewsPackage.initializePackageContents();
    
    theReviewsPackage.freeze();
    
    EPackage.Registry.INSTANCE.put("http://eclipse.org/mylyn/reviews/core/1.0", theReviewsPackage);
    return theReviewsPackage;
  }
  
  public EClass getReview()
  {
    return reviewEClass;
  }
  
  public EReference getReview_Topics()
  {
    return (EReference)reviewEClass.getEStructuralFeatures().get(0);
  }
  
  public EReference getReview_Items()
  {
    return (EReference)reviewEClass.getEStructuralFeatures().get(1);
  }
  
  public EReference getReview_ReviewTask()
  {
    return (EReference)reviewEClass.getEStructuralFeatures().get(2);
  }
  
  public EReference getReview_State()
  {
    return (EReference)reviewEClass.getEStructuralFeatures().get(3);
  }
  
  public EAttribute getReview_Id()
  {
    return (EAttribute)reviewEClass.getEStructuralFeatures().get(4);
  }
  
  public EClass getComment()
  {
    return commentEClass;
  }
  
  public EReference getComment_Author()
  {
    return (EReference)commentEClass.getEStructuralFeatures().get(0);
  }
  
  public EReference getComment_Type()
  {
    return (EReference)commentEClass.getEStructuralFeatures().get(1);
  }
  
  public EAttribute getComment_Description()
  {
    return (EAttribute)commentEClass.getEStructuralFeatures().get(2);
  }
  
  public EAttribute getComment_CreationDate()
  {
    return (EAttribute)commentEClass.getEStructuralFeatures().get(3);
  }
  
  public EAttribute getComment_Id()
  {
    return (EAttribute)commentEClass.getEStructuralFeatures().get(4);
  }
  
  public EReference getComment_Replies()
  {
    return (EReference)commentEClass.getEStructuralFeatures().get(5);
  }
  
  public EAttribute getComment_Draft()
  {
    return (EAttribute)commentEClass.getEStructuralFeatures().get(6);
  }
  
  public EClass getReviewItem()
  {
    return reviewItemEClass;
  }
  
  public EReference getReviewItem_AddedBy()
  {
    return (EReference)reviewItemEClass.getEStructuralFeatures().get(0);
  }
  
  public EReference getReviewItem_Review()
  {
    return (EReference)reviewItemEClass.getEStructuralFeatures().get(1);
  }
  
  public EAttribute getReviewItem_Name()
  {
    return (EAttribute)reviewItemEClass.getEStructuralFeatures().get(2);
  }
  
  public EReference getReviewItem_Topics()
  {
    return (EReference)reviewItemEClass.getEStructuralFeatures().get(3);
  }
  
  public EAttribute getReviewItem_Id()
  {
    return (EAttribute)reviewItemEClass.getEStructuralFeatures().get(4);
  }
  
  public EClass getLocation()
  {
    return locationEClass;
  }
  
  public EClass getUser()
  {
    return userEClass;
  }
  
  public EAttribute getUser_Id()
  {
    return (EAttribute)userEClass.getEStructuralFeatures().get(0);
  }
  
  public EAttribute getUser_DisplayName()
  {
    return (EAttribute)userEClass.getEStructuralFeatures().get(1);
  }
  
  public EClass getTaskReference()
  {
    return taskReferenceEClass;
  }
  
  public EAttribute getTaskReference_TaskId()
  {
    return (EAttribute)taskReferenceEClass.getEStructuralFeatures().get(0);
  }
  
  public EAttribute getTaskReference_RepositoryURL()
  {
    return (EAttribute)taskReferenceEClass.getEStructuralFeatures().get(1);
  }
  
  public EClass getReviewState()
  {
    return reviewStateEClass;
  }
  
  public EClass getReviewGroup()
  {
    return reviewGroupEClass;
  }
  
  public EReference getReviewGroup_Reviews()
  {
    return (EReference)reviewGroupEClass.getEStructuralFeatures().get(0);
  }
  
  public EReference getReviewGroup_ReviewGroupTask()
  {
    return (EReference)reviewGroupEClass.getEStructuralFeatures().get(1);
  }
  
  public EAttribute getReviewGroup_Description()
  {
    return (EAttribute)reviewGroupEClass.getEStructuralFeatures().get(2);
  }
  
  public EClass getCommentType()
  {
    return commentTypeEClass;
  }
  
  public EClass getTopic()
  {
    return topicEClass;
  }
  
  public EReference getTopic_Task()
  {
    return (EReference)topicEClass.getEStructuralFeatures().get(0);
  }
  
  public EReference getTopic_Location()
  {
    return (EReference)topicEClass.getEStructuralFeatures().get(1);
  }
  
  public EReference getTopic_Comments()
  {
    return (EReference)topicEClass.getEStructuralFeatures().get(2);
  }
  
  public EReference getTopic_Review()
  {
    return (EReference)topicEClass.getEStructuralFeatures().get(3);
  }
  
  public EAttribute getTopic_Title()
  {
    return (EAttribute)topicEClass.getEStructuralFeatures().get(4);
  }
  
  public EReference getTopic_Item()
  {
    return (EReference)topicEClass.getEStructuralFeatures().get(5);
  }
  
  public EClass getReviewComponent()
  {
    return reviewComponentEClass;
  }
  
  public EAttribute getReviewComponent_Enabled()
  {
    return (EAttribute)reviewComponentEClass.getEStructuralFeatures().get(0);
  }
  
  public EClass getFileItem()
  {
    return fileItemEClass;
  }
  
  public EReference getFileItem_Base()
  {
    return (EReference)fileItemEClass.getEStructuralFeatures().get(0);
  }
  
  public EReference getFileItem_Target()
  {
    return (EReference)fileItemEClass.getEStructuralFeatures().get(1);
  }
  
  public EClass getReviewItemSet()
  {
    return reviewItemSetEClass;
  }
  
  public EReference getReviewItemSet_Items()
  {
    return (EReference)reviewItemSetEClass.getEStructuralFeatures().get(0);
  }
  
  public EAttribute getReviewItemSet_Revision()
  {
    return (EAttribute)reviewItemSetEClass.getEStructuralFeatures().get(1);
  }
  
  public EClass getLineLocation()
  {
    return lineLocationEClass;
  }
  
  public EReference getLineLocation_Ranges()
  {
    return (EReference)lineLocationEClass.getEStructuralFeatures().get(0);
  }
  
  public EClass getLineRange()
  {
    return lineRangeEClass;
  }
  
  public EAttribute getLineRange_Start()
  {
    return (EAttribute)lineRangeEClass.getEStructuralFeatures().get(0);
  }
  
  public EAttribute getLineRange_End()
  {
    return (EAttribute)lineRangeEClass.getEStructuralFeatures().get(1);
  }
  
  public EClass getFileRevision()
  {
    return fileRevisionEClass;
  }
  
  public EAttribute getFileRevision_Path()
  {
    return (EAttribute)fileRevisionEClass.getEStructuralFeatures().get(0);
  }
  
  public EAttribute getFileRevision_Revision()
  {
    return (EAttribute)fileRevisionEClass.getEStructuralFeatures().get(1);
  }
  
  public EAttribute getFileRevision_Content()
  {
    return (EAttribute)fileRevisionEClass.getEStructuralFeatures().get(2);
  }
  
  public IReviewsFactory getReviewsFactory()
  {
    return (IReviewsFactory)getEFactoryInstance();
  }
  
  private boolean isCreated = false;
  
  public void createPackageContents()
  {
    if (isCreated) {
      return;
    }
    isCreated = true;
    
    reviewEClass = createEClass(0);
    createEReference(reviewEClass, 1);
    createEReference(reviewEClass, 2);
    createEReference(reviewEClass, 3);
    createEReference(reviewEClass, 4);
    createEAttribute(reviewEClass, 5);
    
    commentEClass = createEClass(1);
    createEReference(commentEClass, 1);
    createEReference(commentEClass, 2);
    createEAttribute(commentEClass, 3);
    createEAttribute(commentEClass, 4);
    createEAttribute(commentEClass, 5);
    createEReference(commentEClass, 6);
    createEAttribute(commentEClass, 7);
    
    reviewItemEClass = createEClass(2);
    createEReference(reviewItemEClass, 1);
    createEReference(reviewItemEClass, 2);
    createEAttribute(reviewItemEClass, 3);
    createEReference(reviewItemEClass, 4);
    createEAttribute(reviewItemEClass, 5);
    
    locationEClass = createEClass(3);
    
    userEClass = createEClass(4);
    createEAttribute(userEClass, 0);
    createEAttribute(userEClass, 1);
    
    taskReferenceEClass = createEClass(5);
    createEAttribute(taskReferenceEClass, 1);
    createEAttribute(taskReferenceEClass, 2);
    
    reviewStateEClass = createEClass(6);
    
    reviewGroupEClass = createEClass(7);
    createEReference(reviewGroupEClass, 1);
    createEReference(reviewGroupEClass, 2);
    createEAttribute(reviewGroupEClass, 3);
    
    commentTypeEClass = createEClass(8);
    
    topicEClass = createEClass(9);
    createEReference(topicEClass, 8);
    createEReference(topicEClass, 9);
    createEReference(topicEClass, 10);
    createEReference(topicEClass, 11);
    createEAttribute(topicEClass, 12);
    createEReference(topicEClass, 13);
    
    reviewComponentEClass = createEClass(10);
    createEAttribute(reviewComponentEClass, 0);
    
    fileItemEClass = createEClass(11);
    createEReference(fileItemEClass, 6);
    createEReference(fileItemEClass, 7);
    
    reviewItemSetEClass = createEClass(12);
    createEReference(reviewItemSetEClass, 6);
    createEAttribute(reviewItemSetEClass, 7);
    
    lineLocationEClass = createEClass(13);
    createEReference(lineLocationEClass, 0);
    
    lineRangeEClass = createEClass(14);
    createEAttribute(lineRangeEClass, 0);
    createEAttribute(lineRangeEClass, 1);
    
    fileRevisionEClass = createEClass(15);
    createEAttribute(fileRevisionEClass, 6);
    createEAttribute(fileRevisionEClass, 7);
    createEAttribute(fileRevisionEClass, 8);
  }
  
  private boolean isInitialized = false;
  
  public void initializePackageContents()
  {
    if (isInitialized) {
      return;
    }
    isInitialized = true;
    
    setName("reviews");
    setNsPrefix("reviews");
    setNsURI("http://eclipse.org/mylyn/reviews/core/1.0");
    
    reviewEClass.getESuperTypes().add(getReviewComponent());
    commentEClass.getESuperTypes().add(getReviewComponent());
    reviewItemEClass.getESuperTypes().add(getReviewComponent());
    taskReferenceEClass.getESuperTypes().add(getReviewComponent());
    reviewStateEClass.getESuperTypes().add(getReviewComponent());
    reviewGroupEClass.getESuperTypes().add(getReviewComponent());
    topicEClass.getESuperTypes().add(getComment());
    fileItemEClass.getESuperTypes().add(getReviewItem());
    reviewItemSetEClass.getESuperTypes().add(getReviewItem());
    lineLocationEClass.getESuperTypes().add(getLocation());
    fileRevisionEClass.getESuperTypes().add(getReviewItem());
    
    initEClass(reviewEClass, IReview.class, "Review", false, false, true);
    initEReference(
      getReview_Topics(), 
      getTopic(), 
      null, 
      "topics", null, 0, -1, IReview.class, true, false, true, false, true, false, true, true, true);
    initEReference(
      getReview_Items(), 
      getReviewItem(), 
      null, 
      "items", null, 0, -1, IReview.class, true, false, true, false, true, false, true, true, true);
    initEReference(
      getReview_ReviewTask(), 
      getTaskReference(), 
      null, 
      "reviewTask", null, 0, 1, IReview.class, false, false, true, true, false, false, true, false, true);
    initEReference(
      getReview_State(), 
      getReviewState(), 
      null, 
      "state", null, 1, 1, IReview.class, false, false, true, true, false, false, true, false, true);
    initEAttribute(
      getReview_Id(), 
      ecorePackage.getEString(), 
      "id", null, 0, 1, IReview.class, false, false, true, false, false, true, false, true);
    
    initEClass(commentEClass, IComment.class, "Comment", false, false, true);
    initEReference(
      getComment_Author(), 
      getUser(), 
      null, 
      "author", null, 1, 1, IComment.class, false, false, true, false, false, false, true, false, true);
    initEReference(
      getComment_Type(), 
      getCommentType(), 
      null, 
      "type", null, 1, 1, IComment.class, false, false, true, true, false, false, true, false, true);
    initEAttribute(
      getComment_Description(), 
      ecorePackage.getEString(), 
      "description", null, 0, 1, IComment.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getComment_CreationDate(), 
      ecorePackage.getEDate(), 
      "creationDate", null, 0, 1, IComment.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getComment_Id(), 
      ecorePackage.getEString(), 
      "id", null, 0, 1, IComment.class, false, false, true, false, false, true, false, true);
    initEReference(
      getComment_Replies(), 
      getComment(), 
      null, 
      "replies", null, 0, -1, IComment.class, false, false, true, true, false, false, true, false, true);
    initEAttribute(
      getComment_Draft(), 
      ecorePackage.getEBoolean(), 
      "draft", null, 0, 1, IComment.class, false, false, true, false, false, true, false, true);
    
    initEClass(reviewItemEClass, IReviewItem.class, 
      "ReviewItem", false, false, true);
    initEReference(
      getReviewItem_AddedBy(), 
      getUser(), 
      null, 
      "addedBy", null, 1, 1, IReviewItem.class, false, false, true, false, true, false, true, false, true);
    initEReference(
      getReviewItem_Review(), 
      getReview(), 
      null, 
      "review", null, 1, 1, IReviewItem.class, false, false, true, false, true, false, true, false, true);
    initEAttribute(
      getReviewItem_Name(), 
      ecorePackage.getEString(), 
      "name", null, 0, 1, IReviewItem.class, false, false, true, false, false, true, false, true);
    initEReference(
      getReviewItem_Topics(), 
      getTopic(), 
      getTopic_Item(), 
      "topics", null, 0, -1, IReviewItem.class, false, false, true, false, true, false, true, false, true);
    initEAttribute(
      getReviewItem_Id(), 
      ecorePackage.getEString(), 
      "id", null, 0, 1, IReviewItem.class, false, false, true, false, false, true, false, true);
    
    initEClass(locationEClass, ILocation.class, "Location", true, false, true);
    
    initEClass(userEClass, IUser.class, "User", false, false, true);
    initEAttribute(
      getUser_Id(), 
      ecorePackage.getEString(), 
      "id", null, 0, 1, IUser.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getUser_DisplayName(), 
      ecorePackage.getEString(), 
      "displayName", null, 0, 1, IUser.class, false, false, true, false, false, true, false, true);
    
    initEClass(taskReferenceEClass, ITaskReference.class, 
      "TaskReference", false, false, true);
    initEAttribute(
      getTaskReference_TaskId(), 
      ecorePackage.getEString(), 
      "taskId", null, 0, 1, ITaskReference.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getTaskReference_RepositoryURL(), 
      ecorePackage.getEString(), 
      "repositoryURL", null, 0, 1, ITaskReference.class, false, false, true, false, false, true, false, true);
    
    initEClass(reviewStateEClass, IReviewState.class, 
      "ReviewState", true, false, true);
    
    initEClass(reviewGroupEClass, IReviewGroup.class, 
      "ReviewGroup", false, false, true);
    initEReference(
      getReviewGroup_Reviews(), 
      getReview(), 
      null, 
      "reviews", null, 0, -1, IReviewGroup.class, true, false, true, true, false, false, true, true, true);
    initEReference(
      getReviewGroup_ReviewGroupTask(), 
      getTaskReference(), 
      null, 
      "reviewGroupTask", null, 0, 1, IReviewGroup.class, false, false, true, true, false, false, true, false, true);
    initEAttribute(
      getReviewGroup_Description(), 
      ecorePackage.getEString(), 
      "description", null, 0, 1, IReviewGroup.class, false, false, true, false, false, true, false, true);
    
    initEClass(commentTypeEClass, ICommentType.class, 
      "CommentType", true, false, true);
    
    initEClass(topicEClass, ITopic.class, "Topic", false, false, true);
    initEReference(
      getTopic_Task(), 
      getTaskReference(), 
      null, 
      "task", null, 0, 1, ITopic.class, false, false, true, true, false, false, true, false, true);
    initEReference(
      getTopic_Location(), 
      getLocation(), 
      null, 
      "location", null, 0, 1, ITopic.class, false, false, true, true, false, false, true, false, true);
    initEReference(
      getTopic_Comments(), 
      getComment(), 
      null, 
      "comments", null, 0, -1, ITopic.class, true, false, true, false, true, false, true, true, true);
    initEReference(
      getTopic_Review(), 
      getReview(), 
      null, 
      "review", null, 1, 1, ITopic.class, false, false, true, false, true, false, true, false, true);
    initEAttribute(
      getTopic_Title(), 
      ecorePackage.getEString(), 
      "title", null, 0, 1, ITopic.class, false, false, true, false, false, true, false, true);
    initEReference(
      getTopic_Item(), 
      getReviewItem(), 
      getReviewItem_Topics(), 
      "item", null, 0, 1, ITopic.class, false, false, true, false, true, false, true, false, true);
    
    initEClass(reviewComponentEClass, IReviewComponent.class, 
      "ReviewComponent", false, false, true);
    initEAttribute(
      getReviewComponent_Enabled(), 
      ecorePackage.getEBoolean(), 
      "enabled", "true", 0, 1, IReviewComponent.class, false, false, true, false, true, true, false, true);
    
    initEClass(fileItemEClass, IFileItem.class, 
      "FileItem", false, false, true);
    initEReference(
      getFileItem_Base(), 
      getFileRevision(), 
      null, 
      "base", null, 0, 1, IFileItem.class, false, false, true, false, true, false, true, false, true);
    initEReference(
      getFileItem_Target(), 
      getFileRevision(), 
      null, 
      "target", null, 0, 1, IFileItem.class, false, false, true, false, true, false, true, false, true);
    
    initEClass(reviewItemSetEClass, IReviewItemSet.class, 
      "ReviewItemSet", false, false, true);
    initEReference(
      getReviewItemSet_Items(), 
      getReviewItem(), 
      null, 
      "items", null, 0, -1, IReviewItemSet.class, false, false, true, false, true, false, true, false, true);
    initEAttribute(
      getReviewItemSet_Revision(), 
      ecorePackage.getEString(), 
      "revision", "", 0, 1, IReviewItemSet.class, false, false, true, false, false, true, false, true);
    
    initEClass(lineLocationEClass, ILineLocation.class, 
      "LineLocation", false, false, true);
    initEReference(
      getLineLocation_Ranges(), 
      getLineRange(), 
      null, 
      "ranges", null, 0, -1, ILineLocation.class, false, false, true, true, false, false, true, false, true);
    
    initEClass(lineRangeEClass, ILineRange.class, 
      "LineRange", false, false, true);
    initEAttribute(
      getLineRange_Start(), 
      ecorePackage.getEInt(), 
      "start", null, 0, 1, ILineRange.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getLineRange_End(), 
      ecorePackage.getEInt(), 
      "end", null, 0, 1, ILineRange.class, false, false, true, false, false, true, false, true);
    
    initEClass(fileRevisionEClass, IFileRevision.class, 
      "FileRevision", false, false, true);
    initEAttribute(
      getFileRevision_Path(), 
      ecorePackage.getEString(), 
      "path", null, 0, 1, IFileRevision.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getFileRevision_Revision(), 
      ecorePackage.getEString(), 
      "revision", null, 0, 1, IFileRevision.class, false, false, true, false, false, true, false, true);
    initEAttribute(
      getFileRevision_Content(), 
      ecorePackage.getEString(), 
      "content", null, 0, 1, IFileRevision.class, false, false, true, false, false, true, false, true);
    
    createResource("http://eclipse.org/mylyn/reviews/core/1.0");
    
    createExtendedMetaDataAnnotations();
  }
  
  protected void createExtendedMetaDataAnnotations()
  {
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
    addAnnotation(getReviewComponent_Enabled(), source, new String[] { "namespace", "", 
      "wildcards", "", 
      "name", "" });
  }
  
  public static abstract interface Literals
  {
    public static final EClass REVIEW = ReviewsPackage.eINSTANCE.getReview();
    public static final EReference REVIEW__TOPICS = ReviewsPackage.eINSTANCE.getReview_Topics();
    public static final EReference REVIEW__ITEMS = ReviewsPackage.eINSTANCE.getReview_Items();
    public static final EReference REVIEW__REVIEW_TASK = ReviewsPackage.eINSTANCE.getReview_ReviewTask();
    public static final EReference REVIEW__STATE = ReviewsPackage.eINSTANCE.getReview_State();
    public static final EAttribute REVIEW__ID = ReviewsPackage.eINSTANCE.getReview_Id();
    public static final EClass COMMENT = ReviewsPackage.eINSTANCE.getComment();
    public static final EReference COMMENT__AUTHOR = ReviewsPackage.eINSTANCE.getComment_Author();
    public static final EReference COMMENT__TYPE = ReviewsPackage.eINSTANCE.getComment_Type();
    public static final EAttribute COMMENT__DESCRIPTION = ReviewsPackage.eINSTANCE.getComment_Description();
    public static final EAttribute COMMENT__CREATION_DATE = ReviewsPackage.eINSTANCE.getComment_CreationDate();
    public static final EAttribute COMMENT__ID = ReviewsPackage.eINSTANCE.getComment_Id();
    public static final EReference COMMENT__REPLIES = ReviewsPackage.eINSTANCE.getComment_Replies();
    public static final EAttribute COMMENT__DRAFT = ReviewsPackage.eINSTANCE.getComment_Draft();
    public static final EClass REVIEW_ITEM = ReviewsPackage.eINSTANCE.getReviewItem();
    public static final EReference REVIEW_ITEM__ADDED_BY = ReviewsPackage.eINSTANCE.getReviewItem_AddedBy();
    public static final EReference REVIEW_ITEM__REVIEW = ReviewsPackage.eINSTANCE.getReviewItem_Review();
    public static final EAttribute REVIEW_ITEM__NAME = ReviewsPackage.eINSTANCE.getReviewItem_Name();
    public static final EReference REVIEW_ITEM__TOPICS = ReviewsPackage.eINSTANCE.getReviewItem_Topics();
    public static final EAttribute REVIEW_ITEM__ID = ReviewsPackage.eINSTANCE.getReviewItem_Id();
    public static final EClass LOCATION = ReviewsPackage.eINSTANCE.getLocation();
    public static final EClass USER = ReviewsPackage.eINSTANCE.getUser();
    public static final EAttribute USER__ID = ReviewsPackage.eINSTANCE.getUser_Id();
    public static final EAttribute USER__DISPLAY_NAME = ReviewsPackage.eINSTANCE.getUser_DisplayName();
    public static final EClass TASK_REFERENCE = ReviewsPackage.eINSTANCE.getTaskReference();
    public static final EAttribute TASK_REFERENCE__TASK_ID = ReviewsPackage.eINSTANCE.getTaskReference_TaskId();
    public static final EAttribute TASK_REFERENCE__REPOSITORY_URL = ReviewsPackage.eINSTANCE.getTaskReference_RepositoryURL();
    public static final EClass REVIEW_STATE = ReviewsPackage.eINSTANCE.getReviewState();
    public static final EClass REVIEW_GROUP = ReviewsPackage.eINSTANCE.getReviewGroup();
    public static final EReference REVIEW_GROUP__REVIEWS = ReviewsPackage.eINSTANCE.getReviewGroup_Reviews();
    public static final EReference REVIEW_GROUP__REVIEW_GROUP_TASK = ReviewsPackage.eINSTANCE.getReviewGroup_ReviewGroupTask();
    public static final EAttribute REVIEW_GROUP__DESCRIPTION = ReviewsPackage.eINSTANCE.getReviewGroup_Description();
    public static final EClass COMMENT_TYPE = ReviewsPackage.eINSTANCE.getCommentType();
    public static final EClass TOPIC = ReviewsPackage.eINSTANCE.getTopic();
    public static final EReference TOPIC__TASK = ReviewsPackage.eINSTANCE.getTopic_Task();
    public static final EReference TOPIC__LOCATION = ReviewsPackage.eINSTANCE.getTopic_Location();
    public static final EReference TOPIC__COMMENTS = ReviewsPackage.eINSTANCE.getTopic_Comments();
    public static final EReference TOPIC__REVIEW = ReviewsPackage.eINSTANCE.getTopic_Review();
    public static final EAttribute TOPIC__TITLE = ReviewsPackage.eINSTANCE.getTopic_Title();
    public static final EReference TOPIC__ITEM = ReviewsPackage.eINSTANCE.getTopic_Item();
    public static final EClass REVIEW_COMPONENT = ReviewsPackage.eINSTANCE.getReviewComponent();
    public static final EAttribute REVIEW_COMPONENT__ENABLED = ReviewsPackage.eINSTANCE.getReviewComponent_Enabled();
    public static final EClass FILE_ITEM = ReviewsPackage.eINSTANCE.getFileItem();
    public static final EReference FILE_ITEM__BASE = ReviewsPackage.eINSTANCE.getFileItem_Base();
    public static final EReference FILE_ITEM__TARGET = ReviewsPackage.eINSTANCE.getFileItem_Target();
    public static final EClass REVIEW_ITEM_SET = ReviewsPackage.eINSTANCE.getReviewItemSet();
    public static final EReference REVIEW_ITEM_SET__ITEMS = ReviewsPackage.eINSTANCE.getReviewItemSet_Items();
    public static final EAttribute REVIEW_ITEM_SET__REVISION = ReviewsPackage.eINSTANCE.getReviewItemSet_Revision();
    public static final EClass LINE_LOCATION = ReviewsPackage.eINSTANCE.getLineLocation();
    public static final EReference LINE_LOCAT
1 2 3 4

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd