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

wsFactory eINSTANCE = ;
  
  public static ReviewsFactory init()
  {
    try
    {
      ReviewsFactory theReviewsFactory = (ReviewsFactory)EPackage.Registry.INSTANCE.getEFactory("http://eclipse.org/mylyn/reviews/core/1.0");
      if (theReviewsFactory != null) {
        return theReviewsFactory;
      }
    }
    catch (Exception exception)
    {
      EcorePlugin.INSTANCE.log(exception);
    }
    return new ReviewsFactory();
  }
  
  public EObject create(EClass eClass)
  {
    switch (eClass.getClassifierID())
    {
    case 0: 
      return (EObject)createReview();
    case 1: 
      return (EObject)createComment();
    case 2: 
      return (EObject)createReviewItem();
    case 4: 
      return (EObject)createUser();
    case 5: 
      return (EObject)createTaskReference();
    case 7: 
      return (EObject)createReviewGroup();
    case 9: 
      return (EObject)createTopic();
    case 10: 
      return (EObject)createReviewComponent();
    case 11: 
      return (EObject)createFileItem();
    case 12: 
      return (EObject)createReviewItemSet();
    case 13: 
      return (EObject)createLineLocation();
    case 14: 
      return (EObject)createLineRange();
    case 15: 
      return (EObject)createFileRevision();
    }
    throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
  
  public IReview createReview()
  {
    Review review = new Review();
    return review;
  }
  
  public IComment createComment()
  {
    Comment comment = new Comment();
    return comment;
  }
  
  public IReviewItem createReviewItem()
  {
    ReviewItem reviewItem = new ReviewItem();
    return reviewItem;
  }
  
  public IUser createUser()
  {
    User user = new User();
    return user;
  }
  
  public ITaskReference createTaskReference()
  {
    TaskReference taskReference = new TaskReference();
    return taskReference;
  }
  
  public IReviewGroup createReviewGroup()
  {
    ReviewGroup reviewGroup = new ReviewGroup();
    return reviewGroup;
  }
  
  public ITopic createTopic()
  {
    Topic topic = new Topic();
    return topic;
  }
  
  public IReviewComponent createReviewComponent()
  {
    ReviewComponent reviewComponent = new ReviewComponent();
    return reviewComponent;
  }
  
  public IFileItem createFileItem()
  {
    FileItem fileItem = new FileItem();
    return fileItem;
  }
  
  public IReviewItemSet createReviewItemSet()
  {
    ReviewItemSet reviewItemSet = new ReviewItemSet();
    return reviewItemSet;
  }
  
  public ILineLocation createLineLocation()
  {
    LineLocation lineLocation = new LineLocation();
    return lineLocation;
  }
  
  public ILineRange createLineRange()
  {
    LineRange lineRange = new LineRange();
    return lineRange;
  }
  
  public IFileRevision createFileRevision()
  {
    FileRevision fileRevision = new FileRevision();
    return fileRevision;
  }
  
  public ReviewsPackage getReviewsPackage()
  {
    return (ReviewsPackage)getEPackage();
  }
  
  @Deprecated
  public static ReviewsPackage getPackage()
  {
    return ReviewsPackage.eINSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.ReviewsFactory
 * 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.mylyn.reviews.core.model.ITaskReference;

public class TaskReference
  extends ReviewComponent
  implements ITaskReference
{
  protected static final String TASK_ID_EDEFAULT = null;
  protected String taskId = TASK_ID_EDEFAULT;
  protected static final String REPOSITORY_URL_EDEFAULT = null;
  protected String repositoryURL = REPOSITORY_URL_EDEFAULT;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.TASK_REFERENCE;
  }
  
  public String getTaskId()
  {
    return taskId;
  }
  
  public void setTaskId(String newTaskId)
  {
    String oldTaskId = taskId;
    taskId = newTaskId;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 1, oldTaskId, 
        taskId));
    }
  }
  
  public String getRepositoryURL()
  {
    return repositoryURL;
  }
  
  public void setRepositoryURL(String newRepositoryURL)
  {
    String oldRepositoryURL = repositoryURL;
    repositoryURL = newRepositoryURL;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 2, 
        oldRepositoryURL, repositoryURL));
    }
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 1: 
      return getTaskId();
    case 2: 
      return getRepositoryURL();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 1: 
      setTaskId((String)newValue);
      return;
    case 2: 
      setRepositoryURL((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      setTaskId(TASK_ID_EDEFAULT);
      return;
    case 2: 
      setRepositoryURL(REPOSITORY_URL_EDEFAULT);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      return taskId != null;
    case 2: 
      return 
        repositoryURL != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (taskId: ");
    result.append(taskId);
    result.append(", repositoryURL: ");
    result.append(repositoryURL);
    result.append(')');
    return result.toString();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.TaskReference
 * 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.EObjectImpl;
import org.eclipse.mylyn.reviews.core.model.ILocation;

public abstract class Location
  extends EObjectImpl
  implements ILocation
{
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.LOCATION;
  }
}

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

import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
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.emf.ecore.util.EObjectWithInverseResolvingEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.mylyn.reviews.core.model.IReview;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
import org.eclipse.mylyn.reviews.core.model.ITopic;
import org.eclipse.mylyn.reviews.core.model.IUser;

public class ReviewItem
  extends ReviewComponent
  implements IReviewItem
{
  protected IUser addedBy;
  protected IReview review;
  protected static final String NAME_EDEFAULT = null;
  protected String name = NAME_EDEFAULT;
  protected EList<ITopic> topics;
  protected static final String ID_EDEFAULT = null;
  protected String id = ID_EDEFAULT;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.REVIEW_ITEM;
  }
  
  public IUser getAddedBy()
  {
    if ((addedBy != null) && (((EObject)addedBy).eIsProxy()))
    {
      InternalEObject oldAddedBy = (InternalEObject)addedBy;
      addedBy = ((IUser)eResolveProxy(oldAddedBy));
      if ((addedBy != oldAddedBy) && 
        (eNotificationRequired())) {
        eNotify(new ENotificationImpl(this, 9, 1, 
          oldAddedBy, addedBy));
      }
    }
    return addedBy;
  }
  
  public IUser basicGetAddedBy()
  {
    return addedBy;
  }
  
  public void setAddedBy(IUser newAddedBy)
  {
    IUser oldAddedBy = addedBy;
    addedBy = newAddedBy;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 1, oldAddedBy, 
        addedBy));
    }
  }
  
  public IReview getReview()
  {
    if ((review != null) && (((EObject)review).eIsProxy()))
    {
      InternalEObject oldReview = (InternalEObject)review;
      review = ((IReview)eResolveProxy(oldReview));
      if ((review != oldReview) && 
        (eNotificationRequired())) {
        eNotify(new ENotificationImpl(this, 9, 2, 
          oldReview, review));
      }
    }
    return review;
  }
  
  public IReview basicGetReview()
  {
    return review;
  }
  
  public void setReview(IReview newReview)
  {
    IReview oldReview = review;
    review = newReview;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 2, oldReview, review));
    }
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setName(String newName)
  {
    String oldName = name;
    name = newName;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 3, oldName, name));
    }
  }
  
  public List<ITopic> getTopics()
  {
    if (topics == null) {
      topics = new EObjectWithInverseResolvingEList(ITopic.class, this, 
        4, 13);
    }
    return topics;
  }
  
  public String getId()
  {
    return id;
  }
  
  public void setId(String newId)
  {
    String oldId = id;
    id = newId;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 5, oldId, id));
    }
  }
  
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 4: 
      return ((InternalEList)getTopics()).basicAdd(otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
  }
  
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 4: 
      return ((InternalEList)getTopics()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 1: 
      if (resolve) {
        return getAddedBy();
      }
      return basicGetAddedBy();
    case 2: 
      if (resolve) {
        return getReview();
      }
      return basicGetReview();
    case 3: 
      return getName();
    case 4: 
      return getTopics();
    case 5: 
      return getId();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 1: 
      setAddedBy((IUser)newValue);
      return;
    case 2: 
      setReview((IReview)newValue);
      return;
    case 3: 
      setName((String)newValue);
      return;
    case 4: 
      getTopics().clear();
      getTopics().addAll((Collection)newValue);
      return;
    case 5: 
      setId((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      setAddedBy(null);
      return;
    case 2: 
      setReview(null);
      return;
    case 3: 
      setName(NAME_EDEFAULT);
      return;
    case 4: 
      getTopics().clear();
      return;
    case 5: 
      setId(ID_EDEFAULT);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      return addedBy != null;
    case 2: 
      return review != null;
    case 3: 
      return name != null;
    case 4: 
      return (topics != null) && (!topics.isEmpty());
    case 5: 
      return id != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (name: ");
    result.append(name);
    result.append(", id: ");
    result.append(id);
    result.append(')');
    return result.toString();
  }
}

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

import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.mylyn.reviews.core.model.IComment;
import org.eclipse.mylyn.reviews.core.model.ICommentType;
import org.eclipse.mylyn.reviews.core.model.IUser;

public class Comment
  extends ReviewComponent
  implements IComment
{
  protected IUser author;
  protected ICommentType type;
  protected static final String DESCRIPTION_EDEFAULT = null;
  protected String description = DESCRIPTION_EDEFAULT;
  protected static final Date CREATION_DATE_EDEFAULT = null;
  protected Date creationDate = CREATION_DATE_EDEFAULT;
  protected static final String ID_EDEFAULT = null;
  protected String id = ID_EDEFAULT;
  protected EList<IComment> replies;
  protected static final boolean DRAFT_EDEFAULT = false;
  protected boolean draft = false;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.COMMENT;
  }
  
  public IUser getAuthor()
  {
    return author;
  }
  
  public void setAuthor(IUser newAuthor)
  {
    IUser oldAuthor = author;
    author = newAuthor;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 1, oldAuthor, author));
    }
  }
  
  public ICommentType getType()
  {
    return type;
  }
  
  public NotificationChain basicSetType(ICommentType newType, NotificationChain msgs)
  {
    ICommentType oldType = type;
    type = newType;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 
        2, oldType, newType);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setType(ICommentType newType)
  {
    if (newType != type)
    {
      NotificationChain msgs = null;
      if (type != null) {
        msgs = ((InternalEObject)type).eInverseRemove(this, -3, 
          null, msgs);
      }
      if (newType != null) {
        msgs = ((InternalEObject)newType).eInverseAdd(this, -3, 
          null, msgs);
      }
      msgs = basicSetType(newType, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 2, newType, newType));
    }
  }
  
  public String getDescription()
  {
    return description;
  }
  
  public void setDescription(String newDescription)
  {
    String oldDescription = description;
    description = newDescription;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 3, oldDescription, 
        description));
    }
  }
  
  public Date getCreationDate()
  {
    return creationDate;
  }
  
  public void setCreationDate(Date newCreationDate)
  {
    Date oldCreationDate = creationDate;
    creationDate = newCreationDate;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 4, 
        oldCreationDate, creationDate));
    }
  }
  
  public String getId()
  {
    return id;
  }
  
  public void setId(String newId)
  {
    String oldId = id;
    id = newId;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 5, oldId, id));
    }
  }
  
  public List<IComment> getReplies()
  {
    if (replies == null) {
      replies = new EObjectContainmentEList(IComment.class, this, 6);
    }
    return replies;
  }
  
  public boolean isDraft()
  {
    return draft;
  }
  
  public void setDraft(boolean newDraft)
  {
    boolean oldDraft = draft;
    draft = newDraft;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 7, oldDraft, draft));
    }
  }
  
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 2: 
      return basicSetType(null, msgs);
    case 6: 
      return ((InternalEList)getReplies()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 1: 
      return getAuthor();
    case 2: 
      return getType();
    case 3: 
      return getDescription();
    case 4: 
      return getCreationDate();
    case 5: 
      return getId();
    case 6: 
      return getReplies();
    case 7: 
      return Boolean.valueOf(isDraft());
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 1: 
      setAuthor((IUser)newValue);
      return;
    case 2: 
      setType((ICommentType)newValue);
      return;
    case 3: 
      setDescription((String)newValue);
      return;
    case 4: 
      setCreationDate((Date)newValue);
      return;
    case 5: 
      setId((String)newValue);
      return;
    case 6: 
      getReplies().clear();
      getReplies().addAll((Collection)newValue);
      return;
    case 7: 
      setDraft(((Boolean)newValue).booleanValue());
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      setAuthor(null);
      return;
    case 2: 
      setType(null);
      return;
    case 3: 
      setDescription(DESCRIPTION_EDEFAULT);
      return;
    case 4: 
      setCreationDate(CREATION_DATE_EDEFAULT);
      return;
    case 5: 
      setId(ID_EDEFAULT);
      return;
    case 6: 
      getReplies().clear();
      return;
    case 7: 
      setDraft(false);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      return author != null;
    case 2: 
      return type != null;
    case 3: 
      return description != null;
    case 4: 
      return creationDate != null;
    case 5: 
      return id != null;
    case 6: 
      return (replies != null) && (!replies.isEmpty());
    case 7: 
      return draft;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (description: ");
    result.append(description);
    result.append(", creationDate: ");
    result.append(creationDate);
    result.append(", id: ");
    result.append(id);
    result.append(", draft: ");
    result.append(draft);
    result.append(')');
    return result.toString();
  }
}

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

