-
Notifications
You must be signed in to change notification settings - Fork 85
/
CapellaElement.java
60 lines (56 loc) · 1.82 KB
/
CapellaElement.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
*
* Copyright (c) 2006, 2020 THALES DMS FRANCE.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Thales - initial API and implementation
*
*/
package org.polarsys.capella.viatra.core.data.capellacore.surrogate;
import org.eclipse.viatra.query.runtime.api.IQueryGroup;
import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup;
import org.eclipse.viatra.query.runtime.matchers.ViatraQueryRuntimeException;
/**
* A pattern group formed of all public patterns defined in CapellaElement.vql.
*
* <p>
* Use the static instance as any {@link interface org.eclipse.viatra.query.runtime.api.IQueryGroup}, to conveniently
* prepare a VIATRA Query engine for matching all patterns originally defined in file CapellaElement.vql, in order to
* achieve better performance than one-by-one on-demand matcher initialization.
*
* <p>
* From package org.polarsys.capella.viatra.core.data.capellacore.surrogate, the group contains the definition of the
* following patterns:
* <ul>
* <li>CapellaElement__appliedRequirements</li>
* </ul>
*
* @see IQueryGroup
*
*/
@SuppressWarnings("all")
public final class CapellaElement extends BaseGeneratedPatternGroup {
/**
* Access the pattern group.
*
* @return the singleton instance of the group
* @throws ViatraQueryRuntimeException
* if there was an error loading the generated code of pattern specifications
*
*/
public static CapellaElement instance() {
if (INSTANCE == null) {
INSTANCE = new CapellaElement();
}
return INSTANCE;
}
private static CapellaElement INSTANCE;
private CapellaElement() {
}
}