Skip to content

Package: EMFFormsIdProvider

EMFFormsIdProvider

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.spreadsheet.core;
15:
16: import org.eclipse.emf.ecore.EObject;
17:
18: /**
19: * This service provides the value for the ID column used for identifying values accross multiple sheets.
20: *
21: * @author Eugen Neufeld
22: *
23: */
24: public interface EMFFormsIdProvider {
25:
26:         /**
27:          * The name of the ID column.
28:          */
29:         String ID_COLUMN = "EOBJECT_ID"; //$NON-NLS-1$
30:
31:         /**
32:          * Returns the id value for an {@link EObject}.
33:          *
34:          * @param eObject The {@link EObject} to get an id for
35:          * @return The id
36:          */
37:         String getId(EObject eObject);
38: }