Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 46d2686cedcf18f7ec703c9ba10e2f967e6aa56e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *    Eike Stepper - initial API and implementation
 */
package org.eclipse.emf.cdo.session;

import org.eclipse.emf.cdo.common.model.CDOClass;
import org.eclipse.emf.cdo.common.model.CDOFeature;
import org.eclipse.emf.cdo.common.model.CDOPackage;
import org.eclipse.emf.cdo.common.model.CDOPackageManager;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EStructuralFeature;

/**
 * Represents the CDO {@link CDOPackage packages} currently stored in the {@link CDOSession.Repository repository} of a
 * {@link CDOSession session}. A package manager can be used to query information about the CDO {@link CDOPackage
 * packages} in the repository as well as convert between the EMF and CDO instances of these packages.
 * 
 * @author Eike Stepper
 * @noimplement This interface is not intended to be implemented by clients.
 * @since 2.0
 */
public interface CDOSessionPackageManager extends CDOPackageManager
{
  /**
   * Returns the session this package manager is associated with.
   */
  public CDOSession getSession();

  /**
   * Returns the CDO instance of the given EMF package.
   */
  public CDOPackage convert(EPackage ePackage);

  /**
   * Returns the CDO instance of the given EMF class.
   */
  public CDOClass convert(EClass eClass);

  /**
   * Returns the CDO instance of the given EMF feature.
   */
  public CDOFeature convert(EStructuralFeature eFeature);

  /**
   * Returns the EMF instance of the given CDO package.
   */
  public EPackage convert(CDOPackage cdoPackage);

  /**
   * Returns the EMF instance of the given CDO class.
   */
  public EClass convert(CDOClass cdoClass);

  /**
   * Returns the EMF instance of the given CDO feature.
   */
  public EStructuralFeature convert(CDOFeature cdoFeature);
}

Back to the top