1 package org.simantics.modeling.template2d.ontology;
3 import org.simantics.db.RequestProcessor;
4 import org.simantics.db.Resource;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.request.Read;
7 import org.simantics.db.Session;
8 import org.simantics.db.exception.DatabaseException;
9 import org.simantics.db.service.QueryControl;
11 public class Template2dResource {
13 public final Resource Actions;
14 public final Resource Actions_AssignDrawingTemplate;
15 public final Resource Actions_MoveDown;
16 public final Resource Actions_MoveUp;
17 public final Resource Actions_NewDrawingTemplate;
18 public final Resource Actions_NewFlagTable;
19 public final Resource Actions_NewFlagTableColumn;
20 public final Resource Actions_NewFlagTableColumnData;
21 public final Resource Actions_NewFlagTableColumnHeader;
22 public final Resource Actions_NewFlagTableRowNumberColumn;
23 public final Resource Actions_NewFlagTypeVisual;
24 public final Resource Actions_NewFlagTypeVisualFilter;
25 public final Resource Actions_NewMonitor;
26 public final Resource Actions_NewSVGImage;
27 public final Resource Actions_NewScenegraph;
28 public final Resource Actions_NewText;
29 public final Resource Actions_NoActionCategory;
30 public final Resource Actions_SetBorderColor;
31 public final Resource Alignment;
32 public final Resource Alignment_Bottom;
33 public final Resource Alignment_Left;
34 public final Resource Alignment_Middle;
35 public final Resource Alignment_Right;
36 public final Resource Alignment_Top;
37 public final Resource Border;
38 public final Resource BorderUI;
39 public final Resource BrowseNode;
40 public final Resource CompositeUI;
41 public final Resource DiagramGroup;
42 public final Resource DiagramTemplateAC;
43 public final Resource DiagramTemplateAC_IsInModelTest;
44 public final Resource DiagramTemplateBC;
45 public final Resource DiagramTemplateBC_ScenegraphChildren;
46 @Deprecated public final Resource DiagramTemplates;
47 public final Resource DrawingBorderStyle;
48 public final Resource DrawingFlagTableStyle;
49 public final Resource DrawingTemplate;
50 public final Resource DrawingTemplateLibrary;
51 public final Resource DrawingTemplateLibraryUI;
52 public final Resource DrawingTemplateStyle;
53 public final Resource DrawingTemplateUI;
54 public final Resource FlagTable;
55 public final Resource FlagTableUI;
56 public final Resource FlagTableUI_ColumnUI;
57 public final Resource FlagTableUI_ColumnUI_DataUI;
58 public final Resource FlagTableUI_ColumnUI_HeaderUI;
59 public final Resource FlagTable_Alignment;
60 public final Resource FlagTable_Alignment_Left;
61 public final Resource FlagTable_Alignment_Right;
62 public final Resource FlagTable_Column;
63 public final Resource FlagTable_Column_Data;
64 public final Resource FlagTable_Column_HasWeight;
65 public final Resource FlagTable_Column_HasWeight_Inverse;
66 public final Resource FlagTable_Column_Header;
67 public final Resource FlagTable_HasAlignment;
68 public final Resource FlagTable_HasAlignment_Inverse;
69 public final Resource FlagTable_HasRowCount;
70 public final Resource FlagTable_HasRowCount_Inverse;
71 public final Resource FlagTable_HasRowHeigth;
72 public final Resource FlagTable_HasRowHeigth_Inverse;
73 public final Resource FlagTable_HasWidth;
74 public final Resource FlagTable_HasWidth_Inverse;
75 public final Resource FlagTable_RowNumberColumn;
76 public final Resource FlagTable_RowNumberColumn_start;
77 public final Resource FlagTable_RowNumberColumn_start_Inverse;
78 public final Resource FlagTypeVisual;
79 public final Resource FlagTypeVisualUI;
80 public final Resource FlagTypeVisual_Filter;
81 public final Resource FlagTypeVisual_FilterUI;
82 public final Resource FlagTypeVisual_Filter_HasPattern;
83 public final Resource FlagTypeVisual_Filter_HasPattern_Inverse;
84 public final Resource FlagTypeVisual_Filter_HasProperty;
85 public final Resource FlagTypeVisual_Filter_HasProperty_Inverse;
86 public final Resource FlagTypeVisual_Filter_matchRequired;
87 public final Resource FlagTypeVisual_Filter_matchRequired_Inverse;
88 public final Resource HasBorder;
89 public final Resource HasDrawingTemplate;
90 public final Resource HasDrawingTemplateRoot;
91 public final Resource HasDrawingTemplateRoot_Inverse;
92 public final Resource HasDrawingTemplate_Inverse;
93 public final Resource HasHorizontalAlign;
94 public final Resource HasMargin;
95 public final Resource HasMargin_Inverse;
96 public final Resource HasOffset;
97 public final Resource HasOffset_Inverse;
98 public final Resource HasPadding;
99 public final Resource HasPadding_Inverse;
100 public final Resource HasPage;
101 public final Resource HasPageOrientation;
102 public final Resource HasPageOrientation_Inverse;
103 public final Resource HasScenegraph;
104 public final Resource HasScenegraph_Inverse;
105 public final Resource HasSize;
106 public final Resource HasSize2;
107 public final Resource HasSize2_Inverse;
108 public final Resource HasSize_Inverse;
109 public final Resource HasVerticalAlign;
110 public final Resource Images;
111 public final Resource Images_Action;
112 public final Resource Images_BorderIcon;
113 public final Resource Images_ColumnIcon;
114 public final Resource Images_DiagramTemplate;
115 public final Resource Images_DiagramTemplateDataIcon;
116 public final Resource Images_DiagramTemplateHeaderIcon;
117 public final Resource Images_DiagramTemplateLibrary;
118 public final Resource Images_FilterIcon;
119 public final Resource Images_FlagTableColumnIcon;
120 public final Resource Images_FlagTableIcon;
121 public final Resource Images_FlagTableNumberingColumnIcon;
122 public final Resource Images_FlagTypeVisualIcon;
123 public final Resource Images_MonitorIcon;
124 public final Resource Images_MoveDownIcon;
125 public final Resource Images_MoveUpIcon;
126 public final Resource Images_NewDrawingTemplate;
127 public final Resource Images_PageIcon;
128 public final Resource Images_SVGImageIcon;
129 public final Resource Images_ScenegraphNode;
130 public final Resource Images_TextIcon;
131 public final Resource Images_VisualCompositeIcon;
132 public final Resource Page;
133 public final Resource PageOrientation;
134 public final Resource PageOrientation_Landscape;
135 public final Resource PageOrientation_Portrait;
136 public final Resource Page_A0;
137 public final Resource Page_A1;
138 public final Resource Page_A2;
139 public final Resource Page_A3;
140 public final Resource Page_A4;
141 public final Resource Profiles;
142 public final Resource Profiles_DrawingBorder;
143 public final Resource Profiles_DrawingFlagTables;
144 public final Resource Profiles_DrawingTemplate;
145 public final Resource Profiles_VariableReference;
146 public final Resource Profiles_VariableReference_path;
147 public final Resource Profiles_VariableReference_path_Inverse;
148 public final Resource Size;
149 public final Resource TemplateTabContribution;
150 public final Resource TextTemplateUI;
152 public static class URIs {
153 public static final String Actions = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions";
154 public static final String Actions_AssignDrawingTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/AssignDrawingTemplate";
155 public static final String Actions_MoveDown = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/MoveDown";
156 public static final String Actions_MoveUp = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/MoveUp";
157 public static final String Actions_NewDrawingTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewDrawingTemplate";
158 public static final String Actions_NewFlagTable = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTable";
159 public static final String Actions_NewFlagTableColumn = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTableColumn";
160 public static final String Actions_NewFlagTableColumnData = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTableColumnData";
161 public static final String Actions_NewFlagTableColumnHeader = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTableColumnHeader";
162 public static final String Actions_NewFlagTableRowNumberColumn = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTableRowNumberColumn";
163 public static final String Actions_NewFlagTypeVisual = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTypeVisual";
164 public static final String Actions_NewFlagTypeVisualFilter = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewFlagTypeVisualFilter";
165 public static final String Actions_NewMonitor = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewMonitor";
166 public static final String Actions_NewSVGImage = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewSVGImage";
167 public static final String Actions_NewScenegraph = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewScenegraph";
168 public static final String Actions_NewText = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NewText";
169 public static final String Actions_NoActionCategory = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/NoActionCategory";
170 public static final String Actions_SetBorderColor = "http://www.simantics.org/ModelingTemplate2d-1.0/Actions/SetBorderColor";
171 public static final String Alignment = "http://www.simantics.org/ModelingTemplate2d-1.0/Alignment";
172 public static final String Alignment_Bottom = "http://www.simantics.org/ModelingTemplate2d-1.0/Alignment/Bottom";
173 public static final String Alignment_Left = "http://www.simantics.org/ModelingTemplate2d-1.0/Alignment/Left";
174 public static final String Alignment_Middle = "http://www.simantics.org/ModelingTemplate2d-1.0/Alignment/Middle";
175 public static final String Alignment_Right = "http://www.simantics.org/ModelingTemplate2d-1.0/Alignment/Right";
176 public static final String Alignment_Top = "http://www.simantics.org/ModelingTemplate2d-1.0/Alignment/Top";
177 public static final String Border = "http://www.simantics.org/ModelingTemplate2d-1.0/Border";
178 public static final String BorderUI = "http://www.simantics.org/ModelingTemplate2d-1.0/BorderUI";
179 public static final String BrowseNode = "http://www.simantics.org/ModelingTemplate2d-1.0/BrowseNode";
180 public static final String CompositeUI = "http://www.simantics.org/ModelingTemplate2d-1.0/CompositeUI";
181 public static final String DiagramGroup = "http://www.simantics.org/ModelingTemplate2d-1.0/DiagramGroup";
182 public static final String DiagramTemplateAC = "http://www.simantics.org/ModelingTemplate2d-1.0/DiagramTemplateAC";
183 public static final String DiagramTemplateAC_IsInModelTest = "http://www.simantics.org/ModelingTemplate2d-1.0/DiagramTemplateAC/IsInModelTest";
184 public static final String DiagramTemplateBC = "http://www.simantics.org/ModelingTemplate2d-1.0/DiagramTemplateBC";
185 public static final String DiagramTemplateBC_ScenegraphChildren = "http://www.simantics.org/ModelingTemplate2d-1.0/DiagramTemplateBC/ScenegraphChildren";
186 @Deprecated public static final String DiagramTemplates = "http://www.simantics.org/ModelingTemplate2d-1.0/DiagramTemplates";
187 public static final String DrawingBorderStyle = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingBorderStyle";
188 public static final String DrawingFlagTableStyle = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingFlagTableStyle";
189 public static final String DrawingTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingTemplate";
190 public static final String DrawingTemplateLibrary = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingTemplateLibrary";
191 public static final String DrawingTemplateLibraryUI = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingTemplateLibraryUI";
192 public static final String DrawingTemplateStyle = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingTemplateStyle";
193 public static final String DrawingTemplateUI = "http://www.simantics.org/ModelingTemplate2d-1.0/DrawingTemplateUI";
194 public static final String FlagTable = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable";
195 public static final String FlagTableUI = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTableUI";
196 public static final String FlagTableUI_ColumnUI = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTableUI/ColumnUI";
197 public static final String FlagTableUI_ColumnUI_DataUI = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTableUI/ColumnUI/DataUI";
198 public static final String FlagTableUI_ColumnUI_HeaderUI = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTableUI/ColumnUI/HeaderUI";
199 public static final String FlagTable_Alignment = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Alignment";
200 public static final String FlagTable_Alignment_Left = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Alignment/Left";
201 public static final String FlagTable_Alignment_Right = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Alignment/Right";
202 public static final String FlagTable_Column = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Column";
203 public static final String FlagTable_Column_Data = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Column/Data";
204 public static final String FlagTable_Column_HasWeight = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Column/HasWeight";
205 public static final String FlagTable_Column_HasWeight_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Column/HasWeight/Inverse";
206 public static final String FlagTable_Column_Header = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/Column/Header";
207 public static final String FlagTable_HasAlignment = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasAlignment";
208 public static final String FlagTable_HasAlignment_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasAlignment/Inverse";
209 public static final String FlagTable_HasRowCount = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasRowCount";
210 public static final String FlagTable_HasRowCount_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasRowCount/Inverse";
211 public static final String FlagTable_HasRowHeigth = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasRowHeigth";
212 public static final String FlagTable_HasRowHeigth_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasRowHeigth/Inverse";
213 public static final String FlagTable_HasWidth = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasWidth";
214 public static final String FlagTable_HasWidth_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/HasWidth/Inverse";
215 public static final String FlagTable_RowNumberColumn = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/RowNumberColumn";
216 public static final String FlagTable_RowNumberColumn_start = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/RowNumberColumn/start";
217 public static final String FlagTable_RowNumberColumn_start_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTable/RowNumberColumn/start/Inverse";
218 public static final String FlagTypeVisual = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual";
219 public static final String FlagTypeVisualUI = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisualUI";
220 public static final String FlagTypeVisual_Filter = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter";
221 public static final String FlagTypeVisual_FilterUI = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/FilterUI";
222 public static final String FlagTypeVisual_Filter_HasPattern = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter/HasPattern";
223 public static final String FlagTypeVisual_Filter_HasPattern_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter/HasPattern/Inverse";
224 public static final String FlagTypeVisual_Filter_HasProperty = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter/HasProperty";
225 public static final String FlagTypeVisual_Filter_HasProperty_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter/HasProperty/Inverse";
226 public static final String FlagTypeVisual_Filter_matchRequired = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter/matchRequired";
227 public static final String FlagTypeVisual_Filter_matchRequired_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/FlagTypeVisual/Filter/matchRequired/Inverse";
228 public static final String HasBorder = "http://www.simantics.org/ModelingTemplate2d-1.0/HasBorder";
229 public static final String HasDrawingTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/HasDrawingTemplate";
230 public static final String HasDrawingTemplateRoot = "http://www.simantics.org/ModelingTemplate2d-1.0/HasDrawingTemplateRoot";
231 public static final String HasDrawingTemplateRoot_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasDrawingTemplateRoot/Inverse";
232 public static final String HasDrawingTemplate_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasDrawingTemplate/Inverse";
233 public static final String HasHorizontalAlign = "http://www.simantics.org/ModelingTemplate2d-1.0/HasHorizontalAlign";
234 public static final String HasMargin = "http://www.simantics.org/ModelingTemplate2d-1.0/HasMargin";
235 public static final String HasMargin_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasMargin/Inverse";
236 public static final String HasOffset = "http://www.simantics.org/ModelingTemplate2d-1.0/HasOffset";
237 public static final String HasOffset_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasOffset/Inverse";
238 public static final String HasPadding = "http://www.simantics.org/ModelingTemplate2d-1.0/HasPadding";
239 public static final String HasPadding_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasPadding/Inverse";
240 public static final String HasPage = "http://www.simantics.org/ModelingTemplate2d-1.0/HasPage";
241 public static final String HasPageOrientation = "http://www.simantics.org/ModelingTemplate2d-1.0/HasPageOrientation";
242 public static final String HasPageOrientation_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasPageOrientation/Inverse";
243 public static final String HasScenegraph = "http://www.simantics.org/ModelingTemplate2d-1.0/HasScenegraph";
244 public static final String HasScenegraph_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasScenegraph/Inverse";
245 public static final String HasSize = "http://www.simantics.org/ModelingTemplate2d-1.0/HasSize";
246 public static final String HasSize2 = "http://www.simantics.org/ModelingTemplate2d-1.0/HasSize2";
247 public static final String HasSize2_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasSize2/Inverse";
248 public static final String HasSize_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/HasSize/Inverse";
249 public static final String HasVerticalAlign = "http://www.simantics.org/ModelingTemplate2d-1.0/HasVerticalAlign";
250 public static final String Images = "http://www.simantics.org/ModelingTemplate2d-1.0/Images";
251 public static final String Images_Action = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/Action";
252 public static final String Images_BorderIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/BorderIcon";
253 public static final String Images_ColumnIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/ColumnIcon";
254 public static final String Images_DiagramTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/DiagramTemplate";
255 public static final String Images_DiagramTemplateDataIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/DiagramTemplateDataIcon";
256 public static final String Images_DiagramTemplateHeaderIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/DiagramTemplateHeaderIcon";
257 public static final String Images_DiagramTemplateLibrary = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/DiagramTemplateLibrary";
258 public static final String Images_FilterIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/FilterIcon";
259 public static final String Images_FlagTableColumnIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/FlagTableColumnIcon";
260 public static final String Images_FlagTableIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/FlagTableIcon";
261 public static final String Images_FlagTableNumberingColumnIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/FlagTableNumberingColumnIcon";
262 public static final String Images_FlagTypeVisualIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/FlagTypeVisualIcon";
263 public static final String Images_MonitorIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/MonitorIcon";
264 public static final String Images_MoveDownIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/MoveDownIcon";
265 public static final String Images_MoveUpIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/MoveUpIcon";
266 public static final String Images_NewDrawingTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/NewDrawingTemplate";
267 public static final String Images_PageIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/PageIcon";
268 public static final String Images_SVGImageIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/SVGImageIcon";
269 public static final String Images_ScenegraphNode = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/ScenegraphNode";
270 public static final String Images_TextIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/TextIcon";
271 public static final String Images_VisualCompositeIcon = "http://www.simantics.org/ModelingTemplate2d-1.0/Images/VisualCompositeIcon";
272 public static final String Page = "http://www.simantics.org/ModelingTemplate2d-1.0/Page";
273 public static final String PageOrientation = "http://www.simantics.org/ModelingTemplate2d-1.0/PageOrientation";
274 public static final String PageOrientation_Landscape = "http://www.simantics.org/ModelingTemplate2d-1.0/PageOrientation/Landscape";
275 public static final String PageOrientation_Portrait = "http://www.simantics.org/ModelingTemplate2d-1.0/PageOrientation/Portrait";
276 public static final String Page_A0 = "http://www.simantics.org/ModelingTemplate2d-1.0/Page/A0";
277 public static final String Page_A1 = "http://www.simantics.org/ModelingTemplate2d-1.0/Page/A1";
278 public static final String Page_A2 = "http://www.simantics.org/ModelingTemplate2d-1.0/Page/A2";
279 public static final String Page_A3 = "http://www.simantics.org/ModelingTemplate2d-1.0/Page/A3";
280 public static final String Page_A4 = "http://www.simantics.org/ModelingTemplate2d-1.0/Page/A4";
281 public static final String Profiles = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles";
282 public static final String Profiles_DrawingBorder = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles/DrawingBorder";
283 public static final String Profiles_DrawingFlagTables = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles/DrawingFlagTables";
284 public static final String Profiles_DrawingTemplate = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles/DrawingTemplate";
285 public static final String Profiles_VariableReference = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles/VariableReference";
286 public static final String Profiles_VariableReference_path = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles/VariableReference/path";
287 public static final String Profiles_VariableReference_path_Inverse = "http://www.simantics.org/ModelingTemplate2d-1.0/Profiles/VariableReference/path/Inverse";
288 public static final String Size = "http://www.simantics.org/ModelingTemplate2d-1.0/Size";
289 public static final String TemplateTabContribution = "http://www.simantics.org/ModelingTemplate2d-1.0/TemplateTabContribution";
290 public static final String TextTemplateUI = "http://www.simantics.org/ModelingTemplate2d-1.0/TextTemplateUI";
293 public static Resource getResourceOrNull(ReadGraph graph, String uri) {
295 return graph.getResource(uri);
296 } catch(DatabaseException e) {
297 System.err.println(e.getMessage());
302 public Template2dResource(ReadGraph graph) {
303 Actions = getResourceOrNull(graph, URIs.Actions);
304 Actions_AssignDrawingTemplate = getResourceOrNull(graph, URIs.Actions_AssignDrawingTemplate);
305 Actions_MoveDown = getResourceOrNull(graph, URIs.Actions_MoveDown);
306 Actions_MoveUp = getResourceOrNull(graph, URIs.Actions_MoveUp);
307 Actions_NewDrawingTemplate = getResourceOrNull(graph, URIs.Actions_NewDrawingTemplate);
308 Actions_NewFlagTable = getResourceOrNull(graph, URIs.Actions_NewFlagTable);
309 Actions_NewFlagTableColumn = getResourceOrNull(graph, URIs.Actions_NewFlagTableColumn);
310 Actions_NewFlagTableColumnData = getResourceOrNull(graph, URIs.Actions_NewFlagTableColumnData);
311 Actions_NewFlagTableColumnHeader = getResourceOrNull(graph, URIs.Actions_NewFlagTableColumnHeader);
312 Actions_NewFlagTableRowNumberColumn = getResourceOrNull(graph, URIs.Actions_NewFlagTableRowNumberColumn);
313 Actions_NewFlagTypeVisual = getResourceOrNull(graph, URIs.Actions_NewFlagTypeVisual);
314 Actions_NewFlagTypeVisualFilter = getResourceOrNull(graph, URIs.Actions_NewFlagTypeVisualFilter);
315 Actions_NewMonitor = getResourceOrNull(graph, URIs.Actions_NewMonitor);
316 Actions_NewSVGImage = getResourceOrNull(graph, URIs.Actions_NewSVGImage);
317 Actions_NewScenegraph = getResourceOrNull(graph, URIs.Actions_NewScenegraph);
318 Actions_NewText = getResourceOrNull(graph, URIs.Actions_NewText);
319 Actions_NoActionCategory = getResourceOrNull(graph, URIs.Actions_NoActionCategory);
320 Actions_SetBorderColor = getResourceOrNull(graph, URIs.Actions_SetBorderColor);
321 Alignment = getResourceOrNull(graph, URIs.Alignment);
322 Alignment_Bottom = getResourceOrNull(graph, URIs.Alignment_Bottom);
323 Alignment_Left = getResourceOrNull(graph, URIs.Alignment_Left);
324 Alignment_Middle = getResourceOrNull(graph, URIs.Alignment_Middle);
325 Alignment_Right = getResourceOrNull(graph, URIs.Alignment_Right);
326 Alignment_Top = getResourceOrNull(graph, URIs.Alignment_Top);
327 Border = getResourceOrNull(graph, URIs.Border);
328 BorderUI = getResourceOrNull(graph, URIs.BorderUI);
329 BrowseNode = getResourceOrNull(graph, URIs.BrowseNode);
330 CompositeUI = getResourceOrNull(graph, URIs.CompositeUI);
331 DiagramGroup = getResourceOrNull(graph, URIs.DiagramGroup);
332 DiagramTemplateAC = getResourceOrNull(graph, URIs.DiagramTemplateAC);
333 DiagramTemplateAC_IsInModelTest = getResourceOrNull(graph, URIs.DiagramTemplateAC_IsInModelTest);
334 DiagramTemplateBC = getResourceOrNull(graph, URIs.DiagramTemplateBC);
335 DiagramTemplateBC_ScenegraphChildren = getResourceOrNull(graph, URIs.DiagramTemplateBC_ScenegraphChildren);
336 DiagramTemplates = getResourceOrNull(graph, URIs.DiagramTemplates);
337 DrawingBorderStyle = getResourceOrNull(graph, URIs.DrawingBorderStyle);
338 DrawingFlagTableStyle = getResourceOrNull(graph, URIs.DrawingFlagTableStyle);
339 DrawingTemplate = getResourceOrNull(graph, URIs.DrawingTemplate);
340 DrawingTemplateLibrary = getResourceOrNull(graph, URIs.DrawingTemplateLibrary);
341 DrawingTemplateLibraryUI = getResourceOrNull(graph, URIs.DrawingTemplateLibraryUI);
342 DrawingTemplateStyle = getResourceOrNull(graph, URIs.DrawingTemplateStyle);
343 DrawingTemplateUI = getResourceOrNull(graph, URIs.DrawingTemplateUI);
344 FlagTable = getResourceOrNull(graph, URIs.FlagTable);
345 FlagTableUI = getResourceOrNull(graph, URIs.FlagTableUI);
346 FlagTableUI_ColumnUI = getResourceOrNull(graph, URIs.FlagTableUI_ColumnUI);
347 FlagTableUI_ColumnUI_DataUI = getResourceOrNull(graph, URIs.FlagTableUI_ColumnUI_DataUI);
348 FlagTableUI_ColumnUI_HeaderUI = getResourceOrNull(graph, URIs.FlagTableUI_ColumnUI_HeaderUI);
349 FlagTable_Alignment = getResourceOrNull(graph, URIs.FlagTable_Alignment);
350 FlagTable_Alignment_Left = getResourceOrNull(graph, URIs.FlagTable_Alignment_Left);
351 FlagTable_Alignment_Right = getResourceOrNull(graph, URIs.FlagTable_Alignment_Right);
352 FlagTable_Column = getResourceOrNull(graph, URIs.FlagTable_Column);
353 FlagTable_Column_Data = getResourceOrNull(graph, URIs.FlagTable_Column_Data);
354 FlagTable_Column_HasWeight = getResourceOrNull(graph, URIs.FlagTable_Column_HasWeight);
355 FlagTable_Column_HasWeight_Inverse = getResourceOrNull(graph, URIs.FlagTable_Column_HasWeight_Inverse);
356 FlagTable_Column_Header = getResourceOrNull(graph, URIs.FlagTable_Column_Header);
357 FlagTable_HasAlignment = getResourceOrNull(graph, URIs.FlagTable_HasAlignment);
358 FlagTable_HasAlignment_Inverse = getResourceOrNull(graph, URIs.FlagTable_HasAlignment_Inverse);
359 FlagTable_HasRowCount = getResourceOrNull(graph, URIs.FlagTable_HasRowCount);
360 FlagTable_HasRowCount_Inverse = getResourceOrNull(graph, URIs.FlagTable_HasRowCount_Inverse);
361 FlagTable_HasRowHeigth = getResourceOrNull(graph, URIs.FlagTable_HasRowHeigth);
362 FlagTable_HasRowHeigth_Inverse = getResourceOrNull(graph, URIs.FlagTable_HasRowHeigth_Inverse);
363 FlagTable_HasWidth = getResourceOrNull(graph, URIs.FlagTable_HasWidth);
364 FlagTable_HasWidth_Inverse = getResourceOrNull(graph, URIs.FlagTable_HasWidth_Inverse);
365 FlagTable_RowNumberColumn = getResourceOrNull(graph, URIs.FlagTable_RowNumberColumn);
366 FlagTable_RowNumberColumn_start = getResourceOrNull(graph, URIs.FlagTable_RowNumberColumn_start);
367 FlagTable_RowNumberColumn_start_Inverse = getResourceOrNull(graph, URIs.FlagTable_RowNumberColumn_start_Inverse);
368 FlagTypeVisual = getResourceOrNull(graph, URIs.FlagTypeVisual);
369 FlagTypeVisualUI = getResourceOrNull(graph, URIs.FlagTypeVisualUI);
370 FlagTypeVisual_Filter = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter);
371 FlagTypeVisual_FilterUI = getResourceOrNull(graph, URIs.FlagTypeVisual_FilterUI);
372 FlagTypeVisual_Filter_HasPattern = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter_HasPattern);
373 FlagTypeVisual_Filter_HasPattern_Inverse = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter_HasPattern_Inverse);
374 FlagTypeVisual_Filter_HasProperty = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter_HasProperty);
375 FlagTypeVisual_Filter_HasProperty_Inverse = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter_HasProperty_Inverse);
376 FlagTypeVisual_Filter_matchRequired = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter_matchRequired);
377 FlagTypeVisual_Filter_matchRequired_Inverse = getResourceOrNull(graph, URIs.FlagTypeVisual_Filter_matchRequired_Inverse);
378 HasBorder = getResourceOrNull(graph, URIs.HasBorder);
379 HasDrawingTemplate = getResourceOrNull(graph, URIs.HasDrawingTemplate);
380 HasDrawingTemplateRoot = getResourceOrNull(graph, URIs.HasDrawingTemplateRoot);
381 HasDrawingTemplateRoot_Inverse = getResourceOrNull(graph, URIs.HasDrawingTemplateRoot_Inverse);
382 HasDrawingTemplate_Inverse = getResourceOrNull(graph, URIs.HasDrawingTemplate_Inverse);
383 HasHorizontalAlign = getResourceOrNull(graph, URIs.HasHorizontalAlign);
384 HasMargin = getResourceOrNull(graph, URIs.HasMargin);
385 HasMargin_Inverse = getResourceOrNull(graph, URIs.HasMargin_Inverse);
386 HasOffset = getResourceOrNull(graph, URIs.HasOffset);
387 HasOffset_Inverse = getResourceOrNull(graph, URIs.HasOffset_Inverse);
388 HasPadding = getResourceOrNull(graph, URIs.HasPadding);
389 HasPadding_Inverse = getResourceOrNull(graph, URIs.HasPadding_Inverse);
390 HasPage = getResourceOrNull(graph, URIs.HasPage);
391 HasPageOrientation = getResourceOrNull(graph, URIs.HasPageOrientation);
392 HasPageOrientation_Inverse = getResourceOrNull(graph, URIs.HasPageOrientation_Inverse);
393 HasScenegraph = getResourceOrNull(graph, URIs.HasScenegraph);
394 HasScenegraph_Inverse = getResourceOrNull(graph, URIs.HasScenegraph_Inverse);
395 HasSize = getResourceOrNull(graph, URIs.HasSize);
396 HasSize2 = getResourceOrNull(graph, URIs.HasSize2);
397 HasSize2_Inverse = getResourceOrNull(graph, URIs.HasSize2_Inverse);
398 HasSize_Inverse = getResourceOrNull(graph, URIs.HasSize_Inverse);
399 HasVerticalAlign = getResourceOrNull(graph, URIs.HasVerticalAlign);
400 Images = getResourceOrNull(graph, URIs.Images);
401 Images_Action = getResourceOrNull(graph, URIs.Images_Action);
402 Images_BorderIcon = getResourceOrNull(graph, URIs.Images_BorderIcon);
403 Images_ColumnIcon = getResourceOrNull(graph, URIs.Images_ColumnIcon);
404 Images_DiagramTemplate = getResourceOrNull(graph, URIs.Images_DiagramTemplate);
405 Images_DiagramTemplateDataIcon = getResourceOrNull(graph, URIs.Images_DiagramTemplateDataIcon);
406 Images_DiagramTemplateHeaderIcon = getResourceOrNull(graph, URIs.Images_DiagramTemplateHeaderIcon);
407 Images_DiagramTemplateLibrary = getResourceOrNull(graph, URIs.Images_DiagramTemplateLibrary);
408 Images_FilterIcon = getResourceOrNull(graph, URIs.Images_FilterIcon);
409 Images_FlagTableColumnIcon = getResourceOrNull(graph, URIs.Images_FlagTableColumnIcon);
410 Images_FlagTableIcon = getResourceOrNull(graph, URIs.Images_FlagTableIcon);
411 Images_FlagTableNumberingColumnIcon = getResourceOrNull(graph, URIs.Images_FlagTableNumberingColumnIcon);
412 Images_FlagTypeVisualIcon = getResourceOrNull(graph, URIs.Images_FlagTypeVisualIcon);
413 Images_MonitorIcon = getResourceOrNull(graph, URIs.Images_MonitorIcon);
414 Images_MoveDownIcon = getResourceOrNull(graph, URIs.Images_MoveDownIcon);
415 Images_MoveUpIcon = getResourceOrNull(graph, URIs.Images_MoveUpIcon);
416 Images_NewDrawingTemplate = getResourceOrNull(graph, URIs.Images_NewDrawingTemplate);
417 Images_PageIcon = getResourceOrNull(graph, URIs.Images_PageIcon);
418 Images_SVGImageIcon = getResourceOrNull(graph, URIs.Images_SVGImageIcon);
419 Images_ScenegraphNode = getResourceOrNull(graph, URIs.Images_ScenegraphNode);
420 Images_TextIcon = getResourceOrNull(graph, URIs.Images_TextIcon);
421 Images_VisualCompositeIcon = getResourceOrNull(graph, URIs.Images_VisualCompositeIcon);
422 Page = getResourceOrNull(graph, URIs.Page);
423 PageOrientation = getResourceOrNull(graph, URIs.PageOrientation);
424 PageOrientation_Landscape = getResourceOrNull(graph, URIs.PageOrientation_Landscape);
425 PageOrientation_Portrait = getResourceOrNull(graph, URIs.PageOrientation_Portrait);
426 Page_A0 = getResourceOrNull(graph, URIs.Page_A0);
427 Page_A1 = getResourceOrNull(graph, URIs.Page_A1);
428 Page_A2 = getResourceOrNull(graph, URIs.Page_A2);
429 Page_A3 = getResourceOrNull(graph, URIs.Page_A3);
430 Page_A4 = getResourceOrNull(graph, URIs.Page_A4);
431 Profiles = getResourceOrNull(graph, URIs.Profiles);
432 Profiles_DrawingBorder = getResourceOrNull(graph, URIs.Profiles_DrawingBorder);
433 Profiles_DrawingFlagTables = getResourceOrNull(graph, URIs.Profiles_DrawingFlagTables);
434 Profiles_DrawingTemplate = getResourceOrNull(graph, URIs.Profiles_DrawingTemplate);
435 Profiles_VariableReference = getResourceOrNull(graph, URIs.Profiles_VariableReference);
436 Profiles_VariableReference_path = getResourceOrNull(graph, URIs.Profiles_VariableReference_path);
437 Profiles_VariableReference_path_Inverse = getResourceOrNull(graph, URIs.Profiles_VariableReference_path_Inverse);
438 Size = getResourceOrNull(graph, URIs.Size);
439 TemplateTabContribution = getResourceOrNull(graph, URIs.TemplateTabContribution);
440 TextTemplateUI = getResourceOrNull(graph, URIs.TextTemplateUI);
443 public static Template2dResource getInstance(ReadGraph graph) {
444 Session session = graph.getSession();
445 Template2dResource ret = session.peekService(Template2dResource.class);
447 QueryControl qc = graph.getService(QueryControl.class);
448 ret = new Template2dResource(qc.getIndependentGraph(graph));
449 session.registerService(Template2dResource.class, ret);
454 public static Template2dResource getInstance(RequestProcessor session) throws DatabaseException {
455 Template2dResource ret = session.peekService(Template2dResource.class);
457 ret = session.syncRequest(new Read<Template2dResource>() {
458 public Template2dResource perform(ReadGraph graph) throws DatabaseException {
459 QueryControl qc = graph.getService(QueryControl.class);
460 return new Template2dResource(qc.getIndependentGraph(graph));
463 session.registerService(Template2dResource.class, ret);