import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.mylyn.reviews.core.model.IReview;
import org.eclipse.mylyn.reviews.core.model.IReviewGroup;
import org.eclipse.mylyn.reviews.core.model.ITaskReference;

public class ReviewGroup
  extends ReviewComponent
  implements IReviewGroup
{
  protected EList<IReview> reviews;
  protected ITaskReference reviewGroupTask;
  protected static final String DESCRIPTION_EDEFAULT = null;
  protected String description = DESCRIPTION_EDEFAULT;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.REVIEW_GROUP;
  }
  
  public List<IReview> getReviews()
  {
    if (reviews == null) {
      reviews = new EObjectContainmentEList(IReview.class, this, 1);
    }
    return reviews;
  }
  
  public ITaskReference getReviewGroupTask()
  {
    return reviewGroupTask;
  }
  
  public NotificationChain basicSetReviewGroupTask(ITaskReference newReviewGroupTask, NotificationChain msgs)
  {
    ITaskReference oldReviewGroupTask = reviewGroupTask;
    reviewGroupTask = newReviewGroupTask;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 
        2, oldReviewGroupTask, newReviewGroupTask);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setReviewGroupTask(ITaskReference newReviewGroupTask)
  {
    if (newReviewGroupTask != reviewGroupTask)
    {
      NotificationChain msgs = null;
      if (reviewGroupTask != null) {
        msgs = ((InternalEObject)reviewGroupTask).eInverseRemove(this, -3, 
          null, msgs);
      }
      if (newReviewGroupTask != null) {
        msgs = ((InternalEObject)newReviewGroupTask).eInverseAdd(this, -3, 
          null, msgs);
      }
      msgs = basicSetReviewGroupTask(newReviewGroupTask, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 2, 
        newReviewGroupTask, newReviewGroupTask));
    }
  }
  
  public String getDescription()
  {
    return description;
  }
  
  public void setDescription(String newDescription)
  {
    String oldDescription = description;
    description = newDescription;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 3, 
        oldDescription, description));
    }
  }
  
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 1: 
      return ((InternalEList)getReviews()).basicRemove(otherEnd, msgs);
    case 2: 
      return basicSetReviewGroupTask(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 1: 
      return getReviews();
    case 2: 
      return getReviewGroupTask();
    case 3: 
      return getDescription();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 1: 
      getReviews().clear();
      getReviews().addAll((Collection)newValue);
      return;
    case 2: 
      setReviewGroupTask((ITaskReference)newValue);
      return;
    case 3: 
      setDescription((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      getReviews().clear();
      return;
    case 2: 
      setReviewGroupTask(null);
      return;
    case 3: 
      setDescription(DESCRIPTION_EDEFAULT);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      return (reviews != null) && (!reviews.isEmpty());
    case 2: 
      return reviewGroupTask != null;
    case 3: 
      return description != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (description: ");
    result.append(description);
    result.append(')');
    return result.toString();
  }
}

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

import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.mylyn.reviews.core.model.ILineLocation;
import org.eclipse.mylyn.reviews.core.model.ILineRange;

public class LineLocation
  extends Location
  implements ILineLocation
{
  protected EList<ILineRange> ranges;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.LINE_LOCATION;
  }
  
  public List<ILineRange> getRanges()
  {
    if (ranges == null) {
      ranges = new EObjectContainmentEList(ILineRange.class, this, 
        0);
    }
    return ranges;
  }
  
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 0: 
      return ((InternalEList)getRanges()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 0: 
      return getRanges();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 0: 
      getRanges().clear();
      getRanges().addAll((Collection)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      getRanges().clear();
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      return (ranges != null) && (!ranges.isEmpty());
    }
    return super.eIsSet(featureID);
  }
  
  public int getTotalMin()
  {
    int min = -1;
    for (ILineRange range : getRanges()) {
      if ((min == -1) || (range.getStart() < min)) {
        min = range.getStart();
      }
    }
    return min == -1 ? 0 : min;
  }
  
  public int getTotalMax()
  {
    int max = -1;
    for (ILineRange range : getRanges()) {
      if ((max == -1) || (range.getStart() > max)) {
        max = range.getStart();
      }
    }
    return max == -1 ? 0 : max;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.LineLocation
 * 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.mylyn.reviews.core.model.IReviewState;

public abstract class ReviewState
  extends ReviewComponent
  implements IReviewState
{
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.REVIEW_STATE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.ReviewState
 * 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.mylyn.reviews.core.model.IFileRevision;

public class FileRevision
  extends ReviewItem
  implements IFileRevision
{
  protected static final String PATH_EDEFAULT = null;
  protected String path = PATH_EDEFAULT;
  protected static final String REVISION_EDEFAULT = null;
  protected String revision = REVISION_EDEFAULT;
  protected static final String CONTENT_EDEFAULT = null;
  protected String content = CONTENT_EDEFAULT;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.FILE_REVISION;
  }
  
  public String getPath()
  {
    return path;
  }
  
  public void setPath(String newPath)
  {
    String oldPath = path;
    path = newPath;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 6, oldPath, path));
    }
  }
  
  public String getRevision()
  {
    return revision;
  }
  
  public void setRevision(String newRevision)
  {
    String oldRevision = revision;
    revision = newRevision;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 7, oldRevision, 
        revision));
    }
  }
  
  public String getContent()
  {
    return content;
  }
  
  public void setContent(String newContent)
  {
    String oldContent = content;
    content = newContent;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 8, oldContent, 
        content));
    }
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 6: 
      return getPath();
    case 7: 
      return getRevision();
    case 8: 
      return getContent();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 6: 
      setPath((String)newValue);
      return;
    case 7: 
      setRevision((String)newValue);
      return;
    case 8: 
      setContent((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 6: 
      setPath(PATH_EDEFAULT);
      return;
    case 7: 
      setRevision(REVISION_EDEFAULT);
      return;
    case 8: 
      setContent(CONTENT_EDEFAULT);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 6: 
      return path != null;
    case 7: 
      return revision != null;
    case 8: 
      return content != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (path: ");
    result.append(path);
    result.append(", revision: ");
    result.append(revision);
    result.append(", content: ");
    result.append(content);
    result.append(')');
    return result.toString();
  }
}

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

import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
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.ITaskReference;
import org.eclipse.mylyn.reviews.core.model.ITopic;
import org.eclipse.mylyn.reviews.core.model.IUser;

public class ReviewsSwitch<T>
{
  protected static ReviewsPackage modelPackage;
  
  public ReviewsSwitch()
  {
    if (modelPackage == null) {
      modelPackage = ReviewsPackage.eINSTANCE;
    }
  }
  
  public T doSwitch(EObject theEObject)
  {
    return (T)doSwitch(theEObject.eClass(), theEObject);
  }
  
  protected T doSwitch(EClass theEClass, EObject theEObject)
  {
    if (theEClass.eContainer() == modelPackage) {
      return (T)doSwitch(theEClass.getClassifierID(), theEObject);
    }
    List<EClass> eSuperTypes = theEClass.getESuperTypes();
    return (T)(eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch((EClass)eSuperTypes.get(0), theEObject));
  }
  
  protected T doSwitch(int classifierID, EObject theEObject)
  {
    switch (classifierID)
    {
    case 0: 
      IReview review = (IReview)theEObject;
      T result = caseReview(review);
      if (result == null) {
        result = caseReviewComponent(review);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 1: 
      IComment comment = (IComment)theEObject;
      T result = caseComment(comment);
      if (result == null) {
        result = caseReviewComponent(comment);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 2: 
      IReviewItem reviewItem = (IReviewItem)theEObject;
      T result = caseReviewItem(reviewItem);
      if (result == null) {
        result = caseReviewComponent(reviewItem);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 3: 
      ILocation location = (ILocation)theEObject;
      T result = caseLocation(location);
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 4: 
      IUser user = (IUser)theEObject;
      T result = caseUser(user);
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 5: 
      ITaskReference taskReference = (ITaskReference)theEObject;
      T result = caseTaskReference(taskReference);
      if (result == null) {
        result = caseReviewComponent(taskReference);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 6: 
      IReviewState reviewState = (IReviewState)theEObject;
      T result = caseReviewState(reviewState);
      if (result == null) {
        result = caseReviewComponent(reviewState);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 7: 
      IReviewGroup reviewGroup = (IReviewGroup)theEObject;
      T result = caseReviewGroup(reviewGroup);
      if (result == null) {
        result = caseReviewComponent(reviewGroup);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 8: 
      ICommentType commentType = (ICommentType)theEObject;
      T result = caseCommentType(commentType);
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 9: 
      ITopic topic = (ITopic)theEObject;
      T result = caseTopic(topic);
      if (result == null) {
        result = caseComment(topic);
      }
      if (result == null) {
        result = caseReviewComponent(topic);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 10: 
      IReviewComponent reviewComponent = (IReviewComponent)theEObject;
      T result = caseReviewComponent(reviewComponent);
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 11: 
      IFileItem fileItem = (IFileItem)theEObject;
      T result = caseFileItem(fileItem);
      if (result == null) {
        result = caseReviewItem(fileItem);
      }
      if (result == null) {
        result = caseReviewComponent(fileItem);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 12: 
      IReviewItemSet reviewItemSet = (IReviewItemSet)theEObject;
      T result = caseReviewItemSet(reviewItemSet);
      if (result == null) {
        result = caseReviewItem(reviewItemSet);
      }
      if (result == null) {
        result = caseReviewComponent(reviewItemSet);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 13: 
      ILineLocation lineLocation = (ILineLocation)theEObject;
      T result = caseLineLocation(lineLocation);
      if (result == null) {
        result = caseLocation(lineLocation);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 14: 
      ILineRange lineRange = (ILineRange)theEObject;
      T result = caseLineRange(lineRange);
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    case 15: 
      IFileRevision fileRevision = (IFileRevision)theEObject;
      T result = caseFileRevision(fileRevision);
      if (result == null) {
        result = caseReviewItem(fileRevision);
      }
      if (result == null) {
        result = caseReviewComponent(fileRevision);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    }
    return (T)defaultCase(theEObject);
  }
  
  public T caseReview(IReview object)
  {
    return null;
  }
  
  public T caseComment(IComment object)
  {
    return null;
  }
  
  public T caseReviewItem(IReviewItem object)
  {
    return null;
  }
  
  public T caseLocation(ILocation object)
  {
    return null;
  }
  
  public T caseUser(IUser object)
  {
    return null;
  }
  
  public T caseTaskReference(ITaskReference object)
  {
    return null;
  }
  
  public T caseReviewState(IReviewState object)
  {
    return null;
  }
  
  public T caseReviewGroup(IReviewGroup object)
  {
    return null;
  }
  
  public T caseCommentType(ICommentType object)
  {
    return null;
  }
  
  public T caseTopic(ITopic object)
  {
    return null;
  }
  
  public T caseReviewComponent(IReviewComponent object)
  {
    return null;
  }
  
  public T caseFileItem(IFileItem object)
  {
    return null;
  }
  
  public T caseReviewItemSet(IReviewItemSet object)
  {
    return null;
  }
  
  public T caseLineLocation(ILineLocation object)
  {
    return null;
  }
  
  public T caseLineRange(ILineRange object)
  {
    return null;
  }
  
  public T caseFileRevision(IFileRevision object)
  {
    return null;
  }
  
  public T defaultCase(EObject object)
  {
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.ReviewsSwitch
 * 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.ILineRange;

public class LineRange
  extends EObjectImpl
  implements ILineRange
{
  protected static final int START_EDEFAULT = 0;
  protected int start = 0;
  protected static final int END_EDEFAULT = 0;
  protected int end = 0;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.LINE_RANGE;
  }
  
  public int getStart()
  {
    return start;
  }
  
  public void setStart(int newStart)
  {
    int oldStart = start;
    start = newStart;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 0, oldStart, start));
    }
  }
  
  public int getEnd()
  {
    return end;
  }
  
  public void setEnd(int newEnd)
  {
    int oldEnd = end;
    end = newEnd;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 1, oldEnd, end));
    }
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 0: 
      return Integer.valueOf(getStart());
    case 1: 
      
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