Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f3bbb68cc3ef68a5eca562b774811a7d0cd5caaa (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
 * Copyright (c) 2009, 2011-2013, 2019, 2020, 2022 Eike Stepper (Loehne, 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.common.model;

import org.eclipse.emf.cdo.spi.common.model.InternalCDOClassInfo;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;

/**
 * An EMF {@link Adapter adapter} that encapsulates CDO specific information about an {@link EClass}.
 *
 * @author Eike Stepper
 * @since 2.0
 * @noextend This interface is not intended to be extended by clients.
 * @noimplement This interface is not intended to be implemented by clients.
 */
public interface CDOClassInfo extends Adapter
{
  public EClass getEClass();

  public boolean isResourceNode();

  public boolean isResourceFolder();

  public boolean isResource();

  /**
   * @since 4.2
   */
  public boolean isPersistent(int featureID);

  /**
   * @since 4.2
   */
  public boolean isPersistent(EStructuralFeature feature);

  /**
   * @since 4.2
   */
  public boolean hasPersistentOpposite(EStructuralFeature feature);

  /**
   * @since 4.10
   */
  public boolean hasPersistentFeatureMaps();

  public EStructuralFeature[] getAllPersistentFeatures();

  /**
   * @since 4.2
   */
  public EReference[] getAllPersistentReferences();

  /**
   * @since 4.2
   */
  public EStructuralFeature[] getAllPersistentContainments();

  /**
   * @since 4.10
   */
  public EStructuralFeature[] getAllPersistentMapFeatures();

  /**
   * @since 4.16
   */
  public EAttribute[] getAllPersistentLobAttributes();

  /**
   * @deprecated As of 4.2 pushed down to {@link InternalCDOClassInfo#getPersistentFeatureIndex(EStructuralFeature)}.
   */
  @Deprecated
  public int getFeatureIndex(EStructuralFeature feature);

  /**
   * @deprecated As of 4.2 pushed down to {@link InternalCDOClassInfo#getPersistentFeatureIndex(int)}.
   */
  @Deprecated
  public int getFeatureIndex(int featureID);
}

Back to the top