Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/api/IEEFDomainClassTester.java')
-rw-r--r--plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/api/IEEFDomainClassTester.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/api/IEEFDomainClassTester.java b/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/api/IEEFDomainClassTester.java
new file mode 100644
index 000000000..daf52fb7b
--- /dev/null
+++ b/plugins/org.eclipse.eef.core/src/org/eclipse/eef/core/api/IEEFDomainClassTester.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2016 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.eef.core.api;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * This interface is used to test if a class matches a given domain class definition.
+ *
+ * @author sbegaudeau
+ */
+public interface IEEFDomainClassTester {
+ /**
+ * Indicates if the given eObject matches the given domainClass.
+ *
+ * @param eObject
+ * The EObject
+ * @param domainClass
+ * The domain class
+ * @return <code>true</code> if the eObject matches the given domain, <code>false</code> otherwise
+ */
+ boolean eInstanceOf(EObject eObject, String domainClass);
+}

Back to the top