Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 23b782616e96f7b73e24529bd222aa773612ec5d (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
/*
 * Copyright (c) 2009, 2011, 2012 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:
 *    Simon McDuff - initial API and implementation
 *    Eike Stepper - maintenance
 */
package org.eclipse.emf.cdo.view;

import org.eclipse.emf.cdo.CDOObject;

import org.eclipse.emf.internal.cdo.analyzer.NOOPFeatureAnalyzer;

import org.eclipse.emf.ecore.EStructuralFeature;

/**
 * A call-back interface that is called by a {@link CDOView view} on each model read access.
 *
 * @author Simon McDuff
 * @since 2.0
 * @apiviz.exclude
 */
public interface CDOFeatureAnalyzer
{
  public static final CDOFeatureAnalyzer NOOP = new NOOPFeatureAnalyzer();

  public void preTraverseFeature(CDOObject revision, EStructuralFeature feature, int index);

  public void postTraverseFeature(CDOObject revision, EStructuralFeature feature, int index, Object value);
}

Back to the top