diff options
Diffstat (limited to 'subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/IQuerySpecificationRegistryEntry.java')
-rw-r--r-- | subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/IQuerySpecificationRegistryEntry.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/IQuerySpecificationRegistryEntry.java b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/IQuerySpecificationRegistryEntry.java new file mode 100644 index 00000000..5009d74b --- /dev/null +++ b/subprojects/viatra-runtime/src/main/java/tools/refinery/viatra/runtime/registry/IQuerySpecificationRegistryEntry.java | |||
@@ -0,0 +1,48 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2016, Abel Hegedus, 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.registry; | ||
10 | |||
11 | import tools.refinery.viatra.runtime.extensibility.IQuerySpecificationProvider; | ||
12 | |||
13 | /** | ||
14 | * The query specification registry entry interface can return the identifier of the source that added it to the | ||
15 | * registry. It is provider based and can delay class loading of the wrapped {@link IQuerySpecification} until needed. | ||
16 | * | ||
17 | * @author Abel Hegedus | ||
18 | * @since 1.3 | ||
19 | * | ||
20 | */ | ||
21 | public interface IQuerySpecificationRegistryEntry extends IQuerySpecificationProvider { | ||
22 | |||
23 | /** | ||
24 | * @return the identifier of the registry source that contributed the specification | ||
25 | */ | ||
26 | String getSourceIdentifier(); | ||
27 | |||
28 | /** | ||
29 | * Returns whether the query specification was provided by an identifiable project. | ||
30 | */ | ||
31 | boolean isFromProject(); | ||
32 | |||
33 | /** | ||
34 | * Collects the name of the project that is registered this specification to the registry. | ||
35 | * If {@link #getSourceIdentifier()} is false, it returns null. | ||
36 | */ | ||
37 | String getSourceProjectName(); | ||
38 | |||
39 | /** | ||
40 | * @return true if the entry should be included in default views (created without any filters) | ||
41 | */ | ||
42 | boolean includeInDefaultViews(); | ||
43 | |||
44 | /** | ||
45 | * @return the wrapped {@link IQuerySpecificationProvider} or itself | ||
46 | */ | ||
47 | IQuerySpecificationProvider getProvider(); | ||
48 | } | ||