1 package org.simantics.viewpoint.ontology;
\r
3 import org.simantics.db.RequestProcessor;
\r
4 import org.simantics.db.Resource;
\r
5 import org.simantics.db.ReadGraph;
\r
6 import org.simantics.db.request.Read;
\r
7 import org.simantics.db.Session;
\r
8 import org.simantics.db.exception.DatabaseException;
\r
9 import org.simantics.db.service.QueryControl;
\r
11 public class ViewpointResource {
\r
13 public final Resource ActionBrowseContextContribution;
\r
14 public final Resource ActionBrowseContextContribution_HasActionBrowseContext;
\r
15 public final Resource ActionBrowseContextContribution_HasType;
\r
16 public final Resource ActionBrowseContextContribution_allowedUIContexts;
\r
17 public final Resource ActionBrowseContextContribution_allowedUIContexts_Inverse;
\r
18 public final Resource ActionCategory;
\r
19 public final Resource ActionCategory_HasPriority;
\r
20 public final Resource ActionCategory_HasPriority_Inverse;
\r
21 public final Resource ActionCategory_IsSubmenu;
\r
22 public final Resource ActionCategory_IsSubmenu_Inverse;
\r
23 public final Resource ActionContribution;
\r
24 public final Resource ActionContribution_HasAction;
\r
25 public final Resource ActionContribution_HasCategory;
\r
26 public final Resource ActionContribution_HasImage;
\r
27 public final Resource ActionContribution_HasNodeType;
\r
28 public final Resource ActionContribution_IsEnabledIf;
\r
29 public final Resource ActionContribution_IsVisibleIf;
\r
30 public final Resource AlphanumericSorterRule;
\r
31 public final Resource AndTest;
\r
32 public final Resource AndTest_HasTest;
\r
33 public final Resource BrowseContext;
\r
34 public final Resource BrowseContextContribution;
\r
35 public final Resource BrowseContextContribution_HasBrowseContext;
\r
36 public final Resource BrowseContextContribution_HasType;
\r
37 public final Resource BrowseContextContribution_allowedUIContexts;
\r
38 public final Resource BrowseContextContribution_allowedUIContexts_Inverse;
\r
39 public final Resource BrowseContext_HasActionContribution;
\r
40 public final Resource BrowseContext_HasChildContribution;
\r
41 public final Resource BrowseContext_HasDropActionContribution;
\r
42 public final Resource BrowseContext_HasTestContribution;
\r
43 public final Resource BrowseContext_HasVisualsContribution;
\r
44 public final Resource BrowseContext_Includes;
\r
45 public final Resource BrowseContext_IsIncludedIn;
\r
46 public final Resource BrowseContext_SupportsRemovalOf;
\r
47 public final Resource BrowseContext_SupportsRenamingOf;
\r
48 public final Resource CheckedStateRule;
\r
49 public final Resource ChildContribution;
\r
50 public final Resource ChildContribution_HasChildNodeType;
\r
51 public final Resource ChildContribution_HasParentNodeType;
\r
52 public final Resource ChildContribution_HasRule;
\r
53 public final Resource ChildContribution_identifier;
\r
54 public final Resource ChildContribution_identifier_Inverse;
\r
55 public final Resource ChildContribution_priority;
\r
56 public final Resource ChildContribution_priority_Inverse;
\r
57 public final Resource ChildRule;
\r
58 public final Resource CompositeChildRule;
\r
59 public final Resource CompositeChildRule_HasChildRules;
\r
60 public final Resource CompositeChildRule_HasChildRules_Inverse;
\r
61 public final Resource ConstantChildRule;
\r
62 public final Resource ConstantChildRule_HasChild;
\r
63 public final Resource ConstantChildRule_HasChild_Inverse;
\r
64 public final Resource ConstantImageRule;
\r
65 public final Resource ConstantImageRule_HasColumnKey;
\r
66 public final Resource ConstantImageRule_HasColumnKey_Inverse;
\r
67 public final Resource ConstantImageRule_HasImage;
\r
68 public final Resource ConstantImageRule_HasImage_Inverse;
\r
69 public final Resource ConstantLabelDecorationRule;
\r
70 public final Resource ConstantLabelDecorationRule_HasBackgroundColor;
\r
71 public final Resource ConstantLabelDecorationRule_HasBackgroundColor_Inverse;
\r
72 public final Resource ConstantLabelDecorationRule_HasFont;
\r
73 public final Resource ConstantLabelDecorationRule_HasFont_Inverse;
\r
74 public final Resource ConstantLabelDecorationRule_HasForegroundColor;
\r
75 public final Resource ConstantLabelDecorationRule_HasForegroundColor_Inverse;
\r
76 public final Resource ConstantLabelDecorationRule_HasFormat;
\r
77 public final Resource ConstantLabelDecorationRule_HasFormat_Inverse;
\r
78 public final Resource ConstantLabelDecorationRule_HasStyle;
\r
79 public final Resource ConstantLabelDecorationRule_HasStyle_Inverse;
\r
80 public final Resource ConstantLabelRule;
\r
81 public final Resource ConstantLabelRule_HasColumnKey;
\r
82 public final Resource ConstantLabelRule_HasColumnKey_Inverse;
\r
83 public final Resource ConstantLabelRule_HasLabel;
\r
84 public final Resource ConstantLabelRule_HasLabel_Inverse;
\r
85 public final Resource DropActionContribution;
\r
86 public final Resource DropActionContribution_HasAction;
\r
87 public final Resource DropActionContribution_HasCondition;
\r
88 public final Resource DropActionContribution_HasNodeType;
\r
89 public final Resource DropActionContribution_HasPriority;
\r
90 public final Resource DropActionContribution_HasPriority_Inverse;
\r
91 public final Resource EditActionCategory;
\r
92 public final Resource EqualContentChildRule;
\r
93 public final Resource EqualContentChildRule_HasCondition;
\r
94 public final Resource FailTest;
\r
95 public final Resource FlatNodeRule;
\r
96 public final Resource HasBundle;
\r
97 public final Resource HasBundle_Inverse;
\r
98 public final Resource HasContentType;
\r
99 public final Resource HasContentType_Inverse;
\r
100 public final Resource HasInstanceOfTest;
\r
101 public final Resource HasInstanceOfTest_IsInstanceOf;
\r
102 public final Resource HasNegatedTest;
\r
103 public final Resource HasNegatedTest_HasTest;
\r
104 public final Resource HasStatementTest;
\r
105 public final Resource HasStatementTest_HasRelation;
\r
106 public final Resource ImageDecorationRule;
\r
107 public final Resource ImageRule;
\r
108 public final Resource ImportActionCategory;
\r
109 public final Resource InstanceOfTest;
\r
110 public final Resource InstanceOfTest_bundleName;
\r
111 public final Resource InstanceOfTest_bundleName_Inverse;
\r
112 public final Resource InstanceOfTest_className;
\r
113 public final Resource InstanceOfTest_className_Inverse;
\r
114 public final Resource LabelDecorationRule;
\r
115 public final Resource LabelRule;
\r
116 public final Resource LinkedListSorterRule;
\r
117 public final Resource ModifierRule;
\r
118 public final Resource NewActionCategory;
\r
119 public final Resource NoModifierRule;
\r
120 public final Resource NodeType;
\r
121 public final Resource OrTest;
\r
122 public final Resource OrTest_HasTest;
\r
123 public final Resource PassThruSorterRule;
\r
124 public final Resource RelationChildRule;
\r
125 public final Resource RelationChildRule_HasRelation;
\r
126 public final Resource RelationChildRule_HasTest;
\r
127 public final Resource RelationStatementRule;
\r
128 public final Resource RelationStatementRule_HasRelation;
\r
129 public final Resource RelationStatementRule_HasTest;
\r
130 public final Resource RemovalTestContribution;
\r
131 public final Resource RenamingTestContribution;
\r
132 public final Resource ResourceLabelLabelRule;
\r
133 public final Resource ResourceLabelModifierRule;
\r
134 public final Resource ResourceNameLabelRule;
\r
135 public final Resource ResourceNameModifierRule;
\r
136 public final Resource ResourceNodeType;
\r
137 public final Resource SorterRule;
\r
138 public final Resource StandardNameLabelRule;
\r
139 public final Resource Test;
\r
140 public final Resource TestContribution;
\r
141 public final Resource TestContribution_HasNodeType;
\r
142 public final Resource TestContribution_HasPriority;
\r
143 public final Resource TestContribution_HasPriority_Inverse;
\r
144 public final Resource TestContribution_HasTest;
\r
145 public final Resource VariableLabelModifierRule;
\r
146 public final Resource VisualsContribution;
\r
147 public final Resource VisualsContribution_HasCondition;
\r
148 public final Resource VisualsContribution_HasNodeType;
\r
149 public final Resource VisualsContribution_HasPriority;
\r
150 public final Resource VisualsContribution_HasPriority_Inverse;
\r
151 public final Resource VisualsContribution_HasRule;
\r
152 public final Resource VisualsRule;
\r
153 public final Resource actionContribution;
\r
154 public final Resource actionContributionWithVisibility;
\r
155 public final Resource constantChildRule;
\r
156 public final Resource constantImageRule;
\r
157 public final Resource constantImageRuleWithColumn;
\r
158 public final Resource constantLabelRule;
\r
159 public final Resource constantLabelRuleWithColumn;
\r
160 public final Resource customCheckedStateRule;
\r
161 public final Resource customChildRule;
\r
162 public final Resource customImageDecorationRule;
\r
163 public final Resource customImageRule;
\r
164 public final Resource customLabelDecorationRule;
\r
165 public final Resource customLabelRule;
\r
166 public final Resource customLabelRuleWithPriority;
\r
167 public final Resource customModifierRule;
\r
168 public final Resource customVisualsRule;
\r
169 public final Resource customVisualsRuleWithPriority;
\r
170 public final Resource customVisualsRuleWithPriorityAndTest;
\r
171 public final Resource defineActionContribution;
\r
172 public final Resource defineRelationChildRule;
\r
173 public final Resource dropActionContribution;
\r
174 public final Resource dropActionContributionWithTest;
\r
175 public final Resource equalContentChildRule;
\r
176 public final Resource namedConstantChildRule;
\r
177 public final Resource namedConstantImageRule;
\r
178 public final Resource namedConstantImageRuleWithColumn;
\r
179 public final Resource namedConstantLabelRule;
\r
180 public final Resource namedConstantLabelRuleWithColumn;
\r
181 public final Resource namedCustomCheckedStateRule;
\r
182 public final Resource namedCustomChildRule;
\r
183 public final Resource namedCustomImageDecorationRule;
\r
184 public final Resource namedCustomImageRule;
\r
185 public final Resource namedCustomLabelDecorationRule;
\r
186 public final Resource namedCustomLabelRule;
\r
187 public final Resource namedCustomLabelRuleWithPriority;
\r
188 public final Resource namedCustomModifierRule;
\r
189 public final Resource namedCustomVisualsRule;
\r
190 public final Resource namedCustomVisualsRuleWithPriority;
\r
191 public final Resource namedCustomVisualsRuleWithPriorityAndTest;
\r
192 public final Resource namedEqualContentChildRule;
\r
193 public final Resource namedRelationChildRule;
\r
194 public final Resource namedRelationChildRuleWithFolder;
\r
195 public final Resource namedRelationStatementRule;
\r
196 public final Resource relationChildRule;
\r
197 public final Resource relationChildRuleWithFolder;
\r
198 public final Resource relationStatementRule;
\r
199 public final Resource removalTestContribution;
\r
200 public final Resource renamingTestContribution;
\r
202 public static class URIs {
\r
203 public static final String ActionBrowseContextContribution = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution";
\r
204 public static final String ActionBrowseContextContribution_HasActionBrowseContext = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/HasActionBrowseContext";
\r
205 public static final String ActionBrowseContextContribution_HasType = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/HasType";
\r
206 public static final String ActionBrowseContextContribution_allowedUIContexts = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/allowedUIContexts";
\r
207 public static final String ActionBrowseContextContribution_allowedUIContexts_Inverse = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/allowedUIContexts/Inverse";
\r
208 public static final String ActionCategory = "http://www.simantics.org/Viewpoint-1.2/ActionCategory";
\r
209 public static final String ActionCategory_HasPriority = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/HasPriority";
\r
210 public static final String ActionCategory_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/HasPriority/Inverse";
\r
211 public static final String ActionCategory_IsSubmenu = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/IsSubmenu";
\r
212 public static final String ActionCategory_IsSubmenu_Inverse = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/IsSubmenu/Inverse";
\r
213 public static final String ActionContribution = "http://www.simantics.org/Viewpoint-1.2/ActionContribution";
\r
214 public static final String ActionContribution_HasAction = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasAction";
\r
215 public static final String ActionContribution_HasCategory = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasCategory";
\r
216 public static final String ActionContribution_HasImage = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasImage";
\r
217 public static final String ActionContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasNodeType";
\r
218 public static final String ActionContribution_IsEnabledIf = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/IsEnabledIf";
\r
219 public static final String ActionContribution_IsVisibleIf = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/IsVisibleIf";
\r
220 public static final String AlphanumericSorterRule = "http://www.simantics.org/Viewpoint-1.2/AlphanumericSorterRule";
\r
221 public static final String AndTest = "http://www.simantics.org/Viewpoint-1.2/AndTest";
\r
222 public static final String AndTest_HasTest = "http://www.simantics.org/Viewpoint-1.2/AndTest/HasTest";
\r
223 public static final String BrowseContext = "http://www.simantics.org/Viewpoint-1.2/BrowseContext";
\r
224 public static final String BrowseContextContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution";
\r
225 public static final String BrowseContextContribution_HasBrowseContext = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/HasBrowseContext";
\r
226 public static final String BrowseContextContribution_HasType = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/HasType";
\r
227 public static final String BrowseContextContribution_allowedUIContexts = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/allowedUIContexts";
\r
228 public static final String BrowseContextContribution_allowedUIContexts_Inverse = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/allowedUIContexts/Inverse";
\r
229 public static final String BrowseContext_HasActionContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasActionContribution";
\r
230 public static final String BrowseContext_HasChildContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasChildContribution";
\r
231 public static final String BrowseContext_HasDropActionContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasDropActionContribution";
\r
232 public static final String BrowseContext_HasTestContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasTestContribution";
\r
233 public static final String BrowseContext_HasVisualsContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasVisualsContribution";
\r
234 public static final String BrowseContext_Includes = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/Includes";
\r
235 public static final String BrowseContext_IsIncludedIn = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/IsIncludedIn";
\r
236 public static final String BrowseContext_SupportsRemovalOf = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/SupportsRemovalOf";
\r
237 public static final String BrowseContext_SupportsRenamingOf = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/SupportsRenamingOf";
\r
238 public static final String CheckedStateRule = "http://www.simantics.org/Viewpoint-1.2/CheckedStateRule";
\r
239 public static final String ChildContribution = "http://www.simantics.org/Viewpoint-1.2/ChildContribution";
\r
240 public static final String ChildContribution_HasChildNodeType = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/HasChildNodeType";
\r
241 public static final String ChildContribution_HasParentNodeType = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/HasParentNodeType";
\r
242 public static final String ChildContribution_HasRule = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/HasRule";
\r
243 public static final String ChildContribution_identifier = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/identifier";
\r
244 public static final String ChildContribution_identifier_Inverse = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/identifier/Inverse";
\r
245 public static final String ChildContribution_priority = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/priority";
\r
246 public static final String ChildContribution_priority_Inverse = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/priority/Inverse";
\r
247 public static final String ChildRule = "http://www.simantics.org/Viewpoint-1.2/ChildRule";
\r
248 public static final String CompositeChildRule = "http://www.simantics.org/Viewpoint-1.2/CompositeChildRule";
\r
249 public static final String CompositeChildRule_HasChildRules = "http://www.simantics.org/Viewpoint-1.2/CompositeChildRule/HasChildRules";
\r
250 public static final String CompositeChildRule_HasChildRules_Inverse = "http://www.simantics.org/Viewpoint-1.2/CompositeChildRule/HasChildRules/Inverse";
\r
251 public static final String ConstantChildRule = "http://www.simantics.org/Viewpoint-1.2/ConstantChildRule";
\r
252 public static final String ConstantChildRule_HasChild = "http://www.simantics.org/Viewpoint-1.2/ConstantChildRule/HasChild";
\r
253 public static final String ConstantChildRule_HasChild_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantChildRule/HasChild/Inverse";
\r
254 public static final String ConstantImageRule = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule";
\r
255 public static final String ConstantImageRule_HasColumnKey = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasColumnKey";
\r
256 public static final String ConstantImageRule_HasColumnKey_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasColumnKey/Inverse";
\r
257 public static final String ConstantImageRule_HasImage = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasImage";
\r
258 public static final String ConstantImageRule_HasImage_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasImage/Inverse";
\r
259 public static final String ConstantLabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule";
\r
260 public static final String ConstantLabelDecorationRule_HasBackgroundColor = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasBackgroundColor";
\r
261 public static final String ConstantLabelDecorationRule_HasBackgroundColor_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasBackgroundColor/Inverse";
\r
262 public static final String ConstantLabelDecorationRule_HasFont = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFont";
\r
263 public static final String ConstantLabelDecorationRule_HasFont_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFont/Inverse";
\r
264 public static final String ConstantLabelDecorationRule_HasForegroundColor = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasForegroundColor";
\r
265 public static final String ConstantLabelDecorationRule_HasForegroundColor_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasForegroundColor/Inverse";
\r
266 public static final String ConstantLabelDecorationRule_HasFormat = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFormat";
\r
267 public static final String ConstantLabelDecorationRule_HasFormat_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFormat/Inverse";
\r
268 public static final String ConstantLabelDecorationRule_HasStyle = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasStyle";
\r
269 public static final String ConstantLabelDecorationRule_HasStyle_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasStyle/Inverse";
\r
270 public static final String ConstantLabelRule = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule";
\r
271 public static final String ConstantLabelRule_HasColumnKey = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasColumnKey";
\r
272 public static final String ConstantLabelRule_HasColumnKey_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasColumnKey/Inverse";
\r
273 public static final String ConstantLabelRule_HasLabel = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasLabel";
\r
274 public static final String ConstantLabelRule_HasLabel_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasLabel/Inverse";
\r
275 public static final String DropActionContribution = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution";
\r
276 public static final String DropActionContribution_HasAction = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasAction";
\r
277 public static final String DropActionContribution_HasCondition = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasCondition";
\r
278 public static final String DropActionContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasNodeType";
\r
279 public static final String DropActionContribution_HasPriority = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasPriority";
\r
280 public static final String DropActionContribution_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasPriority/Inverse";
\r
281 public static final String EditActionCategory = "http://www.simantics.org/Viewpoint-1.2/EditActionCategory";
\r
282 public static final String EqualContentChildRule = "http://www.simantics.org/Viewpoint-1.2/EqualContentChildRule";
\r
283 public static final String EqualContentChildRule_HasCondition = "http://www.simantics.org/Viewpoint-1.2/EqualContentChildRule/HasCondition";
\r
284 public static final String FailTest = "http://www.simantics.org/Viewpoint-1.2/FailTest";
\r
285 public static final String FlatNodeRule = "http://www.simantics.org/Viewpoint-1.2/FlatNodeRule";
\r
286 public static final String HasBundle = "http://www.simantics.org/Viewpoint-1.2/HasBundle";
\r
287 public static final String HasBundle_Inverse = "http://www.simantics.org/Viewpoint-1.2/HasBundle/Inverse";
\r
288 public static final String HasContentType = "http://www.simantics.org/Viewpoint-1.2/HasContentType";
\r
289 public static final String HasContentType_Inverse = "http://www.simantics.org/Viewpoint-1.2/HasContentType/Inverse";
\r
290 public static final String HasInstanceOfTest = "http://www.simantics.org/Viewpoint-1.2/HasInstanceOfTest";
\r
291 public static final String HasInstanceOfTest_IsInstanceOf = "http://www.simantics.org/Viewpoint-1.2/HasInstanceOfTest/IsInstanceOf";
\r
292 public static final String HasNegatedTest = "http://www.simantics.org/Viewpoint-1.2/HasNegatedTest";
\r
293 public static final String HasNegatedTest_HasTest = "http://www.simantics.org/Viewpoint-1.2/HasNegatedTest/HasTest";
\r
294 public static final String HasStatementTest = "http://www.simantics.org/Viewpoint-1.2/HasStatementTest";
\r
295 public static final String HasStatementTest_HasRelation = "http://www.simantics.org/Viewpoint-1.2/HasStatementTest/HasRelation";
\r
296 public static final String ImageDecorationRule = "http://www.simantics.org/Viewpoint-1.2/ImageDecorationRule";
\r
297 public static final String ImageRule = "http://www.simantics.org/Viewpoint-1.2/ImageRule";
\r
298 public static final String ImportActionCategory = "http://www.simantics.org/Viewpoint-1.2/ImportActionCategory";
\r
299 public static final String InstanceOfTest = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest";
\r
300 public static final String InstanceOfTest_bundleName = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/bundleName";
\r
301 public static final String InstanceOfTest_bundleName_Inverse = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/bundleName/Inverse";
\r
302 public static final String InstanceOfTest_className = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/className";
\r
303 public static final String InstanceOfTest_className_Inverse = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/className/Inverse";
\r
304 public static final String LabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/LabelDecorationRule";
\r
305 public static final String LabelRule = "http://www.simantics.org/Viewpoint-1.2/LabelRule";
\r
306 public static final String LinkedListSorterRule = "http://www.simantics.org/Viewpoint-1.2/LinkedListSorterRule";
\r
307 public static final String ModifierRule = "http://www.simantics.org/Viewpoint-1.2/ModifierRule";
\r
308 public static final String NewActionCategory = "http://www.simantics.org/Viewpoint-1.2/NewActionCategory";
\r
309 public static final String NoModifierRule = "http://www.simantics.org/Viewpoint-1.2/NoModifierRule";
\r
310 public static final String NodeType = "http://www.simantics.org/Viewpoint-1.2/NodeType";
\r
311 public static final String OrTest = "http://www.simantics.org/Viewpoint-1.2/OrTest";
\r
312 public static final String OrTest_HasTest = "http://www.simantics.org/Viewpoint-1.2/OrTest/HasTest";
\r
313 public static final String PassThruSorterRule = "http://www.simantics.org/Viewpoint-1.2/PassThruSorterRule";
\r
314 public static final String RelationChildRule = "http://www.simantics.org/Viewpoint-1.2/RelationChildRule";
\r
315 public static final String RelationChildRule_HasRelation = "http://www.simantics.org/Viewpoint-1.2/RelationChildRule/HasRelation";
\r
316 public static final String RelationChildRule_HasTest = "http://www.simantics.org/Viewpoint-1.2/RelationChildRule/HasTest";
\r
317 public static final String RelationStatementRule = "http://www.simantics.org/Viewpoint-1.2/RelationStatementRule";
\r
318 public static final String RelationStatementRule_HasRelation = "http://www.simantics.org/Viewpoint-1.2/RelationStatementRule/HasRelation";
\r
319 public static final String RelationStatementRule_HasTest = "http://www.simantics.org/Viewpoint-1.2/RelationStatementRule/HasTest";
\r
320 public static final String RemovalTestContribution = "http://www.simantics.org/Viewpoint-1.2/RemovalTestContribution";
\r
321 public static final String RenamingTestContribution = "http://www.simantics.org/Viewpoint-1.2/RenamingTestContribution";
\r
322 public static final String ResourceLabelLabelRule = "http://www.simantics.org/Viewpoint-1.2/ResourceLabelLabelRule";
\r
323 public static final String ResourceLabelModifierRule = "http://www.simantics.org/Viewpoint-1.2/ResourceLabelModifierRule";
\r
324 public static final String ResourceNameLabelRule = "http://www.simantics.org/Viewpoint-1.2/ResourceNameLabelRule";
\r
325 public static final String ResourceNameModifierRule = "http://www.simantics.org/Viewpoint-1.2/ResourceNameModifierRule";
\r
326 public static final String ResourceNodeType = "http://www.simantics.org/Viewpoint-1.2/ResourceNodeType";
\r
327 public static final String SorterRule = "http://www.simantics.org/Viewpoint-1.2/SorterRule";
\r
328 public static final String StandardNameLabelRule = "http://www.simantics.org/Viewpoint-1.2/StandardNameLabelRule";
\r
329 public static final String Test = "http://www.simantics.org/Viewpoint-1.2/Test";
\r
330 public static final String TestContribution = "http://www.simantics.org/Viewpoint-1.2/TestContribution";
\r
331 public static final String TestContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasNodeType";
\r
332 public static final String TestContribution_HasPriority = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasPriority";
\r
333 public static final String TestContribution_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasPriority/Inverse";
\r
334 public static final String TestContribution_HasTest = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasTest";
\r
335 public static final String VariableLabelModifierRule = "http://www.simantics.org/Viewpoint-1.2/VariableLabelModifierRule";
\r
336 public static final String VisualsContribution = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution";
\r
337 public static final String VisualsContribution_HasCondition = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasCondition";
\r
338 public static final String VisualsContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasNodeType";
\r
339 public static final String VisualsContribution_HasPriority = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasPriority";
\r
340 public static final String VisualsContribution_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasPriority/Inverse";
\r
341 public static final String VisualsContribution_HasRule = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasRule";
\r
342 public static final String VisualsRule = "http://www.simantics.org/Viewpoint-1.2/VisualsRule";
\r
343 public static final String actionContribution = "http://www.simantics.org/Viewpoint-1.2/actionContribution";
\r
344 public static final String actionContributionWithVisibility = "http://www.simantics.org/Viewpoint-1.2/actionContributionWithVisibility";
\r
345 public static final String constantChildRule = "http://www.simantics.org/Viewpoint-1.2/constantChildRule";
\r
346 public static final String constantImageRule = "http://www.simantics.org/Viewpoint-1.2/constantImageRule";
\r
347 public static final String constantImageRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/constantImageRuleWithColumn";
\r
348 public static final String constantLabelRule = "http://www.simantics.org/Viewpoint-1.2/constantLabelRule";
\r
349 public static final String constantLabelRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/constantLabelRuleWithColumn";
\r
350 public static final String customCheckedStateRule = "http://www.simantics.org/Viewpoint-1.2/customCheckedStateRule";
\r
351 public static final String customChildRule = "http://www.simantics.org/Viewpoint-1.2/customChildRule";
\r
352 public static final String customImageDecorationRule = "http://www.simantics.org/Viewpoint-1.2/customImageDecorationRule";
\r
353 public static final String customImageRule = "http://www.simantics.org/Viewpoint-1.2/customImageRule";
\r
354 public static final String customLabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/customLabelDecorationRule";
\r
355 public static final String customLabelRule = "http://www.simantics.org/Viewpoint-1.2/customLabelRule";
\r
356 public static final String customLabelRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/customLabelRuleWithPriority";
\r
357 public static final String customModifierRule = "http://www.simantics.org/Viewpoint-1.2/customModifierRule";
\r
358 public static final String customVisualsRule = "http://www.simantics.org/Viewpoint-1.2/customVisualsRule";
\r
359 public static final String customVisualsRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/customVisualsRuleWithPriority";
\r
360 public static final String customVisualsRuleWithPriorityAndTest = "http://www.simantics.org/Viewpoint-1.2/customVisualsRuleWithPriorityAndTest";
\r
361 public static final String defineActionContribution = "http://www.simantics.org/Viewpoint-1.2/defineActionContribution";
\r
362 public static final String defineRelationChildRule = "http://www.simantics.org/Viewpoint-1.2/defineRelationChildRule";
\r
363 public static final String dropActionContribution = "http://www.simantics.org/Viewpoint-1.2/dropActionContribution";
\r
364 public static final String dropActionContributionWithTest = "http://www.simantics.org/Viewpoint-1.2/dropActionContributionWithTest";
\r
365 public static final String equalContentChildRule = "http://www.simantics.org/Viewpoint-1.2/equalContentChildRule";
\r
366 public static final String namedConstantChildRule = "http://www.simantics.org/Viewpoint-1.2/namedConstantChildRule";
\r
367 public static final String namedConstantImageRule = "http://www.simantics.org/Viewpoint-1.2/namedConstantImageRule";
\r
368 public static final String namedConstantImageRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/namedConstantImageRuleWithColumn";
\r
369 public static final String namedConstantLabelRule = "http://www.simantics.org/Viewpoint-1.2/namedConstantLabelRule";
\r
370 public static final String namedConstantLabelRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/namedConstantLabelRuleWithColumn";
\r
371 public static final String namedCustomCheckedStateRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomCheckedStateRule";
\r
372 public static final String namedCustomChildRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomChildRule";
\r
373 public static final String namedCustomImageDecorationRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomImageDecorationRule";
\r
374 public static final String namedCustomImageRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomImageRule";
\r
375 public static final String namedCustomLabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomLabelDecorationRule";
\r
376 public static final String namedCustomLabelRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomLabelRule";
\r
377 public static final String namedCustomLabelRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/namedCustomLabelRuleWithPriority";
\r
378 public static final String namedCustomModifierRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomModifierRule";
\r
379 public static final String namedCustomVisualsRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomVisualsRule";
\r
380 public static final String namedCustomVisualsRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/namedCustomVisualsRuleWithPriority";
\r
381 public static final String namedCustomVisualsRuleWithPriorityAndTest = "http://www.simantics.org/Viewpoint-1.2/namedCustomVisualsRuleWithPriorityAndTest";
\r
382 public static final String namedEqualContentChildRule = "http://www.simantics.org/Viewpoint-1.2/namedEqualContentChildRule";
\r
383 public static final String namedRelationChildRule = "http://www.simantics.org/Viewpoint-1.2/namedRelationChildRule";
\r
384 public static final String namedRelationChildRuleWithFolder = "http://www.simantics.org/Viewpoint-1.2/namedRelationChildRuleWithFolder";
\r
385 public static final String namedRelationStatementRule = "http://www.simantics.org/Viewpoint-1.2/namedRelationStatementRule";
\r
386 public static final String relationChildRule = "http://www.simantics.org/Viewpoint-1.2/relationChildRule";
\r
387 public static final String relationChildRuleWithFolder = "http://www.simantics.org/Viewpoint-1.2/relationChildRuleWithFolder";
\r
388 public static final String relationStatementRule = "http://www.simantics.org/Viewpoint-1.2/relationStatementRule";
\r
389 public static final String removalTestContribution = "http://www.simantics.org/Viewpoint-1.2/removalTestContribution";
\r
390 public static final String renamingTestContribution = "http://www.simantics.org/Viewpoint-1.2/renamingTestContribution";
\r
393 public static Resource getResourceOrNull(ReadGraph graph, String uri) {
\r
395 return graph.getResource(uri);
\r
396 } catch(DatabaseException e) {
\r
397 System.err.println(e.getMessage());
\r
402 public ViewpointResource(ReadGraph graph) {
\r
403 ActionBrowseContextContribution = getResourceOrNull(graph, URIs.ActionBrowseContextContribution);
\r
404 ActionBrowseContextContribution_HasActionBrowseContext = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_HasActionBrowseContext);
\r
405 ActionBrowseContextContribution_HasType = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_HasType);
\r
406 ActionBrowseContextContribution_allowedUIContexts = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_allowedUIContexts);
\r
407 ActionBrowseContextContribution_allowedUIContexts_Inverse = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_allowedUIContexts_Inverse);
\r
408 ActionCategory = getResourceOrNull(graph, URIs.ActionCategory);
\r
409 ActionCategory_HasPriority = getResourceOrNull(graph, URIs.ActionCategory_HasPriority);
\r
410 ActionCategory_HasPriority_Inverse = getResourceOrNull(graph, URIs.ActionCategory_HasPriority_Inverse);
\r
411 ActionCategory_IsSubmenu = getResourceOrNull(graph, URIs.ActionCategory_IsSubmenu);
\r
412 ActionCategory_IsSubmenu_Inverse = getResourceOrNull(graph, URIs.ActionCategory_IsSubmenu_Inverse);
\r
413 ActionContribution = getResourceOrNull(graph, URIs.ActionContribution);
\r
414 ActionContribution_HasAction = getResourceOrNull(graph, URIs.ActionContribution_HasAction);
\r
415 ActionContribution_HasCategory = getResourceOrNull(graph, URIs.ActionContribution_HasCategory);
\r
416 ActionContribution_HasImage = getResourceOrNull(graph, URIs.ActionContribution_HasImage);
\r
417 ActionContribution_HasNodeType = getResourceOrNull(graph, URIs.ActionContribution_HasNodeType);
\r
418 ActionContribution_IsEnabledIf = getResourceOrNull(graph, URIs.ActionContribution_IsEnabledIf);
\r
419 ActionContribution_IsVisibleIf = getResourceOrNull(graph, URIs.ActionContribution_IsVisibleIf);
\r
420 AlphanumericSorterRule = getResourceOrNull(graph, URIs.AlphanumericSorterRule);
\r
421 AndTest = getResourceOrNull(graph, URIs.AndTest);
\r
422 AndTest_HasTest = getResourceOrNull(graph, URIs.AndTest_HasTest);
\r
423 BrowseContext = getResourceOrNull(graph, URIs.BrowseContext);
\r
424 BrowseContextContribution = getResourceOrNull(graph, URIs.BrowseContextContribution);
\r
425 BrowseContextContribution_HasBrowseContext = getResourceOrNull(graph, URIs.BrowseContextContribution_HasBrowseContext);
\r
426 BrowseContextContribution_HasType = getResourceOrNull(graph, URIs.BrowseContextContribution_HasType);
\r
427 BrowseContextContribution_allowedUIContexts = getResourceOrNull(graph, URIs.BrowseContextContribution_allowedUIContexts);
\r
428 BrowseContextContribution_allowedUIContexts_Inverse = getResourceOrNull(graph, URIs.BrowseContextContribution_allowedUIContexts_Inverse);
\r
429 BrowseContext_HasActionContribution = getResourceOrNull(graph, URIs.BrowseContext_HasActionContribution);
\r
430 BrowseContext_HasChildContribution = getResourceOrNull(graph, URIs.BrowseContext_HasChildContribution);
\r
431 BrowseContext_HasDropActionContribution = getResourceOrNull(graph, URIs.BrowseContext_HasDropActionContribution);
\r
432 BrowseContext_HasTestContribution = getResourceOrNull(graph, URIs.BrowseContext_HasTestContribution);
\r
433 BrowseContext_HasVisualsContribution = getResourceOrNull(graph, URIs.BrowseContext_HasVisualsContribution);
\r
434 BrowseContext_Includes = getResourceOrNull(graph, URIs.BrowseContext_Includes);
\r
435 BrowseContext_IsIncludedIn = getResourceOrNull(graph, URIs.BrowseContext_IsIncludedIn);
\r
436 BrowseContext_SupportsRemovalOf = getResourceOrNull(graph, URIs.BrowseContext_SupportsRemovalOf);
\r
437 BrowseContext_SupportsRenamingOf = getResourceOrNull(graph, URIs.BrowseContext_SupportsRenamingOf);
\r
438 CheckedStateRule = getResourceOrNull(graph, URIs.CheckedStateRule);
\r
439 ChildContribution = getResourceOrNull(graph, URIs.ChildContribution);
\r
440 ChildContribution_HasChildNodeType = getResourceOrNull(graph, URIs.ChildContribution_HasChildNodeType);
\r
441 ChildContribution_HasParentNodeType = getResourceOrNull(graph, URIs.ChildContribution_HasParentNodeType);
\r
442 ChildContribution_HasRule = getResourceOrNull(graph, URIs.ChildContribution_HasRule);
\r
443 ChildContribution_identifier = getResourceOrNull(graph, URIs.ChildContribution_identifier);
\r
444 ChildContribution_identifier_Inverse = getResourceOrNull(graph, URIs.ChildContribution_identifier_Inverse);
\r
445 ChildContribution_priority = getResourceOrNull(graph, URIs.ChildContribution_priority);
\r
446 ChildContribution_priority_Inverse = getResourceOrNull(graph, URIs.ChildContribution_priority_Inverse);
\r
447 ChildRule = getResourceOrNull(graph, URIs.ChildRule);
\r
448 CompositeChildRule = getResourceOrNull(graph, URIs.CompositeChildRule);
\r
449 CompositeChildRule_HasChildRules = getResourceOrNull(graph, URIs.CompositeChildRule_HasChildRules);
\r
450 CompositeChildRule_HasChildRules_Inverse = getResourceOrNull(graph, URIs.CompositeChildRule_HasChildRules_Inverse);
\r
451 ConstantChildRule = getResourceOrNull(graph, URIs.ConstantChildRule);
\r
452 ConstantChildRule_HasChild = getResourceOrNull(graph, URIs.ConstantChildRule_HasChild);
\r
453 ConstantChildRule_HasChild_Inverse = getResourceOrNull(graph, URIs.ConstantChildRule_HasChild_Inverse);
\r
454 ConstantImageRule = getResourceOrNull(graph, URIs.ConstantImageRule);
\r
455 ConstantImageRule_HasColumnKey = getResourceOrNull(graph, URIs.ConstantImageRule_HasColumnKey);
\r
456 ConstantImageRule_HasColumnKey_Inverse = getResourceOrNull(graph, URIs.ConstantImageRule_HasColumnKey_Inverse);
\r
457 ConstantImageRule_HasImage = getResourceOrNull(graph, URIs.ConstantImageRule_HasImage);
\r
458 ConstantImageRule_HasImage_Inverse = getResourceOrNull(graph, URIs.ConstantImageRule_HasImage_Inverse);
\r
459 ConstantLabelDecorationRule = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule);
\r
460 ConstantLabelDecorationRule_HasBackgroundColor = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasBackgroundColor);
\r
461 ConstantLabelDecorationRule_HasBackgroundColor_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasBackgroundColor_Inverse);
\r
462 ConstantLabelDecorationRule_HasFont = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFont);
\r
463 ConstantLabelDecorationRule_HasFont_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFont_Inverse);
\r
464 ConstantLabelDecorationRule_HasForegroundColor = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasForegroundColor);
\r
465 ConstantLabelDecorationRule_HasForegroundColor_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasForegroundColor_Inverse);
\r
466 ConstantLabelDecorationRule_HasFormat = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFormat);
\r
467 ConstantLabelDecorationRule_HasFormat_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFormat_Inverse);
\r
468 ConstantLabelDecorationRule_HasStyle = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasStyle);
\r
469 ConstantLabelDecorationRule_HasStyle_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasStyle_Inverse);
\r
470 ConstantLabelRule = getResourceOrNull(graph, URIs.ConstantLabelRule);
\r
471 ConstantLabelRule_HasColumnKey = getResourceOrNull(graph, URIs.ConstantLabelRule_HasColumnKey);
\r
472 ConstantLabelRule_HasColumnKey_Inverse = getResourceOrNull(graph, URIs.ConstantLabelRule_HasColumnKey_Inverse);
\r
473 ConstantLabelRule_HasLabel = getResourceOrNull(graph, URIs.ConstantLabelRule_HasLabel);
\r
474 ConstantLabelRule_HasLabel_Inverse = getResourceOrNull(graph, URIs.ConstantLabelRule_HasLabel_Inverse);
\r
475 DropActionContribution = getResourceOrNull(graph, URIs.DropActionContribution);
\r
476 DropActionContribution_HasAction = getResourceOrNull(graph, URIs.DropActionContribution_HasAction);
\r
477 DropActionContribution_HasCondition = getResourceOrNull(graph, URIs.DropActionContribution_HasCondition);
\r
478 DropActionContribution_HasNodeType = getResourceOrNull(graph, URIs.DropActionContribution_HasNodeType);
\r
479 DropActionContribution_HasPriority = getResourceOrNull(graph, URIs.DropActionContribution_HasPriority);
\r
480 DropActionContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.DropActionContribution_HasPriority_Inverse);
\r
481 EditActionCategory = getResourceOrNull(graph, URIs.EditActionCategory);
\r
482 EqualContentChildRule = getResourceOrNull(graph, URIs.EqualContentChildRule);
\r
483 EqualContentChildRule_HasCondition = getResourceOrNull(graph, URIs.EqualContentChildRule_HasCondition);
\r
484 FailTest = getResourceOrNull(graph, URIs.FailTest);
\r
485 FlatNodeRule = getResourceOrNull(graph, URIs.FlatNodeRule);
\r
486 HasBundle = getResourceOrNull(graph, URIs.HasBundle);
\r
487 HasBundle_Inverse = getResourceOrNull(graph, URIs.HasBundle_Inverse);
\r
488 HasContentType = getResourceOrNull(graph, URIs.HasContentType);
\r
489 HasContentType_Inverse = getResourceOrNull(graph, URIs.HasContentType_Inverse);
\r
490 HasInstanceOfTest = getResourceOrNull(graph, URIs.HasInstanceOfTest);
\r
491 HasInstanceOfTest_IsInstanceOf = getResourceOrNull(graph, URIs.HasInstanceOfTest_IsInstanceOf);
\r
492 HasNegatedTest = getResourceOrNull(graph, URIs.HasNegatedTest);
\r
493 HasNegatedTest_HasTest = getResourceOrNull(graph, URIs.HasNegatedTest_HasTest);
\r
494 HasStatementTest = getResourceOrNull(graph, URIs.HasStatementTest);
\r
495 HasStatementTest_HasRelation = getResourceOrNull(graph, URIs.HasStatementTest_HasRelation);
\r
496 ImageDecorationRule = getResourceOrNull(graph, URIs.ImageDecorationRule);
\r
497 ImageRule = getResourceOrNull(graph, URIs.ImageRule);
\r
498 ImportActionCategory = getResourceOrNull(graph, URIs.ImportActionCategory);
\r
499 InstanceOfTest = getResourceOrNull(graph, URIs.InstanceOfTest);
\r
500 InstanceOfTest_bundleName = getResourceOrNull(graph, URIs.InstanceOfTest_bundleName);
\r
501 InstanceOfTest_bundleName_Inverse = getResourceOrNull(graph, URIs.InstanceOfTest_bundleName_Inverse);
\r
502 InstanceOfTest_className = getResourceOrNull(graph, URIs.InstanceOfTest_className);
\r
503 InstanceOfTest_className_Inverse = getResourceOrNull(graph, URIs.InstanceOfTest_className_Inverse);
\r
504 LabelDecorationRule = getResourceOrNull(graph, URIs.LabelDecorationRule);
\r
505 LabelRule = getResourceOrNull(graph, URIs.LabelRule);
\r
506 LinkedListSorterRule = getResourceOrNull(graph, URIs.LinkedListSorterRule);
\r
507 ModifierRule = getResourceOrNull(graph, URIs.ModifierRule);
\r
508 NewActionCategory = getResourceOrNull(graph, URIs.NewActionCategory);
\r
509 NoModifierRule = getResourceOrNull(graph, URIs.NoModifierRule);
\r
510 NodeType = getResourceOrNull(graph, URIs.NodeType);
\r
511 OrTest = getResourceOrNull(graph, URIs.OrTest);
\r
512 OrTest_HasTest = getResourceOrNull(graph, URIs.OrTest_HasTest);
\r
513 PassThruSorterRule = getResourceOrNull(graph, URIs.PassThruSorterRule);
\r
514 RelationChildRule = getResourceOrNull(graph, URIs.RelationChildRule);
\r
515 RelationChildRule_HasRelation = getResourceOrNull(graph, URIs.RelationChildRule_HasRelation);
\r
516 RelationChildRule_HasTest = getResourceOrNull(graph, URIs.RelationChildRule_HasTest);
\r
517 RelationStatementRule = getResourceOrNull(graph, URIs.RelationStatementRule);
\r
518 RelationStatementRule_HasRelation = getResourceOrNull(graph, URIs.RelationStatementRule_HasRelation);
\r
519 RelationStatementRule_HasTest = getResourceOrNull(graph, URIs.RelationStatementRule_HasTest);
\r
520 RemovalTestContribution = getResourceOrNull(graph, URIs.RemovalTestContribution);
\r
521 RenamingTestContribution = getResourceOrNull(graph, URIs.RenamingTestContribution);
\r
522 ResourceLabelLabelRule = getResourceOrNull(graph, URIs.ResourceLabelLabelRule);
\r
523 ResourceLabelModifierRule = getResourceOrNull(graph, URIs.ResourceLabelModifierRule);
\r
524 ResourceNameLabelRule = getResourceOrNull(graph, URIs.ResourceNameLabelRule);
\r
525 ResourceNameModifierRule = getResourceOrNull(graph, URIs.ResourceNameModifierRule);
\r
526 ResourceNodeType = getResourceOrNull(graph, URIs.ResourceNodeType);
\r
527 SorterRule = getResourceOrNull(graph, URIs.SorterRule);
\r
528 StandardNameLabelRule = getResourceOrNull(graph, URIs.StandardNameLabelRule);
\r
529 Test = getResourceOrNull(graph, URIs.Test);
\r
530 TestContribution = getResourceOrNull(graph, URIs.TestContribution);
\r
531 TestContribution_HasNodeType = getResourceOrNull(graph, URIs.TestContribution_HasNodeType);
\r
532 TestContribution_HasPriority = getResourceOrNull(graph, URIs.TestContribution_HasPriority);
\r
533 TestContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.TestContribution_HasPriority_Inverse);
\r
534 TestContribution_HasTest = getResourceOrNull(graph, URIs.TestContribution_HasTest);
\r
535 VariableLabelModifierRule = getResourceOrNull(graph, URIs.VariableLabelModifierRule);
\r
536 VisualsContribution = getResourceOrNull(graph, URIs.VisualsContribution);
\r
537 VisualsContribution_HasCondition = getResourceOrNull(graph, URIs.VisualsContribution_HasCondition);
\r
538 VisualsContribution_HasNodeType = getResourceOrNull(graph, URIs.VisualsContribution_HasNodeType);
\r
539 VisualsContribution_HasPriority = getResourceOrNull(graph, URIs.VisualsContribution_HasPriority);
\r
540 VisualsContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.VisualsContribution_HasPriority_Inverse);
\r
541 VisualsContribution_HasRule = getResourceOrNull(graph, URIs.VisualsContribution_HasRule);
\r
542 VisualsRule = getResourceOrNull(graph, URIs.VisualsRule);
\r
543 actionContribution = getResourceOrNull(graph, URIs.actionContribution);
\r
544 actionContributionWithVisibility = getResourceOrNull(graph, URIs.actionContributionWithVisibility);
\r
545 constantChildRule = getResourceOrNull(graph, URIs.constantChildRule);
\r
546 constantImageRule = getResourceOrNull(graph, URIs.constantImageRule);
\r
547 constantImageRuleWithColumn = getResourceOrNull(graph, URIs.constantImageRuleWithColumn);
\r
548 constantLabelRule = getResourceOrNull(graph, URIs.constantLabelRule);
\r
549 constantLabelRuleWithColumn = getResourceOrNull(graph, URIs.constantLabelRuleWithColumn);
\r
550 customCheckedStateRule = getResourceOrNull(graph, URIs.customCheckedStateRule);
\r
551 customChildRule = getResourceOrNull(graph, URIs.customChildRule);
\r
552 customImageDecorationRule = getResourceOrNull(graph, URIs.customImageDecorationRule);
\r
553 customImageRule = getResourceOrNull(graph, URIs.customImageRule);
\r
554 customLabelDecorationRule = getResourceOrNull(graph, URIs.customLabelDecorationRule);
\r
555 customLabelRule = getResourceOrNull(graph, URIs.customLabelRule);
\r
556 customLabelRuleWithPriority = getResourceOrNull(graph, URIs.customLabelRuleWithPriority);
\r
557 customModifierRule = getResourceOrNull(graph, URIs.customModifierRule);
\r
558 customVisualsRule = getResourceOrNull(graph, URIs.customVisualsRule);
\r
559 customVisualsRuleWithPriority = getResourceOrNull(graph, URIs.customVisualsRuleWithPriority);
\r
560 customVisualsRuleWithPriorityAndTest = getResourceOrNull(graph, URIs.customVisualsRuleWithPriorityAndTest);
\r
561 defineActionContribution = getResourceOrNull(graph, URIs.defineActionContribution);
\r
562 defineRelationChildRule = getResourceOrNull(graph, URIs.defineRelationChildRule);
\r
563 dropActionContribution = getResourceOrNull(graph, URIs.dropActionContribution);
\r
564 dropActionContributionWithTest = getResourceOrNull(graph, URIs.dropActionContributionWithTest);
\r
565 equalContentChildRule = getResourceOrNull(graph, URIs.equalContentChildRule);
\r
566 namedConstantChildRule = getResourceOrNull(graph, URIs.namedConstantChildRule);
\r
567 namedConstantImageRule = getResourceOrNull(graph, URIs.namedConstantImageRule);
\r
568 namedConstantImageRuleWithColumn = getResourceOrNull(graph, URIs.namedConstantImageRuleWithColumn);
\r
569 namedConstantLabelRule = getResourceOrNull(graph, URIs.namedConstantLabelRule);
\r
570 namedConstantLabelRuleWithColumn = getResourceOrNull(graph, URIs.namedConstantLabelRuleWithColumn);
\r
571 namedCustomCheckedStateRule = getResourceOrNull(graph, URIs.namedCustomCheckedStateRule);
\r
572 namedCustomChildRule = getResourceOrNull(graph, URIs.namedCustomChildRule);
\r
573 namedCustomImageDecorationRule = getResourceOrNull(graph, URIs.namedCustomImageDecorationRule);
\r
574 namedCustomImageRule = getResourceOrNull(graph, URIs.namedCustomImageRule);
\r
575 namedCustomLabelDecorationRule = getResourceOrNull(graph, URIs.namedCustomLabelDecorationRule);
\r
576 namedCustomLabelRule = getResourceOrNull(graph, URIs.namedCustomLabelRule);
\r
577 namedCustomLabelRuleWithPriority = getResourceOrNull(graph, URIs.namedCustomLabelRuleWithPriority);
\r
578 namedCustomModifierRule = getResourceOrNull(graph, URIs.namedCustomModifierRule);
\r
579 namedCustomVisualsRule = getResourceOrNull(graph, URIs.namedCustomVisualsRule);
\r
580 namedCustomVisualsRuleWithPriority = getResourceOrNull(graph, URIs.namedCustomVisualsRuleWithPriority);
\r
581 namedCustomVisualsRuleWithPriorityAndTest = getResourceOrNull(graph, URIs.namedCustomVisualsRuleWithPriorityAndTest);
\r
582 namedEqualContentChildRule = getResourceOrNull(graph, URIs.namedEqualContentChildRule);
\r
583 namedRelationChildRule = getResourceOrNull(graph, URIs.namedRelationChildRule);
\r
584 namedRelationChildRuleWithFolder = getResourceOrNull(graph, URIs.namedRelationChildRuleWithFolder);
\r
585 namedRelationStatementRule = getResourceOrNull(graph, URIs.namedRelationStatementRule);
\r
586 relationChildRule = getResourceOrNull(graph, URIs.relationChildRule);
\r
587 relationChildRuleWithFolder = getResourceOrNull(graph, URIs.relationChildRuleWithFolder);
\r
588 relationStatementRule = getResourceOrNull(graph, URIs.relationStatementRule);
\r
589 removalTestContribution = getResourceOrNull(graph, URIs.removalTestContribution);
\r
590 renamingTestContribution = getResourceOrNull(graph, URIs.renamingTestContribution);
\r
593 public static ViewpointResource getInstance(ReadGraph graph) {
\r
594 Session session = graph.getSession();
\r
595 ViewpointResource ret = session.peekService(ViewpointResource.class);
\r
597 QueryControl qc = graph.getService(QueryControl.class);
\r
598 ret = new ViewpointResource(qc.getIndependentGraph(graph));
\r
599 session.registerService(ViewpointResource.class, ret);
\r
604 public static ViewpointResource getInstance(RequestProcessor session) throws DatabaseException {
\r
605 ViewpointResource ret = session.peekService(ViewpointResource.class);
\r
607 ret = session.syncRequest(new Read<ViewpointResource>() {
\r
608 public ViewpointResource perform(ReadGraph graph) throws DatabaseException {
\r
609 QueryControl qc = graph.getService(QueryControl.class);
\r
610 return new ViewpointResource(qc.getIndependentGraph(graph));
\r
613 session.registerService(ViewpointResource.class, ret);
\r