--- /dev/null
+package org.simantics.spreadsheet.resource;\r
+\r
+import org.simantics.db.RequestProcessor;\r
+import org.simantics.db.Resource;\r
+import org.simantics.db.ReadGraph;\r
+import org.simantics.db.request.Read;\r
+import org.simantics.db.Session;\r
+import org.simantics.db.exception.DatabaseException;\r
+import org.simantics.db.service.QueryControl;\r
+\r
+public class SpreadsheetResource {\r
+ \r
+ public final Resource Attribute;\r
+ public final Resource Book;\r
+ public final Resource Book_HasDefaultInitialCondition;\r
+ public final Resource BrowseContext;\r
+ public final Resource Cell;\r
+ public final Resource Cell_HasStyle;\r
+ public final Resource Cell_StyleOf;\r
+ public final Resource Cell_align;\r
+ public final Resource Cell_align_Inverse;\r
+ public final Resource Cell_background;\r
+ public final Resource Cell_background_Inverse;\r
+ public final Resource Cell_border;\r
+ public final Resource Cell_border_Inverse;\r
+ public final Resource Cell_columnSpan;\r
+ public final Resource Cell_columnSpan_Inverse;\r
+ public final Resource Cell_content;\r
+ public final Resource Cell_content_Inverse;\r
+ public final Resource Cell_editable;\r
+ public final Resource Cell_editable_Inverse;\r
+ public final Resource Cell_font;\r
+ public final Resource Cell_font_Inverse;\r
+ public final Resource Cell_foreground;\r
+ public final Resource Cell_foreground_Inverse;\r
+ public final Resource Cell_formatIndex;\r
+ public final Resource Cell_formatIndex_Inverse;\r
+ public final Resource Cell_formatString;\r
+ public final Resource Cell_formatString_Inverse;\r
+ public final Resource Cell_label;\r
+ public final Resource Cell_label_Inverse;\r
+ public final Resource Cell_locked;\r
+ public final Resource Cell_locked_Inverse;\r
+ public final Resource Cell_rowSpan;\r
+ public final Resource Cell_rowSpan_Inverse;\r
+ public final Resource Cell_style;\r
+ public final Resource Cell_style_Inverse;\r
+ public final Resource CompositeTemplate;\r
+ public final Resource Dimensions;\r
+ public final Resource Dimensions_columnCount;\r
+ public final Resource Dimensions_columnCount_Inverse;\r
+ public final Resource Dimensions_fitColumns;\r
+ public final Resource Dimensions_fitColumns_Inverse;\r
+ public final Resource Dimensions_fitRows;\r
+ public final Resource Dimensions_fitRows_Inverse;\r
+ public final Resource Dimensions_rowCount;\r
+ public final Resource Dimensions_rowCount_Inverse;\r
+ public final Resource DoubleArrayCell;\r
+ public final Resource DoubleArrayCell_HasDoubleArray;\r
+ public final Resource DoubleArrayCell_HasDoubleArray_Inverse;\r
+ public final Resource DoubleArrayCell_HasWidth;\r
+ public final Resource DoubleArrayCell_HasWidth_Inverse;\r
+ public final Resource DoubleArrayRange;\r
+ public final Resource DoubleArrayRange_array;\r
+ public final Resource DoubleArrayRange_array_Inverse;\r
+ public final Resource Element;\r
+ public final Resource Element_immutable;\r
+ public final Resource Element_immutable_Inverse;\r
+ public final Resource ExcelCell;\r
+ public final Resource Experiment;\r
+ public final Resource ExpressionRange;\r
+ public final Resource ExpressionRange_cells;\r
+ public final Resource ExpressionRange_cells_Inverse;\r
+ public final Resource ForCompositeTemplate;\r
+ public final Resource ForCompositeTemplate_Inverse;\r
+ public final Resource Functions;\r
+ public final Resource Functions_cellLabel;\r
+ public final Resource Functions_contentDisplayValueAccessor;\r
+ public final Resource Functions_contentValueAccessor;\r
+ public final Resource Functions_defaultLineCells;\r
+ public final Resource Functions_defaultSheetCellEditor;\r
+ public final Resource Functions_doubleArrayChildren;\r
+ public final Resource Functions_lineNodeKeys;\r
+ public final Resource Functions_queryRangeChildren;\r
+ public final Resource Functions_sclValue;\r
+ public final Resource Functions_sheetRunDomainChildren;\r
+ public final Resource Functions_spreadsheetChildren;\r
+ public final Resource Functions_spreadsheetInput;\r
+ public final Resource Functions_spreadsheetLinesChildren;\r
+ public final Resource Functions_spreadsheetRunInput;\r
+ public final Resource Functions_spreadsheetSession;\r
+ public final Resource Functions_stringArrayChildren;\r
+ public final Resource Functions_textCellEditor;\r
+ public final Resource Functions_variableCellEditor;\r
+ public final Resource HasInitialCondition;\r
+ public final Resource HasInitialCondition_Inverse;\r
+ public final Resource HasLocation;\r
+ public final Resource HasLocation_Inverse;\r
+ public final Resource HasMicrosoftExcelDocumentData;\r
+ public final Resource HasMicrosoftExcelDocumentData_Inverse;\r
+ public final Resource HasRVI;\r
+ public final Resource HasRVI_Inverse;\r
+ public final Resource HasSheet;\r
+ public final Resource Headers;\r
+ public final Resource Headers_columnLabels;\r
+ public final Resource Headers_columnLabels_Inverse;\r
+ public final Resource Headers_columnWidths;\r
+ public final Resource Headers_columnWidths_Inverse;\r
+ public final Resource Headers_rowHeights;\r
+ public final Resource Headers_rowHeights_Inverse;\r
+ public final Resource Headers_rowLabels;\r
+ public final Resource Headers_rowLabels_Inverse;\r
+ public final Resource InitialCondition;\r
+ public final Resource InitialCondition_ConditionOf;\r
+ public final Resource InitialCondition_ConditionOf_Inverse;\r
+ public final Resource InitialCondition_DefaultConditionOf;\r
+ public final Resource InitialCondition_bytes;\r
+ public final Resource InitialCondition_bytes_Inverse;\r
+ public final Resource IsSheetOf;\r
+ public final Resource Line;\r
+ public final Resource LineContent;\r
+ public final Resource LineNode;\r
+ public final Resource LineNode_keys;\r
+ public final Resource LineNode_keys_Inverse;\r
+ public final Resource Line_content;\r
+ public final Resource Line_content_Inverse;\r
+ public final Resource Lines;\r
+ public final Resource MicrosoftExcelDocument;\r
+ public final Resource MicrosoftExcelDocumentData;\r
+ public final Resource ModelSourceContribution;\r
+ public final Resource Range;\r
+ public final Resource Range_heightBound;\r
+ public final Resource Range_heightBound_Inverse;\r
+ public final Resource Range_location;\r
+ public final Resource Range_location_Inverse;\r
+ public final Resource Range_widthBound;\r
+ public final Resource Range_widthBound_Inverse;\r
+ public final Resource Run;\r
+ public final Resource SCLCell;\r
+ public final Resource SCLCell_Expression;\r
+ public final Resource SCLCell_Expression_Inverse;\r
+ public final Resource SCLMain;\r
+ public final Resource SCLValue;\r
+ public final Resource SheetSourceContribution;\r
+ public final Resource SourceContribution;\r
+ public final Resource SourceContribution_function;\r
+ public final Resource SourceContribution_function_Inverse;\r
+ public final Resource SourceContribution_labeler;\r
+ public final Resource SourceContribution_labeler_Inverse;\r
+ public final Resource Spreadsheet;\r
+ public final Resource SpreadsheetElement;\r
+ public final Resource StringArrayCell;\r
+ public final Resource StringArrayCell_HasStringArray;\r
+ public final Resource StringArrayCell_HasStringArray_Inverse;\r
+ public final Resource StringArrayCell_HasWidth;\r
+ public final Resource StringArrayCell_HasWidth_Inverse;\r
+ public final Resource StringArrayRange;\r
+ public final Resource StringArrayRange_array;\r
+ public final Resource StringArrayRange_array_Inverse;\r
+ public final Resource Style;\r
+ public final Resource Style_id;\r
+ public final Resource Style_id_Inverse;\r
+ public final Resource TextCell;\r
+ public final Resource cellEditor;\r
+ public final Resource cellEditor_Inverse;\r
+ public final Resource scl;\r
+ public final Resource sclValue;\r
+ public final Resource session;\r
+ public final Resource session_Inverse;\r
+ \r
+ public static class URIs {\r
+ public static final String Attribute = "http://www.simantics.org/Spreadsheet-1.2/Attribute";\r
+ public static final String Book = "http://www.simantics.org/Spreadsheet-1.2/Book";\r
+ public static final String Book_HasDefaultInitialCondition = "http://www.simantics.org/Spreadsheet-1.2/Book/HasDefaultInitialCondition";\r
+ public static final String BrowseContext = "http://www.simantics.org/Spreadsheet-1.2/BrowseContext";\r
+ public static final String Cell = "http://www.simantics.org/Spreadsheet-1.2/Cell";\r
+ public static final String Cell_HasStyle = "http://www.simantics.org/Spreadsheet-1.2/Cell/HasStyle";\r
+ public static final String Cell_StyleOf = "http://www.simantics.org/Spreadsheet-1.2/Cell/StyleOf";\r
+ public static final String Cell_align = "http://www.simantics.org/Spreadsheet-1.2/Cell/align";\r
+ public static final String Cell_align_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/align/Inverse";\r
+ public static final String Cell_background = "http://www.simantics.org/Spreadsheet-1.2/Cell/background";\r
+ public static final String Cell_background_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/background/Inverse";\r
+ public static final String Cell_border = "http://www.simantics.org/Spreadsheet-1.2/Cell/border";\r
+ public static final String Cell_border_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/border/Inverse";\r
+ public static final String Cell_columnSpan = "http://www.simantics.org/Spreadsheet-1.2/Cell/columnSpan";\r
+ public static final String Cell_columnSpan_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/columnSpan/Inverse";\r
+ public static final String Cell_content = "http://www.simantics.org/Spreadsheet-1.2/Cell/content";\r
+ public static final String Cell_content_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/content/Inverse";\r
+ public static final String Cell_editable = "http://www.simantics.org/Spreadsheet-1.2/Cell/editable";\r
+ public static final String Cell_editable_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/editable/Inverse";\r
+ public static final String Cell_font = "http://www.simantics.org/Spreadsheet-1.2/Cell/font";\r
+ public static final String Cell_font_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/font/Inverse";\r
+ public static final String Cell_foreground = "http://www.simantics.org/Spreadsheet-1.2/Cell/foreground";\r
+ public static final String Cell_foreground_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/foreground/Inverse";\r
+ public static final String Cell_formatIndex = "http://www.simantics.org/Spreadsheet-1.2/Cell/formatIndex";\r
+ public static final String Cell_formatIndex_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/formatIndex/Inverse";\r
+ public static final String Cell_formatString = "http://www.simantics.org/Spreadsheet-1.2/Cell/formatString";\r
+ public static final String Cell_formatString_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/formatString/Inverse";\r
+ public static final String Cell_label = "http://www.simantics.org/Spreadsheet-1.2/Cell/label";\r
+ public static final String Cell_label_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/label/Inverse";\r
+ public static final String Cell_locked = "http://www.simantics.org/Spreadsheet-1.2/Cell/locked";\r
+ public static final String Cell_locked_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/locked/Inverse";\r
+ public static final String Cell_rowSpan = "http://www.simantics.org/Spreadsheet-1.2/Cell/rowSpan";\r
+ public static final String Cell_rowSpan_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/rowSpan/Inverse";\r
+ public static final String Cell_style = "http://www.simantics.org/Spreadsheet-1.2/Cell/style";\r
+ public static final String Cell_style_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Cell/style/Inverse";\r
+ public static final String CompositeTemplate = "http://www.simantics.org/Spreadsheet-1.2/CompositeTemplate";\r
+ public static final String Dimensions = "http://www.simantics.org/Spreadsheet-1.2/Dimensions";\r
+ public static final String Dimensions_columnCount = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/columnCount";\r
+ public static final String Dimensions_columnCount_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/columnCount/Inverse";\r
+ public static final String Dimensions_fitColumns = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/fitColumns";\r
+ public static final String Dimensions_fitColumns_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/fitColumns/Inverse";\r
+ public static final String Dimensions_fitRows = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/fitRows";\r
+ public static final String Dimensions_fitRows_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/fitRows/Inverse";\r
+ public static final String Dimensions_rowCount = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/rowCount";\r
+ public static final String Dimensions_rowCount_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Dimensions/rowCount/Inverse";\r
+ public static final String DoubleArrayCell = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayCell";\r
+ public static final String DoubleArrayCell_HasDoubleArray = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayCell/HasDoubleArray";\r
+ public static final String DoubleArrayCell_HasDoubleArray_Inverse = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayCell/HasDoubleArray/Inverse";\r
+ public static final String DoubleArrayCell_HasWidth = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayCell/HasWidth";\r
+ public static final String DoubleArrayCell_HasWidth_Inverse = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayCell/HasWidth/Inverse";\r
+ public static final String DoubleArrayRange = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayRange";\r
+ public static final String DoubleArrayRange_array = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayRange/array";\r
+ public static final String DoubleArrayRange_array_Inverse = "http://www.simantics.org/Spreadsheet-1.2/DoubleArrayRange/array/Inverse";\r
+ public static final String Element = "http://www.simantics.org/Spreadsheet-1.2/Element";\r
+ public static final String Element_immutable = "http://www.simantics.org/Spreadsheet-1.2/Element/immutable";\r
+ public static final String Element_immutable_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Element/immutable/Inverse";\r
+ public static final String ExcelCell = "http://www.simantics.org/Spreadsheet-1.2/ExcelCell";\r
+ public static final String Experiment = "http://www.simantics.org/Spreadsheet-1.2/Experiment";\r
+ public static final String ExpressionRange = "http://www.simantics.org/Spreadsheet-1.2/ExpressionRange";\r
+ public static final String ExpressionRange_cells = "http://www.simantics.org/Spreadsheet-1.2/ExpressionRange/cells";\r
+ public static final String ExpressionRange_cells_Inverse = "http://www.simantics.org/Spreadsheet-1.2/ExpressionRange/cells/Inverse";\r
+ public static final String ForCompositeTemplate = "http://www.simantics.org/Spreadsheet-1.2/ForCompositeTemplate";\r
+ public static final String ForCompositeTemplate_Inverse = "http://www.simantics.org/Spreadsheet-1.2/ForCompositeTemplate/Inverse";\r
+ public static final String Functions = "http://www.simantics.org/Spreadsheet-1.2/Functions";\r
+ public static final String Functions_cellLabel = "http://www.simantics.org/Spreadsheet-1.2/Functions/cellLabel";\r
+ public static final String Functions_contentDisplayValueAccessor = "http://www.simantics.org/Spreadsheet-1.2/Functions/contentDisplayValueAccessor";\r
+ public static final String Functions_contentValueAccessor = "http://www.simantics.org/Spreadsheet-1.2/Functions/contentValueAccessor";\r
+ public static final String Functions_defaultLineCells = "http://www.simantics.org/Spreadsheet-1.2/Functions/defaultLineCells";\r
+ public static final String Functions_defaultSheetCellEditor = "http://www.simantics.org/Spreadsheet-1.2/Functions/defaultSheetCellEditor";\r
+ public static final String Functions_doubleArrayChildren = "http://www.simantics.org/Spreadsheet-1.2/Functions/doubleArrayChildren";\r
+ public static final String Functions_lineNodeKeys = "http://www.simantics.org/Spreadsheet-1.2/Functions/lineNodeKeys";\r
+ public static final String Functions_queryRangeChildren = "http://www.simantics.org/Spreadsheet-1.2/Functions/queryRangeChildren";\r
+ public static final String Functions_sclValue = "http://www.simantics.org/Spreadsheet-1.2/Functions/sclValue";\r
+ public static final String Functions_sheetRunDomainChildren = "http://www.simantics.org/Spreadsheet-1.2/Functions/sheetRunDomainChildren";\r
+ public static final String Functions_spreadsheetChildren = "http://www.simantics.org/Spreadsheet-1.2/Functions/spreadsheetChildren";\r
+ public static final String Functions_spreadsheetInput = "http://www.simantics.org/Spreadsheet-1.2/Functions/spreadsheetInput";\r
+ public static final String Functions_spreadsheetLinesChildren = "http://www.simantics.org/Spreadsheet-1.2/Functions/spreadsheetLinesChildren";\r
+ public static final String Functions_spreadsheetRunInput = "http://www.simantics.org/Spreadsheet-1.2/Functions/spreadsheetRunInput";\r
+ public static final String Functions_spreadsheetSession = "http://www.simantics.org/Spreadsheet-1.2/Functions/spreadsheetSession";\r
+ public static final String Functions_stringArrayChildren = "http://www.simantics.org/Spreadsheet-1.2/Functions/stringArrayChildren";\r
+ public static final String Functions_textCellEditor = "http://www.simantics.org/Spreadsheet-1.2/Functions/textCellEditor";\r
+ public static final String Functions_variableCellEditor = "http://www.simantics.org/Spreadsheet-1.2/Functions/variableCellEditor";\r
+ public static final String HasInitialCondition = "http://www.simantics.org/Spreadsheet-1.2/HasInitialCondition";\r
+ public static final String HasInitialCondition_Inverse = "http://www.simantics.org/Spreadsheet-1.2/HasInitialCondition/Inverse";\r
+ public static final String HasLocation = "http://www.simantics.org/Spreadsheet-1.2/HasLocation";\r
+ public static final String HasLocation_Inverse = "http://www.simantics.org/Spreadsheet-1.2/HasLocation/Inverse";\r
+ public static final String HasMicrosoftExcelDocumentData = "http://www.simantics.org/Spreadsheet-1.2/HasMicrosoftExcelDocumentData";\r
+ public static final String HasMicrosoftExcelDocumentData_Inverse = "http://www.simantics.org/Spreadsheet-1.2/HasMicrosoftExcelDocumentData/Inverse";\r
+ public static final String HasRVI = "http://www.simantics.org/Spreadsheet-1.2/HasRVI";\r
+ public static final String HasRVI_Inverse = "http://www.simantics.org/Spreadsheet-1.2/HasRVI/Inverse";\r
+ public static final String HasSheet = "http://www.simantics.org/Spreadsheet-1.2/HasSheet";\r
+ public static final String Headers = "http://www.simantics.org/Spreadsheet-1.2/Headers";\r
+ public static final String Headers_columnLabels = "http://www.simantics.org/Spreadsheet-1.2/Headers/columnLabels";\r
+ public static final String Headers_columnLabels_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Headers/columnLabels/Inverse";\r
+ public static final String Headers_columnWidths = "http://www.simantics.org/Spreadsheet-1.2/Headers/columnWidths";\r
+ public static final String Headers_columnWidths_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Headers/columnWidths/Inverse";\r
+ public static final String Headers_rowHeights = "http://www.simantics.org/Spreadsheet-1.2/Headers/rowHeights";\r
+ public static final String Headers_rowHeights_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Headers/rowHeights/Inverse";\r
+ public static final String Headers_rowLabels = "http://www.simantics.org/Spreadsheet-1.2/Headers/rowLabels";\r
+ public static final String Headers_rowLabels_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Headers/rowLabels/Inverse";\r
+ public static final String InitialCondition = "http://www.simantics.org/Spreadsheet-1.2/InitialCondition";\r
+ public static final String InitialCondition_ConditionOf = "http://www.simantics.org/Spreadsheet-1.2/InitialCondition/ConditionOf";\r
+ public static final String InitialCondition_ConditionOf_Inverse = "http://www.simantics.org/Spreadsheet-1.2/InitialCondition/ConditionOf/Inverse";\r
+ public static final String InitialCondition_DefaultConditionOf = "http://www.simantics.org/Spreadsheet-1.2/InitialCondition/DefaultConditionOf";\r
+ public static final String InitialCondition_bytes = "http://www.simantics.org/Spreadsheet-1.2/InitialCondition/bytes";\r
+ public static final String InitialCondition_bytes_Inverse = "http://www.simantics.org/Spreadsheet-1.2/InitialCondition/bytes/Inverse";\r
+ public static final String IsSheetOf = "http://www.simantics.org/Spreadsheet-1.2/IsSheetOf";\r
+ public static final String Line = "http://www.simantics.org/Spreadsheet-1.2/Line";\r
+ public static final String LineContent = "http://www.simantics.org/Spreadsheet-1.2/LineContent";\r
+ public static final String LineNode = "http://www.simantics.org/Spreadsheet-1.2/LineNode";\r
+ public static final String LineNode_keys = "http://www.simantics.org/Spreadsheet-1.2/LineNode/keys";\r
+ public static final String LineNode_keys_Inverse = "http://www.simantics.org/Spreadsheet-1.2/LineNode/keys/Inverse";\r
+ public static final String Line_content = "http://www.simantics.org/Spreadsheet-1.2/Line/content";\r
+ public static final String Line_content_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Line/content/Inverse";\r
+ public static final String Lines = "http://www.simantics.org/Spreadsheet-1.2/Lines";\r
+ public static final String MicrosoftExcelDocument = "http://www.simantics.org/Spreadsheet-1.2/MicrosoftExcelDocument";\r
+ public static final String MicrosoftExcelDocumentData = "http://www.simantics.org/Spreadsheet-1.2/MicrosoftExcelDocumentData";\r
+ public static final String ModelSourceContribution = "http://www.simantics.org/Spreadsheet-1.2/ModelSourceContribution";\r
+ public static final String Range = "http://www.simantics.org/Spreadsheet-1.2/Range";\r
+ public static final String Range_heightBound = "http://www.simantics.org/Spreadsheet-1.2/Range/heightBound";\r
+ public static final String Range_heightBound_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Range/heightBound/Inverse";\r
+ public static final String Range_location = "http://www.simantics.org/Spreadsheet-1.2/Range/location";\r
+ public static final String Range_location_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Range/location/Inverse";\r
+ public static final String Range_widthBound = "http://www.simantics.org/Spreadsheet-1.2/Range/widthBound";\r
+ public static final String Range_widthBound_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Range/widthBound/Inverse";\r
+ public static final String Run = "http://www.simantics.org/Spreadsheet-1.2/Run";\r
+ public static final String SCLCell = "http://www.simantics.org/Spreadsheet-1.2/SCLCell";\r
+ public static final String SCLCell_Expression = "http://www.simantics.org/Spreadsheet-1.2/SCLCell/Expression";\r
+ public static final String SCLCell_Expression_Inverse = "http://www.simantics.org/Spreadsheet-1.2/SCLCell/Expression/Inverse";\r
+ public static final String SCLMain = "http://www.simantics.org/Spreadsheet-1.2/SCLMain";\r
+ public static final String SCLValue = "http://www.simantics.org/Spreadsheet-1.2/SCLValue";\r
+ public static final String SheetSourceContribution = "http://www.simantics.org/Spreadsheet-1.2/SheetSourceContribution";\r
+ public static final String SourceContribution = "http://www.simantics.org/Spreadsheet-1.2/SourceContribution";\r
+ public static final String SourceContribution_function = "http://www.simantics.org/Spreadsheet-1.2/SourceContribution/function";\r
+ public static final String SourceContribution_function_Inverse = "http://www.simantics.org/Spreadsheet-1.2/SourceContribution/function/Inverse";\r
+ public static final String SourceContribution_labeler = "http://www.simantics.org/Spreadsheet-1.2/SourceContribution/labeler";\r
+ public static final String SourceContribution_labeler_Inverse = "http://www.simantics.org/Spreadsheet-1.2/SourceContribution/labeler/Inverse";\r
+ public static final String Spreadsheet = "http://www.simantics.org/Spreadsheet-1.2/Spreadsheet";\r
+ public static final String SpreadsheetElement = "http://www.simantics.org/Spreadsheet-1.2/SpreadsheetElement";\r
+ public static final String StringArrayCell = "http://www.simantics.org/Spreadsheet-1.2/StringArrayCell";\r
+ public static final String StringArrayCell_HasStringArray = "http://www.simantics.org/Spreadsheet-1.2/StringArrayCell/HasStringArray";\r
+ public static final String StringArrayCell_HasStringArray_Inverse = "http://www.simantics.org/Spreadsheet-1.2/StringArrayCell/HasStringArray/Inverse";\r
+ public static final String StringArrayCell_HasWidth = "http://www.simantics.org/Spreadsheet-1.2/StringArrayCell/HasWidth";\r
+ public static final String StringArrayCell_HasWidth_Inverse = "http://www.simantics.org/Spreadsheet-1.2/StringArrayCell/HasWidth/Inverse";\r
+ public static final String StringArrayRange = "http://www.simantics.org/Spreadsheet-1.2/StringArrayRange";\r
+ public static final String StringArrayRange_array = "http://www.simantics.org/Spreadsheet-1.2/StringArrayRange/array";\r
+ public static final String StringArrayRange_array_Inverse = "http://www.simantics.org/Spreadsheet-1.2/StringArrayRange/array/Inverse";\r
+ public static final String Style = "http://www.simantics.org/Spreadsheet-1.2/Style";\r
+ public static final String Style_id = "http://www.simantics.org/Spreadsheet-1.2/Style/id";\r
+ public static final String Style_id_Inverse = "http://www.simantics.org/Spreadsheet-1.2/Style/id/Inverse";\r
+ public static final String TextCell = "http://www.simantics.org/Spreadsheet-1.2/TextCell";\r
+ public static final String cellEditor = "http://www.simantics.org/Spreadsheet-1.2/cellEditor";\r
+ public static final String cellEditor_Inverse = "http://www.simantics.org/Spreadsheet-1.2/cellEditor/Inverse";\r
+ public static final String scl = "http://www.simantics.org/Spreadsheet-1.2/scl";\r
+ public static final String sclValue = "http://www.simantics.org/Spreadsheet-1.2/sclValue";\r
+ public static final String session = "http://www.simantics.org/Spreadsheet-1.2/session";\r
+ public static final String session_Inverse = "http://www.simantics.org/Spreadsheet-1.2/session/Inverse";\r
+ }\r
+ \r
+ public static Resource getResourceOrNull(ReadGraph graph, String uri) {\r
+ try {\r
+ return graph.getResource(uri);\r
+ } catch(DatabaseException e) {\r
+ System.err.println(e.getMessage());\r
+ return null;\r
+ }\r
+ }\r
+ \r
+ public SpreadsheetResource(ReadGraph graph) {\r
+ Attribute = getResourceOrNull(graph, URIs.Attribute);\r
+ Book = getResourceOrNull(graph, URIs.Book);\r
+ Book_HasDefaultInitialCondition = getResourceOrNull(graph, URIs.Book_HasDefaultInitialCondition);\r
+ BrowseContext = getResourceOrNull(graph, URIs.BrowseContext);\r
+ Cell = getResourceOrNull(graph, URIs.Cell);\r
+ Cell_HasStyle = getResourceOrNull(graph, URIs.Cell_HasStyle);\r
+ Cell_StyleOf = getResourceOrNull(graph, URIs.Cell_StyleOf);\r
+ Cell_align = getResourceOrNull(graph, URIs.Cell_align);\r
+ Cell_align_Inverse = getResourceOrNull(graph, URIs.Cell_align_Inverse);\r
+ Cell_background = getResourceOrNull(graph, URIs.Cell_background);\r
+ Cell_background_Inverse = getResourceOrNull(graph, URIs.Cell_background_Inverse);\r
+ Cell_border = getResourceOrNull(graph, URIs.Cell_border);\r
+ Cell_border_Inverse = getResourceOrNull(graph, URIs.Cell_border_Inverse);\r
+ Cell_columnSpan = getResourceOrNull(graph, URIs.Cell_columnSpan);\r
+ Cell_columnSpan_Inverse = getResourceOrNull(graph, URIs.Cell_columnSpan_Inverse);\r
+ Cell_content = getResourceOrNull(graph, URIs.Cell_content);\r
+ Cell_content_Inverse = getResourceOrNull(graph, URIs.Cell_content_Inverse);\r
+ Cell_editable = getResourceOrNull(graph, URIs.Cell_editable);\r
+ Cell_editable_Inverse = getResourceOrNull(graph, URIs.Cell_editable_Inverse);\r
+ Cell_font = getResourceOrNull(graph, URIs.Cell_font);\r
+ Cell_font_Inverse = getResourceOrNull(graph, URIs.Cell_font_Inverse);\r
+ Cell_foreground = getResourceOrNull(graph, URIs.Cell_foreground);\r
+ Cell_foreground_Inverse = getResourceOrNull(graph, URIs.Cell_foreground_Inverse);\r
+ Cell_formatIndex = getResourceOrNull(graph, URIs.Cell_formatIndex);\r
+ Cell_formatIndex_Inverse = getResourceOrNull(graph, URIs.Cell_formatIndex_Inverse);\r
+ Cell_formatString = getResourceOrNull(graph, URIs.Cell_formatString);\r
+ Cell_formatString_Inverse = getResourceOrNull(graph, URIs.Cell_formatString_Inverse);\r
+ Cell_label = getResourceOrNull(graph, URIs.Cell_label);\r
+ Cell_label_Inverse = getResourceOrNull(graph, URIs.Cell_label_Inverse);\r
+ Cell_locked = getResourceOrNull(graph, URIs.Cell_locked);\r
+ Cell_locked_Inverse = getResourceOrNull(graph, URIs.Cell_locked_Inverse);\r
+ Cell_rowSpan = getResourceOrNull(graph, URIs.Cell_rowSpan);\r
+ Cell_rowSpan_Inverse = getResourceOrNull(graph, URIs.Cell_rowSpan_Inverse);\r
+ Cell_style = getResourceOrNull(graph, URIs.Cell_style);\r
+ Cell_style_Inverse = getResourceOrNull(graph, URIs.Cell_style_Inverse);\r
+ CompositeTemplate = getResourceOrNull(graph, URIs.CompositeTemplate);\r
+ Dimensions = getResourceOrNull(graph, URIs.Dimensions);\r
+ Dimensions_columnCount = getResourceOrNull(graph, URIs.Dimensions_columnCount);\r
+ Dimensions_columnCount_Inverse = getResourceOrNull(graph, URIs.Dimensions_columnCount_Inverse);\r
+ Dimensions_fitColumns = getResourceOrNull(graph, URIs.Dimensions_fitColumns);\r
+ Dimensions_fitColumns_Inverse = getResourceOrNull(graph, URIs.Dimensions_fitColumns_Inverse);\r
+ Dimensions_fitRows = getResourceOrNull(graph, URIs.Dimensions_fitRows);\r
+ Dimensions_fitRows_Inverse = getResourceOrNull(graph, URIs.Dimensions_fitRows_Inverse);\r
+ Dimensions_rowCount = getResourceOrNull(graph, URIs.Dimensions_rowCount);\r
+ Dimensions_rowCount_Inverse = getResourceOrNull(graph, URIs.Dimensions_rowCount_Inverse);\r
+ DoubleArrayCell = getResourceOrNull(graph, URIs.DoubleArrayCell);\r
+ DoubleArrayCell_HasDoubleArray = getResourceOrNull(graph, URIs.DoubleArrayCell_HasDoubleArray);\r
+ DoubleArrayCell_HasDoubleArray_Inverse = getResourceOrNull(graph, URIs.DoubleArrayCell_HasDoubleArray_Inverse);\r
+ DoubleArrayCell_HasWidth = getResourceOrNull(graph, URIs.DoubleArrayCell_HasWidth);\r
+ DoubleArrayCell_HasWidth_Inverse = getResourceOrNull(graph, URIs.DoubleArrayCell_HasWidth_Inverse);\r
+ DoubleArrayRange = getResourceOrNull(graph, URIs.DoubleArrayRange);\r
+ DoubleArrayRange_array = getResourceOrNull(graph, URIs.DoubleArrayRange_array);\r
+ DoubleArrayRange_array_Inverse = getResourceOrNull(graph, URIs.DoubleArrayRange_array_Inverse);\r
+ Element = getResourceOrNull(graph, URIs.Element);\r
+ Element_immutable = getResourceOrNull(graph, URIs.Element_immutable);\r
+ Element_immutable_Inverse = getResourceOrNull(graph, URIs.Element_immutable_Inverse);\r
+ ExcelCell = getResourceOrNull(graph, URIs.ExcelCell);\r
+ Experiment = getResourceOrNull(graph, URIs.Experiment);\r
+ ExpressionRange = getResourceOrNull(graph, URIs.ExpressionRange);\r
+ ExpressionRange_cells = getResourceOrNull(graph, URIs.ExpressionRange_cells);\r
+ ExpressionRange_cells_Inverse = getResourceOrNull(graph, URIs.ExpressionRange_cells_Inverse);\r
+ ForCompositeTemplate = getResourceOrNull(graph, URIs.ForCompositeTemplate);\r
+ ForCompositeTemplate_Inverse = getResourceOrNull(graph, URIs.ForCompositeTemplate_Inverse);\r
+ Functions = getResourceOrNull(graph, URIs.Functions);\r
+ Functions_cellLabel = getResourceOrNull(graph, URIs.Functions_cellLabel);\r
+ Functions_contentDisplayValueAccessor = getResourceOrNull(graph, URIs.Functions_contentDisplayValueAccessor);\r
+ Functions_contentValueAccessor = getResourceOrNull(graph, URIs.Functions_contentValueAccessor);\r
+ Functions_defaultLineCells = getResourceOrNull(graph, URIs.Functions_defaultLineCells);\r
+ Functions_defaultSheetCellEditor = getResourceOrNull(graph, URIs.Functions_defaultSheetCellEditor);\r
+ Functions_doubleArrayChildren = getResourceOrNull(graph, URIs.Functions_doubleArrayChildren);\r
+ Functions_lineNodeKeys = getResourceOrNull(graph, URIs.Functions_lineNodeKeys);\r
+ Functions_queryRangeChildren = getResourceOrNull(graph, URIs.Functions_queryRangeChildren);\r
+ Functions_sclValue = getResourceOrNull(graph, URIs.Functions_sclValue);\r
+ Functions_sheetRunDomainChildren = getResourceOrNull(graph, URIs.Functions_sheetRunDomainChildren);\r
+ Functions_spreadsheetChildren = getResourceOrNull(graph, URIs.Functions_spreadsheetChildren);\r
+ Functions_spreadsheetInput = getResourceOrNull(graph, URIs.Functions_spreadsheetInput);\r
+ Functions_spreadsheetLinesChildren = getResourceOrNull(graph, URIs.Functions_spreadsheetLinesChildren);\r
+ Functions_spreadsheetRunInput = getResourceOrNull(graph, URIs.Functions_spreadsheetRunInput);\r
+ Functions_spreadsheetSession = getResourceOrNull(graph, URIs.Functions_spreadsheetSession);\r
+ Functions_stringArrayChildren = getResourceOrNull(graph, URIs.Functions_stringArrayChildren);\r
+ Functions_textCellEditor = getResourceOrNull(graph, URIs.Functions_textCellEditor);\r
+ Functions_variableCellEditor = getResourceOrNull(graph, URIs.Functions_variableCellEditor);\r
+ HasInitialCondition = getResourceOrNull(graph, URIs.HasInitialCondition);\r
+ HasInitialCondition_Inverse = getResourceOrNull(graph, URIs.HasInitialCondition_Inverse);\r
+ HasLocation = getResourceOrNull(graph, URIs.HasLocation);\r
+ HasLocation_Inverse = getResourceOrNull(graph, URIs.HasLocation_Inverse);\r
+ HasMicrosoftExcelDocumentData = getResourceOrNull(graph, URIs.HasMicrosoftExcelDocumentData);\r
+ HasMicrosoftExcelDocumentData_Inverse = getResourceOrNull(graph, URIs.HasMicrosoftExcelDocumentData_Inverse);\r
+ HasRVI = getResourceOrNull(graph, URIs.HasRVI);\r
+ HasRVI_Inverse = getResourceOrNull(graph, URIs.HasRVI_Inverse);\r
+ HasSheet = getResourceOrNull(graph, URIs.HasSheet);\r
+ Headers = getResourceOrNull(graph, URIs.Headers);\r
+ Headers_columnLabels = getResourceOrNull(graph, URIs.Headers_columnLabels);\r
+ Headers_columnLabels_Inverse = getResourceOrNull(graph, URIs.Headers_columnLabels_Inverse);\r
+ Headers_columnWidths = getResourceOrNull(graph, URIs.Headers_columnWidths);\r
+ Headers_columnWidths_Inverse = getResourceOrNull(graph, URIs.Headers_columnWidths_Inverse);\r
+ Headers_rowHeights = getResourceOrNull(graph, URIs.Headers_rowHeights);\r
+ Headers_rowHeights_Inverse = getResourceOrNull(graph, URIs.Headers_rowHeights_Inverse);\r
+ Headers_rowLabels = getResourceOrNull(graph, URIs.Headers_rowLabels);\r
+ Headers_rowLabels_Inverse = getResourceOrNull(graph, URIs.Headers_rowLabels_Inverse);\r
+ InitialCondition = getResourceOrNull(graph, URIs.InitialCondition);\r
+ InitialCondition_ConditionOf = getResourceOrNull(graph, URIs.InitialCondition_ConditionOf);\r
+ InitialCondition_ConditionOf_Inverse = getResourceOrNull(graph, URIs.InitialCondition_ConditionOf_Inverse);\r
+ InitialCondition_DefaultConditionOf = getResourceOrNull(graph, URIs.InitialCondition_DefaultConditionOf);\r
+ InitialCondition_bytes = getResourceOrNull(graph, URIs.InitialCondition_bytes);\r
+ InitialCondition_bytes_Inverse = getResourceOrNull(graph, URIs.InitialCondition_bytes_Inverse);\r
+ IsSheetOf = getResourceOrNull(graph, URIs.IsSheetOf);\r
+ Line = getResourceOrNull(graph, URIs.Line);\r
+ LineContent = getResourceOrNull(graph, URIs.LineContent);\r
+ LineNode = getResourceOrNull(graph, URIs.LineNode);\r
+ LineNode_keys = getResourceOrNull(graph, URIs.LineNode_keys);\r
+ LineNode_keys_Inverse = getResourceOrNull(graph, URIs.LineNode_keys_Inverse);\r
+ Line_content = getResourceOrNull(graph, URIs.Line_content);\r
+ Line_content_Inverse = getResourceOrNull(graph, URIs.Line_content_Inverse);\r
+ Lines = getResourceOrNull(graph, URIs.Lines);\r
+ MicrosoftExcelDocument = getResourceOrNull(graph, URIs.MicrosoftExcelDocument);\r
+ MicrosoftExcelDocumentData = getResourceOrNull(graph, URIs.MicrosoftExcelDocumentData);\r
+ ModelSourceContribution = getResourceOrNull(graph, URIs.ModelSourceContribution);\r
+ Range = getResourceOrNull(graph, URIs.Range);\r
+ Range_heightBound = getResourceOrNull(graph, URIs.Range_heightBound);\r
+ Range_heightBound_Inverse = getResourceOrNull(graph, URIs.Range_heightBound_Inverse);\r
+ Range_location = getResourceOrNull(graph, URIs.Range_location);\r
+ Range_location_Inverse = getResourceOrNull(graph, URIs.Range_location_Inverse);\r
+ Range_widthBound = getResourceOrNull(graph, URIs.Range_widthBound);\r
+ Range_widthBound_Inverse = getResourceOrNull(graph, URIs.Range_widthBound_Inverse);\r
+ Run = getResourceOrNull(graph, URIs.Run);\r
+ SCLCell = getResourceOrNull(graph, URIs.SCLCell);\r
+ SCLCell_Expression = getResourceOrNull(graph, URIs.SCLCell_Expression);\r
+ SCLCell_Expression_Inverse = getResourceOrNull(graph, URIs.SCLCell_Expression_Inverse);\r
+ SCLMain = getResourceOrNull(graph, URIs.SCLMain);\r
+ SCLValue = getResourceOrNull(graph, URIs.SCLValue);\r
+ SheetSourceContribution = getResourceOrNull(graph, URIs.SheetSourceContribution);\r
+ SourceContribution = getResourceOrNull(graph, URIs.SourceContribution);\r
+ SourceContribution_function = getResourceOrNull(graph, URIs.SourceContribution_function);\r
+ SourceContribution_function_Inverse = getResourceOrNull(graph, URIs.SourceContribution_function_Inverse);\r
+ SourceContribution_labeler = getResourceOrNull(graph, URIs.SourceContribution_labeler);\r
+ SourceContribution_labeler_Inverse = getResourceOrNull(graph, URIs.SourceContribution_labeler_Inverse);\r
+ Spreadsheet = getResourceOrNull(graph, URIs.Spreadsheet);\r
+ SpreadsheetElement = getResourceOrNull(graph, URIs.SpreadsheetElement);\r
+ StringArrayCell = getResourceOrNull(graph, URIs.StringArrayCell);\r
+ StringArrayCell_HasStringArray = getResourceOrNull(graph, URIs.StringArrayCell_HasStringArray);\r
+ StringArrayCell_HasStringArray_Inverse = getResourceOrNull(graph, URIs.StringArrayCell_HasStringArray_Inverse);\r
+ StringArrayCell_HasWidth = getResourceOrNull(graph, URIs.StringArrayCell_HasWidth);\r
+ StringArrayCell_HasWidth_Inverse = getResourceOrNull(graph, URIs.StringArrayCell_HasWidth_Inverse);\r
+ StringArrayRange = getResourceOrNull(graph, URIs.StringArrayRange);\r
+ StringArrayRange_array = getResourceOrNull(graph, URIs.StringArrayRange_array);\r
+ StringArrayRange_array_Inverse = getResourceOrNull(graph, URIs.StringArrayRange_array_Inverse);\r
+ Style = getResourceOrNull(graph, URIs.Style);\r
+ Style_id = getResourceOrNull(graph, URIs.Style_id);\r
+ Style_id_Inverse = getResourceOrNull(graph, URIs.Style_id_Inverse);\r
+ TextCell = getResourceOrNull(graph, URIs.TextCell);\r
+ cellEditor = getResourceOrNull(graph, URIs.cellEditor);\r
+ cellEditor_Inverse = getResourceOrNull(graph, URIs.cellEditor_Inverse);\r
+ scl = getResourceOrNull(graph, URIs.scl);\r
+ sclValue = getResourceOrNull(graph, URIs.sclValue);\r
+ session = getResourceOrNull(graph, URIs.session);\r
+ session_Inverse = getResourceOrNull(graph, URIs.session_Inverse);\r
+ }\r
+ \r
+ public static SpreadsheetResource getInstance(ReadGraph graph) {\r
+ Session session = graph.getSession();\r
+ SpreadsheetResource ret = session.peekService(SpreadsheetResource.class);\r
+ if(ret == null) {\r
+ QueryControl qc = graph.getService(QueryControl.class);\r
+ ret = new SpreadsheetResource(qc.getIndependentGraph(graph));\r
+ session.registerService(SpreadsheetResource.class, ret);\r
+ }\r
+ return ret;\r
+ }\r
+ \r
+ public static SpreadsheetResource getInstance(RequestProcessor session) throws DatabaseException {\r
+ SpreadsheetResource ret = session.peekService(SpreadsheetResource.class);\r
+ if(ret == null) {\r
+ ret = session.syncRequest(new Read<SpreadsheetResource>() {\r
+ public SpreadsheetResource perform(ReadGraph graph) throws DatabaseException {\r
+ QueryControl qc = graph.getService(QueryControl.class);\r
+ return new SpreadsheetResource(qc.getIndependentGraph(graph));\r
+ }\r
+ });\r
+ session.registerService(SpreadsheetResource.class, ret);\r
+ }\r
+ return ret;\r
+ }\r
+ \r
+}\r
+\r