diff options
Diffstat (limited to 'subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/filters/IBaseIndexFeatureFilter.java')
-rw-r--r-- | subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/filters/IBaseIndexFeatureFilter.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/filters/IBaseIndexFeatureFilter.java b/subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/filters/IBaseIndexFeatureFilter.java new file mode 100644 index 00000000..8929b2ab --- /dev/null +++ b/subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/filters/IBaseIndexFeatureFilter.java | |||
@@ -0,0 +1,38 @@ | |||
1 | /** | ||
2 | * Copyright (c) 2010-2016, Peter Lunk, IncQuery Labs Ltd. | ||
3 | * This program and the accompanying materials are made available under the | ||
4 | * terms of the Eclipse Public License v. 2.0 which is available at | ||
5 | * http://www.eclipse.org/legal/epl-v20.html. | ||
6 | * | ||
7 | * SPDX-License-Identifier: EPL-2.0 | ||
8 | */ | ||
9 | package tools.refinery.viatra.runtime.base.api.filters; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EStructuralFeature; | ||
12 | |||
13 | /** | ||
14 | * | ||
15 | * Defines if an {@link EStructuralFeature} should not be indexed by VIATRA Base. This filtering | ||
16 | * method should only be used if the input metamodel has certain features, that the base indexer | ||
17 | * cannot handle. If the filtered feature is a containment feature, the whole sub-tree accessible | ||
18 | * through the said feature will be filtered. | ||
19 | * | ||
20 | * Note: This API feature is for advanced users only. Usage of this feature is not encouraged, | ||
21 | * unless the filtering task is impossible via using the more straightforward | ||
22 | * {@link IBaseIndexResourceFilter} or {@link IBaseIndexObjectFilter}. | ||
23 | * | ||
24 | * @author Peter Lunk | ||
25 | * @since 1.5 | ||
26 | * | ||
27 | */ | ||
28 | public interface IBaseIndexFeatureFilter { | ||
29 | |||
30 | /** | ||
31 | * Decides whether the selected {@link EStructuralFeature} is filtered. | ||
32 | * | ||
33 | * @param feature | ||
34 | * @return true, if the feature should not be indexed | ||
35 | */ | ||
36 | boolean isFiltered(EStructuralFeature feature); | ||
37 | |||
38 | } \ No newline at end of file | ||