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

16:46:49.916 INFO  jd.cli.Main - Decompiling org.eclipse.mylyn.reviews.core_0.9.1.v20120425-0100.jar
package org.eclipse.mylyn.reviews.core.model;

import java.util.List;

public abstract interface IReview
  extends IReviewComponent
{
  public abstract List<ITopic> getTopics();
  
  public abstract List<IReviewItem> getItems();
  
  public abstract ITaskReference getReviewTask();
  
  public abstract void setReviewTask(ITaskReference paramITaskReference);
  
  public abstract IReviewState getState();
  
  public abstract void setState(IReviewState paramIReviewState);
  
  public abstract String getId();
  
  public abstract void setId(String paramString);
}

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

public abstract interface IUser
{
  public abstract String getId();
  
  public abstract void setId(String paramString);
  
  public abstract String getDisplayName();
  
  public abstract void setDisplayName(String paramString);
}

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

import org.eclipse.mylyn.reviews.internal.core.model.ReviewsFactory;

public abstract interface IReviewsFactory
{
  public static final IReviewsFactory INSTANCE = ReviewsFactory.eINSTANCE;
  
  public abstract IReview createReview();
  
  public abstract IComment createComment();
  
  public abstract IReviewItem createReviewItem();
  
  public abstract IUser createUser();
  
  public abstract ITaskReference createTaskReference();
  
  public abstract IReviewGroup createReviewGroup();
  
  public abstract ITopic createTopic();
  
  public abstract IReviewComponent createReviewComponent();
  
  public abstract IFileItem createFileItem();
  
  public abstract IReviewItemSet createReviewItemSet();
  
  public abstract ILineLocation createLineLocation();
  
  public abstract ILineRange createLineRange();
  
  public abstract IFileRevision createFileRevision();
}

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

public abstract interface ILocation {}

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

import java.util.List;

public abstract interface ITopic
  extends IComment
{
  public abstract ITaskReference getTask();
  
  public abstract void setTask(ITaskReference paramITaskReference);
  
  public abstract ILocation getLocation();
  
  public abstract void setLocation(ILocation paramILocation);
  
  public abstract List<IComment> getComments();
  
  public abstract IReview getReview();
  
  public abstract void setReview(IReview paramIReview);
  
  public abstract String getTitle();
  
  public abstract void setTitle(String paramString);
  
  public abstract IReviewItem getItem();
  
  public abstract void setItem(IReviewItem paramIReviewItem);
}

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

import java.util.List;

public abstract interface IReviewItemSet
  extends IReviewItem
{
  public abstract List<IReviewItem> getItems();
  
  public abstract String getRevision();
  
  public abstract void setRevision(String paramString);
}

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

import java.util.List;

public abstract interface IReviewGroup
  extends IReviewComponent
{
  public abstract List<IReview> getReviews();
  
  public abstract ITaskReference getReviewGroupTask();
  
  public abstract void setReviewGroupTask(ITaskReference paramITaskReference);
  
  public abstract String getDescription();
  
  public abstract void setDescription(String paramString);
}

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

public abstract interface ILineRange
{
  public abstract int getStart();
  
  public abstract void setStart(int paramInt);
  
  public abstract int getEnd();
  
  public abstract void setEnd(int paramInt);
}

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

public abstract interface IReviewState
  extends IReviewComponent
{}

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

public abstract interface IFileItem
  extends IReviewItem
{
  public abstract IFileRevision getBase();
  
  public abstract void setBase(IFileRevision paramIFileRevision);
  
  public abstract IFileRevision getTarget();
  
  public abstract void setTarget(IFileRevision paramIFileRevision);
}

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

public abstract interface ITaskReference
  extends IReviewComponent
{
  public abstract String getTaskId();
  
  public abstract void setTaskId(String paramString);
  
  public abstract String getRepositoryURL();
  
  public abstract void setRepositoryURL(String paramString);
}

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

public abstract interface IReviewComponent
{
  public abstract boolean isEnabled();
  
  public abstract void setEnabled(boolean paramBoolean);
}

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

import java.util.List;

public abstract interface ILineLocation
  extends ILocation
{
  public abstract List<ILineRange> getRanges();
  
  public abstract int getTotalMin();
  
  public abstract int getTotalMax();
}

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

