org.eclipse.emf.mapping.ecore2ecore_2.7.0.v20120130-0943

16:43:41.798 INFO  jd.cli.Main - Decompiling org.eclipse.emf.mapping.ecore2ecore_2.7.0.v20120130-0943.jar
package org.eclipse.emf.mapping.ecore2ecore;

import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.mapping.ecore2ecore.impl.Ecore2EcoreFactoryImpl;

public abstract interface Ecore2EcoreFactory
  extends EFactory
{
  public static final Ecore2EcoreFactory eINSTANCE = ;
  
  public abstract Ecore2EcoreMappingRoot createEcore2EcoreMappingRoot();
  
  public abstract Ecore2EcorePackage getEcore2EcorePackage();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreFactory
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore;

import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.mapping.MappingRoot;

public abstract interface Ecore2EcoreMappingRoot
  extends MappingRoot
{
  public abstract EPackage getInputEPackage();
  
  public abstract EPackage getOutputEPackage();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore;

import org.eclipse.emf.ecore.EClass;

public abstract interface Ecore2EcorePackage$Literals
{
  public static final EClass ECORE2_ECORE_MAPPING_ROOT = Ecore2EcorePackage.eINSTANCE.getEcore2EcoreMappingRoot();
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage.Literals
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.mapping.ecore2ecore.impl.Ecore2EcorePackageImpl;

public abstract interface Ecore2EcorePackage
  extends EPackage
{
  public static final String eNAME = "ecore2ecore";
  public static final String eNS_URI = "http://www.eclipse.org/emf/2004/Ecore2Ecore";
  public static final String eNS_PREFIX = "ecore2ecore";
  public static final String eCONTENT_TYPE = "org.eclipse.emf.mapping.ecore2ecore";
  public static final Ecore2EcorePackage eINSTANCE = ;
  public static final int ECORE2_ECORE_MAPPING_ROOT = 0;
  public static final int ECORE2_ECORE_MAPPING_ROOT__HELPER = 0;
  public static final int ECORE2_ECORE_MAPPING_ROOT__NESTED = 1;
  public static final int ECORE2_ECORE_MAPPING_ROOT__NESTED_IN = 2;
  public static final int ECORE2_ECORE_MAPPING_ROOT__INPUTS = 3;
  public static final int ECORE2_ECORE_MAPPING_ROOT__OUTPUTS = 4;
  public static final int ECORE2_ECORE_MAPPING_ROOT__TYPE_MAPPING = 5;
  public static final int ECORE2_ECORE_MAPPING_ROOT__OUTPUT_READ_ONLY = 6;
  public static final int ECORE2_ECORE_MAPPING_ROOT__TOP_TO_BOTTOM = 7;
  public static final int ECORE2_ECORE_MAPPING_ROOT__COMMAND_STACK = 8;
  public static final int ECORE2_ECORE_MAPPING_ROOT_FEATURE_COUNT = 9;
  
  public abstract EClass getEcore2EcoreMappingRoot();
  
  public abstract Ecore2EcoreFactory getEcore2EcoreFactory();
  
  public static abstract interface Literals
  {
    public static final EClass ECORE2_ECORE_MAPPING_ROOT = Ecore2EcorePackage.eINSTANCE.getEcore2EcoreMappingRoot();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore;

import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;

public class Ecore2EcorePlugin$Implementation
  extends EMFPlugin.EclipsePlugin
{
  public Ecore2EcorePlugin$Implementation()
  {
    Ecore2EcorePlugin.access$0(this);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePlugin.Implementation
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore;

import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.EMFPlugin.EclipsePlugin;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
import org.eclipse.emf.mapping.MappingPlugin;

public final class Ecore2EcorePlugin
  extends EMFPlugin
{
  public static final Ecore2EcorePlugin INSTANCE = new Ecore2EcorePlugin();
  private static Implementation plugin;
  
  public Ecore2EcorePlugin()
  {
    super(new ResourceLocator[] {MappingPlugin.INSTANCE, EcoreEditPlugin.INSTANCE });
  }
  
  public ResourceLocator getPluginResourceLocator()
  {
    return plugin;
  }
  
  public static Implementation getPlugin()
  {
    return plugin;
  }
  
  public static class Implementation
    extends EMFPlugin.EclipsePlugin
  {
    public Implementation()
    {
      Ecore2EcorePlugin.plugin = this;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePlugin
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.impl;

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.emf.mapping.ecore2ecore.Ecore2EcoreFactory;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage;

public class Ecore2EcoreFactoryImpl
  extends EFactoryImpl
  implements Ecore2EcoreFactory
{
  public static Ecore2EcoreFactory init()
  {
    try
    {
      Ecore2EcoreFactory theEcore2EcoreFactory = (Ecore2EcoreFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/2004/Ecore2Ecore");
      if (theEcore2EcoreFactory != null) {
        return theEcore2EcoreFactory;
      }
    }
    catch (Exception exception)
    {
      EcorePlugin.INSTANCE.log(exception);
    }
    return new Ecore2EcoreFactoryImpl();
  }
  
  public EObject create(EClass eClass)
  {
    switch (eClass.getClassifierID())
    {
    case 0: 
      return createEcore2EcoreMappingRoot();
    }
    throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
  
  public Ecore2EcoreMappingRoot createEcore2EcoreMappingRoot()
  {
    Ecore2EcoreMappingRootImpl ecore2EcoreMappingRoot = new Ecore2EcoreMappingRootImpl();
    return ecore2EcoreMappingRoot;
  }
  
  public Ecore2EcorePackage getEcore2EcorePackage()
  {
    return (Ecore2EcorePackage)getEPackage();
  }
  
  @Deprecated
  public static Ecore2EcorePackage getPackage()
  {
    return Ecore2EcorePackage.eINSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.impl.Ecore2EcoreFactoryImpl
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.impl;

import java.util.Collection;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.mapping.Mapping;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage.Literals;
import org.eclipse.emf.mapping.impl.MappingRootImpl;

public class Ecore2EcoreMappingRootImpl
  extends MappingRootImpl
  implements Ecore2EcoreMappingRoot
{
  protected EClass eStaticClass()
  {
    return Ecore2EcorePackage.Literals.ECORE2_ECORE_MAPPING_ROOT;
  }
  
  public EPackage getInputEPackage()
  {
    return getInputs().isEmpty() ? null : (EPackage)getInputs().get(0);
  }
  
  public EPackage getOutputEPackage()
  {
    return getOutputs().isEmpty() ? null : (EPackage)getOutputs().get(0);
  }
  
  public boolean canCreateMapping(Collection<?> inputs, Collection<?> outputs, Mapping mapping)
  {
    if (mapping == this)
    {
      for (Object object : inputs) {
        if (!(object instanceof EPackage)) {
          return false;
        }
      }
      for (Object object : outputs) {
        if (!(object instanceof EPackage)) {
          return false;
        }
      }
      return true;
    }
    return super.canCreateMapping(inputs, outputs, mapping);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.impl.Ecore2EcoreMappingRootImpl
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.impl;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage.Registry;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.eclipse.emf.mapping.MappingPackage;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreFactory;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage;

public class Ecore2EcorePackageImpl
  extends EPackageImpl
  implements Ecore2EcorePackage
{
  private EClass ecore2EcoreMappingRootEClass = null;
  
  private Ecore2EcorePackageImpl()
  {
    super("http://www.eclipse.org/emf/2004/Ecore2Ecore", Ecore2EcoreFactory.eINSTANCE);
  }
  
  private static boolean isInited = false;
  
  public static Ecore2EcorePackage init()
  {
    if (isInited) {
      return (Ecore2EcorePackage)EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/emf/2004/Ecore2Ecore");
    }
    Ecore2EcorePackageImpl theEcore2EcorePackage = (Ecore2EcorePackageImpl)((EPackage.Registry.INSTANCE.get("http://www.eclipse.org/emf/2004/Ecore2Ecore") instanceof Ecore2EcorePackageImpl) ? EPackage.Registry.INSTANCE.get("http://www.eclipse.org/emf/2004/Ecore2Ecore") : new Ecore2EcorePackageImpl());
    
    isInited = true;
    
    MappingPackage.eINSTANCE.eClass();
    
    theEcore2EcorePackage.createPackageContents();
    
    theEcore2EcorePackage.initializePackageContents();
    
    theEcore2EcorePackage.freeze();
    
    EPackage.Registry.INSTANCE.put("http://www.eclipse.org/emf/2004/Ecore2Ecore", theEcore2EcorePackage);
    return theEcore2EcorePackage;
  }
  
  public EClass getEcore2EcoreMappingRoot()
  {
    return ecore2EcoreMappingRootEClass;
  }
  
  public Ecore2EcoreFactory getEcore2EcoreFactory()
  {
    return (Ecore2EcoreFactory)getEFactoryInstance();
  }
  
  private boolean isCreated = false;
  
  public void createPackageContents()
  {
    if (isCreated) {
      return;
    }
    isCreated = true;
    
    ecore2EcoreMappingRootEClass = createEClass(0);
  }
  
  private boolean isInitialized = false;
  
  public void initializePackageContents()
  {
    if (isInitialized) {
      return;
    }
    isInitialized = true;
    
    setName("ecore2ecore");
    setNsPrefix("ecore2ecore");
    setNsURI("http://www.eclipse.org/emf/2004/Ecore2Ecore");
    
    MappingPackage theMappingPackage = (MappingPackage)EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/emf/2002/Mapping");
    
    ecore2EcoreMappingRootEClass.getESuperTypes().add(theMappingPackage.getMappingRoot());
    
    initEClass(ecore2EcoreMappingRootEClass, Ecore2EcoreMappingRoot.class, "Ecore2EcoreMappingRoot", false, false, true);
    
    createResource("http://www.eclipse.org/emf/2004/Ecore2Ecore");
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.impl.Ecore2EcorePackageImpl
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.provider;

import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IChangeNotifier;
import org.eclipse.emf.edit.provider.IDisposable;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreAdapterFactory;

public class Ecore2EcoreItemProviderAdapterFactory
  extends Ecore2EcoreAdapterFactory
  implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
{
  protected ComposedAdapterFactory parentAdapterFactory;
  protected IChangeNotifier changeNotifier = new ChangeNotifier();
  protected Collection<Object> supportedTypes = new ArrayList();
  protected Ecore2EcoreMappingRootItemProvider ecore2EcoreMappingRootItemProvider;
  
  public Ecore2EcoreItemProviderAdapterFactory()
  {
    supportedTypes.add(IEditingDomainItemProvider.class);
    supportedTypes.add(IStructuredItemContentProvider.class);
    supportedTypes.add(ITreeItemContentProvider.class);
    supportedTypes.add(IItemLabelProvider.class);
    supportedTypes.add(IItemPropertySource.class);
  }
  
  public Adapter createEcore2EcoreMappingRootAdapter()
  {
    if (ecore2EcoreMappingRootItemProvider == null) {
      ecore2EcoreMappingRootItemProvider = new Ecore2EcoreMappingRootItemProvider(this);
    }
    return ecore2EcoreMappingRootItemProvider;
  }
  
  public ComposeableAdapterFactory getRootAdapterFactory()
  {
    return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
  }
  
  public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
  {
    this.parentAdapterFactory = parentAdapterFactory;
  }
  
  public boolean isFactoryForType(Object type)
  {
    return (supportedTypes.contains(type)) || (super.isFactoryForType(type));
  }
  
  public Adapter adapt(Notifier notifier, Object type)
  {
    return super.adapt(notifier, this);
  }
  
  public Object adapt(Object object, Object type)
  {
    if (isFactoryForType(type))
    {
      Object adapter = super.adapt(object, type);
      if ((!(type instanceof Class)) || (((Class)type).isInstance(adapter))) {
        return adapter;
      }
    }
    return null;
  }
  
  public void addListener(INotifyChangedListener notifyChangedListener)
  {
    changeNotifier.addListener(notifyChangedListener);
  }
  
  public void removeListener(INotifyChangedListener notifyChangedListener)
  {
    changeNotifier.removeListener(notifyChangedListener);
  }
  
  public void fireNotifyChanged(Notification notification)
  {
    changeNotifier.fireNotifyChanged(notification);
    if (parentAdapterFactory != null) {
      parentAdapterFactory.fireNotifyChanged(notification);
    }
  }
  
  public void dispose()
  {
    if (ecore2EcoreMappingRootItemProvider != null) {
      ecore2EcoreMappingRootItemProvider.dispose();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.provider.Ecore2EcoreItemProviderAdapterFactory
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.provider;

import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePlugin;
import org.eclipse.emf.mapping.provider.MappingRootItemProvider;

public class Ecore2EcoreMappingRootItemProvider
  extends MappingRootItemProvider
  implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource
{
  public Ecore2EcoreMappingRootItemProvider(AdapterFactory adapterFactory)
  {
    super(adapterFactory);
  }
  
  public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
  {
    if (itemPropertyDescriptors == null) {
      super.getPropertyDescriptors(object);
    }
    return itemPropertyDescriptors;
  }
  
  public Object getImage(Object object)
  {
    return super.getImage(object);
  }
  
  public String getText(Object object)
  {
    return super.getText(object);
  }
  
  public void notifyChanged(Notification notification)
  {
    updateChildren(notification);
    super.notifyChanged(notification);
  }
  
  public ResourceLocator getResourceLocator()
  {
    return Ecore2EcorePlugin.INSTANCE;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.provider.Ecore2EcoreMappingRootItemProvider
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.util;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.mapping.Mapping;
import org.eclipse.emf.mapping.MappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot;

class Ecore2EcoreAdapterFactory$1
  extends Ecore2EcoreSwitch<Adapter>
{
  Ecore2EcoreAdapterFactory$1(Ecore2EcoreAdapterFactory paramEcore2EcoreAdapterFactory) {}
  
  public Adapter caseEcore2EcoreMappingRoot(Ecore2EcoreMappingRoot object)
  {
    return this$0.createEcore2EcoreMappingRootAdapter();
  }
  
  public Adapter caseMapping(Mapping object)
  {
    return this$0.createMappingAdapter();
  }
  
  public Adapter caseMappingRoot(MappingRoot object)
  {
    return this$0.createMappingRootAdapter();
  }
  
  public Adapter defaultCase(EObject object)
  {
    return this$0.createEObjectAdapter();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreAdapterFactory.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.util;

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.emf.mapping.Mapping;
import org.eclipse.emf.mapping.MappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage;

public class Ecore2EcoreAdapterFactory
  extends AdapterFactoryImpl
{
  protected static Ecore2EcorePackage modelPackage;
  
  public Ecore2EcoreAdapterFactory()
  {
    if (modelPackage == null) {
      modelPackage = Ecore2EcorePackage.eINSTANCE;
    }
  }
  
  public boolean isFactoryForType(Object object)
  {
    if (object == modelPackage) {
      return true;
    }
    if ((object instanceof EObject)) {
      return ((EObject)object).eClass().getEPackage() == modelPackage;
    }
    return false;
  }
  
  protected Ecore2EcoreSwitch<Adapter> modelSwitch = new Ecore2EcoreSwitch()
  {
    public Adapter caseEcore2EcoreMappingRoot(Ecore2EcoreMappingRoot object)
    {
      return createEcore2EcoreMappingRootAdapter();
    }
    
    public Adapter caseMapping(Mapping object)
    {
      return createMappingAdapter();
    }
    
    public Adapter caseMappingRoot(MappingRoot object)
    {
      return createMappingRootAdapter();
    }
    
    public Adapter defaultCase(EObject object)
    {
      return createEObjectAdapter();
    }
  };
  
  public Adapter createAdapter(Notifier target)
  {
    return (Adapter)modelSwitch.doSwitch((EObject)target);
  }
  
  public Adapter createEcore2EcoreMappingRootAdapter()
  {
    return null;
  }
  
  public Adapter createMappingAdapter()
  {
    return null;
  }
  
  public Adapter createMappingRootAdapter()
  {
    return null;
  }
  
  public Adapter createEObjectAdapter()
  {
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreAdapterFactory
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.util;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.XMIResource;

public class Ecore2EcoreResourceFactoryImpl
  extends ResourceFactoryImpl
{
  public Resource createResource(URI uri)
  {
    XMIResource result = new Ecore2EcoreResourceImpl(uri);
    result.setEncoding("UTF-8");
    return result;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreResourceFactoryImpl
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.util;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;

public class Ecore2EcoreResourceImpl
  extends XMIResourceImpl
{
  public Ecore2EcoreResourceImpl(URI uri)
  {
    super(uri);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreResourceImpl
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.emf.mapping.ecore2ecore.util;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.eclipse.emf.mapping.Mapping;
import org.eclipse.emf.mapping.MappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcoreMappingRoot;
import org.eclipse.emf.mapping.ecore2ecore.Ecore2EcorePackage;

public class Ecore2EcoreSwitch<T>
  extends Switch<T>
{
  protected static Ecore2EcorePackage modelPackage;
  
  public Ecore2EcoreSwitch()
  {
    if (modelPackage == null) {
      modelPackage = Ecore2EcorePackage.eINSTANCE;
    }
  }
  
  protected boolean isSwitchFor(EPackage ePackage)
  {
    return ePackage == modelPackage;
  }
  
  protected T doSwitch(int classifierID, EObject theEObject)
  {
    switch (classifierID)
    {
    case 0: 
      Ecore2EcoreMappingRoot ecore2EcoreMappingRoot = (Ecore2EcoreMappingRoot)theEObject;
      T result = caseEcore2EcoreMappingRoot(ecore2EcoreMappingRoot);
      if (result == null) {
        result = caseMappingRoot(ecore2EcoreMappingRoot);
      }
      if (result == null) {
        result = caseMapping(ecore2EcoreMappingRoot);
      }
      if (result == null) {
        result = defaultCase(theEObject);
      }
      return result;
    }
    return (T)defaultCase(theEObject);
  }
  
  public T caseEcore2EcoreMappingRoot(Ecore2EcoreMappingRoot object)
  {
    return null;
  }
  
  public T caseMapping(Mapping object)
  {
    return null;
  }
  
  public T caseMappingRoot(MappingRoot object)
  {
    return null;
  }
  
  public T defaultCase(EObject object)
  {
    return null;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreSwitch
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
1

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