public abstract interface IItem
  extends IReviewComponent
{
  public abstract IUser getAddedBy();
  
  public abstract void setAddedBy(IUser paramIUser);
  
  public abstract IReview getReview();
  
  public abstract void setReview(IReview paramIReview);
}

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

public abstract interface IFileRevision
  extends IReviewItem
{
  public abstract String getPath();
  
  public abstract void setPath(String paramString);
  
  public abstract String getRevision();
  
  public abstract void setRevision(String paramString);
  
  public abstract String getContent();
  
  public abstract void setContent(String paramString);
}

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

import java.util.Date;
import java.util.List;

public abstract interface IComment
  extends IReviewComponent
{
  public abstract IUser getAuthor();
  
  public abstract void setAuthor(IUser paramIUser);
  
  public abstract ICommentType getType();
  
  public abstract void setType(ICommentType paramICommentType);
  
  public abstract String getDescription();
  
  public abstract void setDescription(String paramString);
  
  public abstract Date getCreationDate();
  
  public abstract void setCreationDate(Date paramDate);
  
  public abstract String getId();
  
  public abstract void setId(String paramString);
  
  public abstract List<IComment> getReplies();
  
  public abstract boolean isDraft();
  
  public abstract void setDraft(boolean paramBoolean);
}

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

public abstract interface ICommentType {}

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

import java.util.List;

public abstract interface IReviewItem
  extends IReviewComponent
{
  public abstract IUser getAddedBy();
  
  public abstract void setAddedBy(IUser paramIUser);
  
  public abstract IReview getReview();
  
  public abstract void setReview(IReview paramIReview);
  
  public abstract String getName();
  
  public abstract void setName(String paramString);
  
  public abstract List<ITopic> getTopics();
  
  public abstract String getId();
  
  public abstract void setId(String paramString);
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.core.model.IReviewItem
 * 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.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
import org.eclipse.mylyn.reviews.core.model.IReviewItemSet;

public class ReviewItemSet
  extends ReviewItem
  implements IReviewItemSet
{
  protected EList<IReviewItem> items;
  protected static final String REVISION_EDEFAULT = "";
  protected String revision = "";
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.REVIEW_ITEM_SET;
  }
  
  public List<IReviewItem> getItems()
  {
    if (items == null) {
      items = new EObjectResolvingEList(IReviewItem.class, this, 
        6);
    }
    return items;
  }
  
  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 Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 6: 
      return getItems();
    case 7: 
      return getRevision();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 6: 
      getItems().clear();
      getItems().addAll((Collection)newValue);
      return;
    case 7: 
      setRevision((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 6: 
      getItems().clear();
      return;
    case 7: 
      setRevision("");
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 6: 
      return (items != null) && (!items.isEmpty());
    case 7: 
      return revision != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (revision: ");
    result.append(revision);
    result.append(')');
    return result.toString();
  }
}

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

class ReviewsAdapterFactory$1
  extends ReviewsSwitch<Adapter>
{
  ReviewsAdapterFactory$1(ReviewsAdapterFactory paramReviewsAdapterFactory) {}
  
  public Adapter caseReview(IReview object)
  {
    return this$0.createReviewAdapter();
  }
  
  public Adapter caseComment(IComment object)
  {
    return this$0.createCommentAdapter();
  }
  
  public Adapter caseReviewItem(IReviewItem object)
  {
    return this$0.createReviewItemAdapter();
  }
  
  public Adapter caseLocation(ILocation object)
  {
    return this$0.createLocationAdapter();
  }
  
  public Adapter caseUser(IUser object)
  {
    return this$0.createUserAdapter();
  }
  
  public Adapter caseTaskReference(ITaskReference object)
  {
    return this$0.createTaskReferenceAdapter();
  }
  
  public Adapter caseReviewState(IReviewState object)
  {
    return this$0.createReviewStateAdapter();
  }
  
  public Adapter caseReviewGroup(IReviewGroup object)
  {
    return this$0.createReviewGroupAdapter();
  }
  
  public Adapter caseCommentType(ICommentType object)
  {
    return this$0.createCommentTypeAdapter();
  }
  
  public Adapter caseTopic(ITopic object)
  {
    return this$0.createTopicAdapter();
  }
  
  public Adapter caseReviewComponent(IReviewComponent object)
  {
    return this$0.createReviewComponentAdapter();
  }
  
  public Adapter caseFileItem(IFileItem object)
  {
    return this$0.createFileItemAdapter();
  }
  
  public Adapter caseReviewItemSet(IReviewItemSet object)
  {
    return this$0.createReviewItemSetAdapter();
  }
  
  public Adapter caseLineLocation(ILineLocation object)
  {
    return this$0.createLineLocationAdapter();
  }
  
  public Adapter caseLineRange(ILineRange object)
  {
    return this$0.createLineRangeAdapter();
  }
  
  public Adapter caseFileRevision(IFileRevision object)
  {
    return this$0.createFileRevisionAdapter();
  }
  
  public Adapter defaultCase(EObject object)
  {
    return this$0.createEObjectAdapter();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.ReviewsAdapterFactory.1
 * 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.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
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 ReviewsAdapterFactory
  extends AdapterFactoryImpl
{
  protected static ReviewsPackage modelPackage;
  
  public ReviewsAdapterFactory()
  {
    if (modelPackage == null) {
      modelPackage = ReviewsPackage.eINSTANCE;
    }
  }
  
  public boolean isFactoryForType(Object object)
  {
    if (object == modelPackage) {
      return true;
    }
    if ((object instanceof EObject)) {
      return ((EObject)object).eClass().getEPackage() == modelPackage;
    }
    return false;
  }
  
  protected ReviewsSwitch<Adapter> modelSwitch = new ReviewsSwitch()
  {
    public Adapter caseReview(IReview object)
    {
      return createReviewAdapter();
    }
    
    public Adapter caseComment(IComment object)
    {
      return createCommentAdapter();
    }
    
    public Adapter caseReviewItem(IReviewItem object)
    {
      return createReviewItemAdapter();
    }
    
    public Adapter caseLocation(ILocation object)
    {
      return createLocationAdapter();
    }
    
    public Adapter caseUser(IUser object)
    {
      return createUserAdapter();
    }
    
    public Adapter caseTaskReference(ITaskReference object)
    {
      return createTaskReferenceAdapter();
    }
    
    public Adapter caseReviewState(IReviewState object)
    {
      return createReviewStateAdapter();
    }
    
    public Adapter caseReviewGroup(IReviewGroup object)
    {
      return createReviewGroupAdapter();
    }
    
    public Adapter caseCommentType(ICommentType object)
    {
      return createCommentTypeAdapter();
    }
    
    public Adapter caseTopic(ITopic object)
    {
      return createTopicAdapter();
    }
    
    public Adapter caseReviewComponent(IReviewComponent object)
    {
      return createReviewComponentAdapter();
    }
    
    public Adapter caseFileItem(IFileItem object)
    {
      return createFileItemAdapter();
    }
    
    public Adapter caseReviewItemSet(IReviewItemSet object)
    {
      return createReviewItemSetAdapter();
    }
    
    public Adapter caseLineLocation(ILineLocation object)
    {
      return createLineLocationAdapter();
    }
    
    public Adapter caseLineRange(ILineRange object)
    {
      return createLineRangeAdapter();
    }
    
    public Adapter caseFileRevision(IFileRevision object)
    {
      return createFileRevisionAdapter();
    }
    
    public Adapter defaultCase(EObject object)
    {
      return createEObjectAdapter();
    }
  };
  
  public Adapter createAdapter(Notifier target)
  {
    return (Adapter)modelSwitch.doSwitch((EObject)target);
  }
  
  public Adapter createReviewAdapter()
  {
    return null;
  }
  
  public Adapter createCommentAdapter()
  {
    return null;
  }
  
  public Adapter createReviewItemAdapter()
  {
    return null;
  }
  
  public Adapter createLocationAdapter()
  {
    return null;
  }
  
  public Adapter createUserAdapter()
  {
    return null;
  }
  
  public Adapter createTaskReferenceAdapter()
  {
    return null;
  }
  
  public Adapter createReviewStateAdapter()
  {
    return null;
  }
  
  public Adapter createReviewGroupAdapter()
  {
    return null;
  }
  
  public Adapter createCommentTypeAdapter()
  {
    return null;
  }
  
  public Adapter createTopicAdapter()
  {
    return null;
  }
  
  public Adapter createReviewComponentAdapter()
  {
    return null;
  }
  
  public Adapter createFileItemAdapter()
  {
    return null;
  }
  
  public Adapter createReviewItemSetAdapter()
  {
    return null;
  }
  
  public Adapter createLineLocationAdapter()
  {
    return null;
  }
  
  public Adapter createLineRangeAdapter()
  {
    return null;
  }
  
  public Adapter createFileRevisionAdapter()
  {
    return null;
  }
  
  public Adapter createEObjectAdapter()
  {
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.ReviewsAdapterFactory
 * 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.EObjectResolvingEList;
import org.eclipse.mylyn.reviews.core.model.IComment;
import org.eclipse.mylyn.reviews.core.model.ILocation;
import org.eclipse.mylyn.reviews.core.model.IReview;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
import org.eclipse.mylyn.reviews.core.model.ITaskReference;
import org.eclipse.mylyn.reviews.core.model.ITopic;

public class Topic
  extends Comment
  implements ITopic
{
  protected ITaskReference task;
  protected ILocation location;
  protected EList<IComment> comments;
  protected IReview review;
  protected static final String TITLE_EDEFAULT = null;
  protected String title = TITLE_EDEFAULT;
  protected IReviewItem item;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.TOPIC;
  }
  
  public ITaskReference getTask()
  {
    return task;
  }
  
  public NotificationChain basicSetTask(ITaskReference newTask, NotificationChain msgs)
  {
    ITaskReference oldTask = task;
    task = newTask;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 8, 
        oldTask, newTask);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setTask(ITaskReference newTask)
  {
    if (newTask != task)
    {
      NotificationChain msgs = null;
      if (task != null) {
        msgs = ((InternalEObject)task).eInverseRemove(this, -9, 
          null, msgs);
      }
      if (newTask != null) {
        msgs = ((InternalEObject)newTask).eInverseAdd(this, -9, 
          null, msgs);
      }
      msgs = basicSetTask(newTask, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 8, newTask, newTask));
    }
  }
  
  public ILocation getLocation()
  {
    return location;
  }
  
  public NotificationChain basicSetLocation(ILocation newLocation, NotificationChain msgs)
  {
    ILocation oldLocation = location;
    location = newLocation;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 
        9, oldLocation, newLocation);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setLocation(ILocation newLocation)
  {
    if (newLocation != location)
    {
      NotificationChain msgs = null;
      if (location != null) {
        msgs = ((InternalEObject)location).eInverseRemove(this, -10, 
          null, msgs);
      }
      if (newLocation != null) {
        msgs = ((InternalEObject)newLocation).eInverseAdd(this, -10, 
          null, msgs);
      }
      msgs = basicSetLocation(newLocation, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 9, newLocation, 
        newLocation));
    }
  }
  
  public List<IComment> getComments()
  {
    if (comments == null) {
      comments = new EObjectResolvingEList(IComment.class, this, 10);
    }
    return comments;
  }
  
  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, 11, 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, 11, oldReview, review));
    }
  }
  
  public String getTitle()
  {
    return title;
  }
  
  public void setTitle(String newTitle)
  {
    String oldTitle = title;
    title = newTitle;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 12, oldTitle, title));
    }
  }
  
  public IReviewItem getItem()
  {
    if ((item != null) && (((EObject)item).eIsProxy()))
    {
      InternalEObject oldItem = (InternalEObject)item;
      item = ((IReviewItem)eResolveProxy(oldItem));
      if ((item != oldItem) && 
        (eNotificationRequired())) {
        eNotify(new ENotificationImpl(this, 9, 13, oldItem, item));
      }
    }
    return item;
  }
  
  public IReviewItem basicGetItem()
  {
    return item;
  }
  
  public NotificationChain basicSetItem(IReviewItem newItem, NotificationChain msgs)
  {
    IReviewItem oldItem = item;
    item = newItem;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 13, 
        oldItem, newItem);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setItem(IReviewItem newItem)
  {
    if (newItem != item)
    {
      NotificationChain msgs = null;
      if (item != null) {
        msgs = ((InternalEObject)item).eInverseRemove(this, 4, 
          IReviewItem.class, msgs);
      }
      if (newItem != null) {
        msgs = ((InternalEObject)newItem).eInverseAdd(this, 4, 
          IReviewItem.class, msgs);
      }
      msgs = basicSetItem(newItem, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 13, newItem, newItem));
    }
  }
  
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 13: 
      if (item != null) {
        msgs = ((InternalEObject)item).eInverseRemove(this, 4, 
          IReviewItem.class, msgs);
      }
      return basicSetItem((IReviewItem)otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
  }
  
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 8: 
      return basicSetTask(null, msgs);
    case 9: 
      return basicSetLocation(null, msgs);
    case 13: 
      return basicSetItem(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 8: 
      return getTask();
    case 9: 
      return getLocation();
    case 10: 
      return getComments();
    case 11: 
      if (resolve) {
        return getReview();
      }
      return basicGetReview();
    case 12: 
      return getTitle();
    case 13: 
      if (resolve) {
        return getItem();
      }
      return basicGetItem();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 8: 
      setTask((ITaskReference)newValue);
      return;
    case 9: 
      setLocation((ILocation)newValue);
      return;
    case 10: 
      getComments().clear();
      getComments().addAll((Collection)newValue);
      return;
    case 11: 
      setReview((IReview)newValue);
      return;
    case 12: 
      setTitle((String)newValue);
      return;
    case 13: 
      setItem((IReviewItem)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 8: 
      setTask(null);
      return;
    case 9: 
      setLocation(null);
      return;
    case 10: 
      getComments().clear();
      return;
    case 11: 
      setReview(null);
      return;
    case 12: 
      setTitle(TITLE_EDEFAULT);
      return;
    case 13: 
      setItem(null);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 8: 
      return task != null;
    case 9: 
      return location != null;
    case 10: 
      return (comments != null) && (!comments.isEmpty());
    case 11: 
      return review != null;
    case 12: 
      return title != null;
    case 13: 
      return item != null;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (title: ");
    result.append(title);
    result.append(')');
    return result.toString();
  }
}

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

public abstract class CommentType
  extends EObjectImpl
  implements ICommentType
{
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.COMMENT_TYPE;
  }
}

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

public class ReviewComponent
  extends EObjectImpl
  implements IReviewComponent
{
  protected static final boolean ENABLED_EDEFAULT = true;
  protected boolean enabled = true;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.REVIEW_COMPONENT;
  }
  
  public boolean isEnabled()
  {
    return enabled;
  }
  
  public void setEnabled(boolean newEnabled)
  {
    boolean oldEnabled = enabled;
    enabled = newEnabled;
    if (eNotificationRequired()) {
      eNotify(new ENotificationImpl(this, 1, 0, oldEnabled, 
        enabled));
    }
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 0: 
      return Boolean.valueOf(isEnabled());
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 0: 
      setEnabled(((Boolean)newValue).booleanValue());
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      setEnabled(true);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 0: 
      return !enabled;
    }
    return super.eIsSet(featureID);
  }
  
  public String toString()
  {
    if (eIsProxy()) {
      return super.toString();
    }
    StringBuffer result = new StringBuffer(super.toString());
    result.append(" (enabled: ");
    result.append(enabled);
    result.append(')');
    return result.toString();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.ReviewComponent
 * 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.EObjectResolvingEList;
import org.eclipse.mylyn.reviews.core.model.IReview;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
import org.eclipse.mylyn.reviews.core.model.IReviewState;
import org.eclipse.mylyn.reviews.core.model.ITaskReference;
import org.eclipse.mylyn.reviews.core.model.ITopic;

public class Review
  extends ReviewComponent
  implements IReview
{
  protected EList<ITopic> topics;
  protected EList<IReviewItem> items;
  protected ITaskReference reviewTask;
  protected IReviewState state;
  protected static final String ID_EDEFAULT = null;
  protected String id = ID_EDEFAULT;
  
  protected EClass eStaticClass()
  {
    return ReviewsPackage.Literals.REVIEW;
  }
  
  public List<ITopic> getTopics()
  {
    if (topics == null) {
      topics = new EObjectResolvingEList(ITopic.class, this, 1);
    }
    return topics;
  }
  
  public List<IReviewItem> getItems()
  {
    if (items == null) {
      items = new EObjectResolvingEList(IReviewItem.class, this, 2);
    }
    return items;
  }
  
  public ITaskReference getReviewTask()
  {
    return reviewTask;
  }
  
  public NotificationChain basicSetReviewTask(ITaskReference newReviewTask, NotificationChain msgs)
  {
    ITaskReference oldReviewTask = reviewTask;
    reviewTask = newReviewTask;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 
        3, oldReviewTask, newReviewTask);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setReviewTask(ITaskReference newReviewTask)
  {
    if (newReviewTask != reviewTask)
    {
      NotificationChain msgs = null;
      if (reviewTask != null) {
        msgs = ((InternalEObject)reviewTask).eInverseRemove(this, -4, 
          null, msgs);
      }
      if (newReviewTask != null) {
        msgs = ((InternalEObject)newReviewTask).eInverseAdd(this, -4, 
          null, msgs);
      }
      msgs = basicSetReviewTask(newReviewTask, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 3, newReviewTask, 
        newReviewTask));
    }
  }
  
  public IReviewState getState()
  {
    return state;
  }
  
  public NotificationChain basicSetState(IReviewState newState, NotificationChain msgs)
  {
    IReviewState oldState = state;
    state = newState;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, 1, 
        4, oldState, newState);
      if (msgs == null) {
        msgs = notification;
      } else {
        msgs.add(notification);
      }
    }
    return msgs;
  }
  
  public void setState(IReviewState newState)
  {
    if (newState != state)
    {
      NotificationChain msgs = null;
      if (state != null) {
        msgs = ((InternalEObject)state).eInverseRemove(this, -5, 
          null, msgs);
      }
      if (newState != null) {
        msgs = ((InternalEObject)newState).eInverseAdd(this, -5, 
          null, msgs);
      }
      msgs = basicSetState(newState, msgs);
      if (msgs != null) {
        msgs.dispatch();
      }
    }
    else if (eNotificationRequired())
    {
      eNotify(new ENotificationImpl(this, 1, 4, newState, newState));
    }
  }
  
  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 eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
  {
    switch (featureID)
    {
    case 3: 
      return basicSetReviewTask(null, msgs);
    case 4: 
      return basicSetState(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
  }
  
  public Object eGet(int featureID, boolean resolve, boolean coreType)
  {
    switch (featureID)
    {
    case 1: 
      return getTopics();
    case 2: 
      return getItems();
    case 3: 
      return getReviewTask();
    case 4: 
      return getState();
    case 5: 
      return getId();
    }
    return super.eGet(featureID, resolve, coreType);
  }
  
  public void eSet(int featureID, Object newValue)
  {
    switch (featureID)
    {
    case 1: 
      getTopics().clear();
      getTopics().addAll((Collection)newValue);
      return;
    case 2: 
      getItems().clear();
      getItems().addAll((Collection)newValue);
      return;
    case 3: 
      setReviewTask((ITaskReference)newValue);
      return;
    case 4: 
      setState((IReviewState)newValue);
      return;
    case 5: 
      setId((String)newValue);
      return;
    }
    super.eSet(featureID, newValue);
  }
  
  public void eUnset(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      getTopics().clear();
      return;
    case 2: 
      getItems().clear();
      return;
    case 3: 
      setReviewTask(null);
      return;
    case 4: 
      setState(null);
      return;
    case 5: 
      setId(ID_EDEFAULT);
      return;
    }
    super.eUnset(featureID);
  }
  
  public boolean eIsSet(int featureID)
  {
    switch (featureID)
    {
    case 1: 
      return (topics != null) && (!topics.isEmpty());
    case 2: 
      return (items != null) && (!items.isEmpty());
    case 3: 
      return reviewTask != null;
    case 4: 
      return state != null;
    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(" (id: ");
    result.append(id);
    result.append(')');
    return result.toString();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.reviews.internal.core.model.Review
 * 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.EPackage.Registry;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.mylyn.reviews.core.model.IComment;
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.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.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 ReviewsFactory
  extends EFactoryImpl
  implements IReviewsFactory
{
  public static final Revie
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-2017. Infinite Loop Ltd