taskjuggler 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/benchmarks/UTF-8-Strings.rb +58 -0
- data/data/css/tjmanual.css +52 -0
- data/data/css/tjreport.css +195 -0
- data/data/icons/details.png +0 -0
- data/data/icons/flag-green.png +0 -0
- data/data/icons/flag-red.png +0 -0
- data/data/icons/flag-yellow.png +0 -0
- data/data/icons/resource.png +0 -0
- data/data/icons/resourcegroup.png +0 -0
- data/data/icons/task.png +0 -0
- data/data/icons/taskgroup.png +0 -0
- data/data/icons/trend-down.png +0 -0
- data/data/icons/trend-flat.png +0 -0
- data/data/icons/trend-up.png +0 -0
- data/data/scripts/wz_tooltip.js +1301 -0
- data/doc/classes/AppConfig.html +298 -230
- data/doc/classes/Arguments.html +8 -8
- data/doc/classes/Object.html +7 -7
- data/doc/classes/String.html +89 -89
- data/doc/classes/TaskJuggler.html +396 -264
- data/doc/classes/TaskJuggler/Account.html +18 -18
- data/doc/classes/TaskJuggler/AccountAttribute.html +26 -26
- data/doc/classes/TaskJuggler/AccountScenario.html +12 -12
- data/doc/classes/TaskJuggler/Allocation.html +30 -30
- data/doc/classes/TaskJuggler/AllocationAttribute.html +26 -26
- data/doc/classes/TaskJuggler/AttributeBase.html +227 -115
- data/doc/classes/TaskJuggler/AttributeDefinition.html +6 -6
- data/doc/classes/TaskJuggler/BatchProcessor.html +117 -83
- data/doc/classes/TaskJuggler/Booking.html +18 -18
- data/doc/classes/TaskJuggler/BookingListAttribute.html +26 -26
- data/doc/classes/TaskJuggler/BooleanAttribute.html +26 -26
- data/doc/classes/TaskJuggler/CSVFile.html +24 -24
- data/doc/classes/TaskJuggler/CellSettingPattern.html +201 -0
- data/doc/classes/TaskJuggler/CellSettingPatternList.html +253 -0
- data/doc/classes/TaskJuggler/Charge.html +18 -18
- data/doc/classes/TaskJuggler/ChargeListAttribute.html +20 -20
- data/doc/classes/TaskJuggler/ChargeSet.html +37 -37
- data/doc/classes/TaskJuggler/ChargeSetListAttribute.html +26 -26
- data/doc/classes/TaskJuggler/ColumnListAttribute.html +20 -20
- data/doc/classes/TaskJuggler/ColumnTable.html +40 -40
- data/doc/classes/TaskJuggler/DateAttribute.html +54 -15
- data/doc/classes/TaskJuggler/DefinitionListAttribute.html +10 -10
- data/doc/classes/TaskJuggler/DependencyListAttribute.html +47 -47
- data/doc/classes/TaskJuggler/DurationAttribute.html +30 -30
- data/doc/classes/TaskJuggler/FixnumAttribute.html +20 -20
- data/doc/classes/TaskJuggler/FlagListAttribute.html +43 -43
- data/doc/classes/TaskJuggler/FloatAttribute.html +30 -30
- data/doc/classes/TaskJuggler/FormatListAttribute.html +21 -21
- data/doc/classes/TaskJuggler/GanttChart.html +48 -48
- data/doc/classes/TaskJuggler/GanttContainer.html +42 -42
- data/doc/classes/TaskJuggler/GanttHeader.html +12 -12
- data/doc/classes/TaskJuggler/GanttHeaderScaleItem.html +12 -12
- data/doc/classes/TaskJuggler/GanttLine.html +24 -24
- data/doc/classes/TaskJuggler/GanttLoadStack.html +18 -18
- data/doc/classes/TaskJuggler/GanttMilestone.html +42 -42
- data/doc/classes/TaskJuggler/GanttRouter.html +24 -24
- data/doc/classes/TaskJuggler/GanttTaskBar.html +42 -42
- data/doc/classes/TaskJuggler/HTMLDocument.html +13 -13
- data/doc/classes/TaskJuggler/HTMLGraphics.html +12 -12
- data/doc/classes/TaskJuggler/Interval.html +57 -57
- data/doc/classes/TaskJuggler/IntervalListAttribute.html +47 -47
- data/doc/classes/TaskJuggler/JobInfo.html +68 -12
- data/doc/classes/TaskJuggler/Journal.html +266 -20
- data/doc/classes/TaskJuggler/JournalEntry.html +79 -23
- data/doc/classes/TaskJuggler/JournalEntryList.html +454 -0
- data/doc/classes/TaskJuggler/KeywordArray.html +10 -10
- data/doc/classes/TaskJuggler/KeywordDocumentation.html +171 -170
- data/doc/classes/TaskJuggler/Limits.html +36 -36
- data/doc/classes/TaskJuggler/Limits/Limit.html +30 -30
- data/doc/classes/TaskJuggler/LimitsAttribute.html +40 -40
- data/doc/classes/TaskJuggler/ListAttributeBase.html +20 -20
- data/doc/classes/TaskJuggler/Log.html +145 -107
- data/doc/classes/TaskJuggler/LogicalAttribute.html +65 -36
- data/doc/classes/TaskJuggler/LogicalExpression.html +61 -24
- data/doc/classes/TaskJuggler/LogicalExpressionAttribute.html +20 -20
- data/doc/classes/TaskJuggler/LogicalFlag.html +31 -51
- data/doc/classes/TaskJuggler/LogicalFunction.html +64 -53
- data/doc/classes/TaskJuggler/LogicalOperation.html +103 -55
- data/doc/classes/TaskJuggler/Macro.html +6 -6
- data/doc/classes/TaskJuggler/MacroParser.html +36 -36
- data/doc/classes/TaskJuggler/MacroTable.html +37 -37
- data/doc/classes/TaskJuggler/Message.html +12 -12
- data/doc/classes/TaskJuggler/MessageHandler.html +32 -20
- data/doc/classes/TaskJuggler/Navigator.html +110 -46
- data/doc/classes/TaskJuggler/NavigatorElement.html +449 -0
- data/doc/classes/TaskJuggler/OnShiftCache.html +24 -24
- data/doc/classes/TaskJuggler/Project.html +1158 -893
- data/doc/classes/TaskJuggler/ProjectFileParser.html +94 -91
- data/doc/classes/TaskJuggler/PropertyAttribute.html +20 -20
- data/doc/classes/TaskJuggler/PropertyList.html +225 -155
- data/doc/classes/TaskJuggler/PropertySet.html +375 -332
- data/doc/classes/TaskJuggler/PropertyTreeNode.html +750 -510
- data/doc/classes/TaskJuggler/Query.html +404 -139
- data/doc/classes/TaskJuggler/{RTPNavigator.html → RTFNavigator.html} +57 -56
- data/doc/classes/TaskJuggler/RTFQuery.html +343 -0
- data/doc/classes/TaskJuggler/{RTPReport.html → RTFReport.html} +70 -67
- data/doc/classes/TaskJuggler/RealFormat.html +18 -18
- data/doc/classes/TaskJuggler/RealFormatAttribute.html +10 -10
- data/doc/classes/TaskJuggler/ReferenceAttribute.html +107 -40
- data/doc/classes/TaskJuggler/RemoteServiceManager.html +335 -0
- data/doc/classes/TaskJuggler/Report.html +66 -64
- data/doc/classes/TaskJuggler/ReportBase.html +112 -123
- data/doc/classes/TaskJuggler/ReportContext.html +43 -38
- data/doc/classes/TaskJuggler/ReportServer.html +320 -0
- data/doc/classes/TaskJuggler/ReportTable.html +42 -42
- data/doc/classes/TaskJuggler/ReportTableCell.html +221 -129
- data/doc/classes/TaskJuggler/ReportTableColumn.html +27 -27
- data/doc/classes/TaskJuggler/ReportTableLegend.html +24 -24
- data/doc/classes/TaskJuggler/ReportTableLine.html +126 -80
- data/doc/classes/TaskJuggler/Resource.html +12 -12
- data/doc/classes/TaskJuggler/ResourceListAttribute.html +82 -47
- data/doc/classes/TaskJuggler/ResourceListRE.html +43 -39
- data/doc/classes/TaskJuggler/ResourceScenario.html +413 -321
- data/doc/classes/TaskJuggler/RichText.html +64 -248
- data/doc/classes/TaskJuggler/RichTextAttribute.html +94 -30
- data/doc/classes/TaskJuggler/RichTextDocument.html +87 -85
- data/doc/classes/TaskJuggler/RichTextElement.html +456 -363
- data/doc/classes/TaskJuggler/RichTextException.html +13 -13
- data/doc/classes/TaskJuggler/{RichTextProtocolExample.html → RichTextFunctionExample.html} +64 -63
- data/doc/classes/TaskJuggler/{RichTextProtocolHandler.html → RichTextFunctionHandler.html} +42 -36
- data/doc/classes/TaskJuggler/RichTextIntermediate.html +563 -0
- data/doc/classes/TaskJuggler/RichTextParser.html +54 -51
- data/doc/classes/TaskJuggler/RichTextScanner.html +94 -92
- data/doc/classes/TaskJuggler/RichTextSnip.html +96 -60
- data/doc/classes/TaskJuggler/RichTextSyntaxRules.html +369 -227
- data/doc/classes/TaskJuggler/Scenario.html +6 -6
- data/doc/classes/TaskJuggler/ScenarioData.html +37 -37
- data/doc/classes/TaskJuggler/ScenarioListAttribute.html +31 -31
- data/doc/classes/TaskJuggler/Scoreboard.html +66 -66
- data/doc/classes/TaskJuggler/Shift.html +18 -18
- data/doc/classes/TaskJuggler/ShiftAssignment.html +54 -54
- data/doc/classes/TaskJuggler/ShiftAssignments.html +78 -78
- data/doc/classes/TaskJuggler/ShiftAssignmentsAttribute.html +40 -40
- data/doc/classes/TaskJuggler/ShiftScenario.html +24 -24
- data/doc/classes/TaskJuggler/SortListAttribute.html +22 -22
- data/doc/classes/TaskJuggler/SourceFileInfo.html +12 -12
- data/doc/classes/TaskJuggler/StringAttribute.html +30 -30
- data/doc/classes/TaskJuggler/SymbolAttribute.html +20 -20
- data/doc/classes/TaskJuggler/SyntaxReference.html +42 -42
- data/doc/classes/TaskJuggler/TOCEntry.html +12 -12
- data/doc/classes/TaskJuggler/TSResourceRecord.html +197 -0
- data/doc/classes/TaskJuggler/TSTaskRecord.html +215 -0
- data/doc/classes/TaskJuggler/TableColumnDefinition.html +64 -43
- data/doc/classes/TaskJuggler/TableOfContents.html +18 -18
- data/doc/classes/TaskJuggler/TableReport.html +447 -468
- data/doc/classes/TaskJuggler/Task.html +12 -12
- data/doc/classes/TaskJuggler/TaskDependency.html +12 -12
- data/doc/classes/TaskJuggler/TaskListAttribute.html +47 -47
- data/doc/classes/TaskJuggler/TaskListRE.html +43 -39
- data/doc/classes/TaskJuggler/TaskScenario.html +529 -282
- data/doc/classes/TaskJuggler/TextParser.html +215 -194
- data/doc/classes/TaskJuggler/TextParser/Pattern.html +97 -97
- data/doc/classes/TaskJuggler/TextParser/Rule.html +84 -84
- data/doc/classes/TaskJuggler/TextParser/StackElement.html +16 -15
- data/doc/classes/TaskJuggler/TextParser/TextParserResultArray.html +12 -12
- data/doc/classes/TaskJuggler/TextParser/TokenDoc.html +6 -6
- data/doc/classes/TaskJuggler/TextReport.html +77 -74
- data/doc/classes/TaskJuggler/TextScanner.html +294 -281
- data/doc/classes/TaskJuggler/TextScanner/BufferStreamHandle.html +70 -70
- data/doc/classes/TaskJuggler/TextScanner/FileStreamHandle.html +59 -60
- data/doc/classes/TaskJuggler/TextScanner/StreamHandle.html +12 -12
- data/doc/classes/TaskJuggler/TimeSheetReport.html +406 -0
- data/doc/classes/TaskJuggler/TjException.html +6 -6
- data/doc/classes/TaskJuggler/TjTime.html +522 -513
- data/doc/classes/TaskJuggler/TjpExample.html +25 -25
- data/doc/classes/TaskJuggler/TjpExportRE.html +21 -24
- data/doc/classes/TaskJuggler/TjpSyntaxRules.html +6177 -4318
- data/doc/classes/TaskJuggler/UserManual.html +212 -213
- data/doc/classes/TaskJuggler/WorkingHours.html +49 -49
- data/doc/classes/TaskJuggler/WorkingHoursAttribute.html +53 -53
- data/doc/classes/TaskJuggler/XMLBlob.html +21 -21
- data/doc/classes/TaskJuggler/XMLComment.html +21 -21
- data/doc/classes/TaskJuggler/XMLDocument.html +27 -26
- data/doc/classes/TaskJuggler/XMLElement.html +86 -50
- data/doc/classes/TaskJuggler/XMLNamedText.html +11 -11
- data/doc/classes/TaskJuggler/XMLText.html +36 -36
- data/doc/files/COPYING.html +1 -1
- data/doc/files/README.html +1 -1
- data/doc/files/lib/AccountScenario_rb.html +3 -2
- data/doc/files/lib/Account_rb.html +3 -2
- data/doc/files/lib/Allocation_rb.html +3 -2
- data/doc/files/lib/AppConfig_rb.html +5 -2
- data/doc/files/lib/AttributeBase_rb.html +3 -2
- data/doc/files/lib/AttributeDefinition_rb.html +3 -2
- data/doc/files/lib/Attributes_rb.html +3 -2
- data/doc/files/lib/BatchProcessor_rb.html +4 -3
- data/doc/files/lib/Booking_rb.html +3 -2
- data/doc/files/lib/ChargeSet_rb.html +3 -2
- data/doc/files/lib/Charge_rb.html +3 -2
- data/doc/files/lib/HTMLDocument_rb.html +3 -2
- data/doc/files/lib/Interval_rb.html +3 -2
- data/doc/files/lib/Journal_rb.html +4 -3
- data/doc/files/lib/KeywordArray_rb.html +3 -2
- data/doc/files/lib/KeywordDocumentation_rb.html +3 -2
- data/doc/files/lib/Limits_rb.html +3 -2
- data/doc/files/lib/Log_rb.html +3 -2
- data/doc/files/lib/LogicalExpression_rb.html +3 -2
- data/doc/files/lib/LogicalFunction_rb.html +3 -2
- data/doc/files/lib/LogicalOperation_rb.html +3 -2
- data/doc/files/lib/MacroParser_rb.html +3 -2
- data/doc/files/lib/MacroTable_rb.html +3 -2
- data/doc/files/lib/MessageHandler_rb.html +3 -2
- data/doc/files/lib/Message_rb.html +3 -2
- data/doc/files/lib/ProjectFileParser_rb.html +7 -4
- data/doc/files/lib/Project_rb.html +3 -2
- data/doc/files/lib/PropertyList_rb.html +3 -2
- data/doc/files/lib/PropertySet_rb.html +3 -2
- data/doc/files/lib/PropertyTreeNode_rb.html +3 -2
- data/doc/files/lib/Query_rb.html +3 -2
- data/doc/files/lib/{RTPNavigator_rb.html → RTFNavigator_rb.html} +8 -7
- data/doc/files/lib/RTFQuery_rb.html +121 -0
- data/doc/files/lib/{RTPReport_rb.html → RTFReport_rb.html} +8 -7
- data/doc/files/lib/RealFormat_rb.html +3 -2
- data/doc/files/lib/RemoteServiceManager_rb.html +117 -0
- data/doc/files/lib/ReportServer_rb.html +107 -0
- data/doc/files/lib/ResourceScenario_rb.html +3 -2
- data/doc/files/lib/Resource_rb.html +3 -2
- data/doc/files/lib/RichTextDocument_rb.html +4 -3
- data/doc/files/lib/RichTextElement_rb.html +3 -2
- data/doc/files/lib/{RichTextProtocolExample_rb.html → RichTextFunctionExample_rb.html} +8 -7
- data/doc/files/lib/{RichTextProtocolHandler_rb.html → RichTextFunctionHandler_rb.html} +7 -6
- data/doc/files/lib/RichTextParser_rb.html +3 -2
- data/doc/files/lib/RichTextScanner_rb.html +3 -2
- data/doc/files/lib/RichTextSnip_rb.html +3 -2
- data/doc/files/lib/RichTextSyntaxRules_rb.html +3 -2
- data/doc/files/lib/RichText_rb.html +3 -2
- data/doc/files/lib/ScenarioData_rb.html +3 -2
- data/doc/files/lib/Scenario_rb.html +3 -2
- data/doc/files/lib/Scoreboard_rb.html +3 -2
- data/doc/files/lib/ShiftAssignments_rb.html +3 -2
- data/doc/files/lib/ShiftScenario_rb.html +3 -2
- data/doc/files/lib/Shift_rb.html +3 -2
- data/doc/files/lib/SourceFileInfo_rb.html +3 -2
- data/doc/files/lib/SyntaxReference_rb.html +3 -2
- data/doc/files/lib/TOCEntry_rb.html +3 -2
- data/doc/files/lib/TableColumnDefinition_rb.html +3 -2
- data/doc/files/lib/TableOfContents_rb.html +3 -2
- data/doc/files/lib/TaskDependency_rb.html +3 -2
- data/doc/files/lib/TaskJuggler_rb.html +7 -2
- data/doc/files/lib/TaskScenario_rb.html +3 -2
- data/doc/files/lib/Task_rb.html +3 -2
- data/doc/files/lib/TextParser/Pattern_rb.html +4 -3
- data/doc/files/lib/TextParser/Rule_rb.html +4 -3
- data/doc/files/lib/TextParser/StackElement_rb.html +4 -3
- data/doc/files/lib/TextParser/TokenDoc_rb.html +4 -3
- data/doc/files/lib/TextParser_rb.html +3 -2
- data/doc/files/lib/TextScanner_rb.html +3 -2
- data/doc/files/lib/Tj3Config_rb.html +3 -2
- data/doc/files/lib/TjException_rb.html +3 -2
- data/doc/files/lib/TjTime_rb.html +3 -2
- data/doc/files/lib/TjpExample_rb.html +3 -2
- data/doc/files/lib/TjpSyntaxRules_rb.html +3 -2
- data/doc/files/lib/UTF8String_rb.html +14 -6
- data/doc/files/lib/UserManual_rb.html +6 -3
- data/doc/files/lib/WorkingHours_rb.html +3 -2
- data/doc/files/lib/XMLDocument_rb.html +3 -2
- data/doc/files/lib/XMLElement_rb.html +3 -2
- data/doc/files/lib/deep_copy_rb.html +3 -2
- data/doc/files/lib/reports/CSVFile_rb.html +3 -2
- data/doc/files/lib/reports/ColumnTable_rb.html +3 -2
- data/doc/files/lib/reports/GanttChart_rb.html +3 -2
- data/doc/files/lib/reports/GanttContainer_rb.html +3 -2
- data/doc/files/lib/reports/GanttHeaderScaleItem_rb.html +3 -2
- data/doc/files/lib/reports/GanttHeader_rb.html +3 -2
- data/doc/files/lib/reports/GanttLine_rb.html +3 -2
- data/doc/files/lib/reports/GanttLoadStack_rb.html +3 -2
- data/doc/files/lib/reports/GanttMilestone_rb.html +3 -2
- data/doc/files/lib/reports/GanttRouter_rb.html +3 -2
- data/doc/files/lib/reports/GanttTaskBar_rb.html +3 -2
- data/doc/files/lib/reports/HTMLGraphics_rb.html +3 -2
- data/doc/files/lib/reports/Navigator_rb.html +3 -2
- data/doc/files/lib/reports/ReportBase_rb.html +3 -2
- data/doc/files/lib/reports/ReportContext_rb.html +3 -2
- data/doc/files/lib/reports/ReportTableCell_rb.html +3 -2
- data/doc/files/lib/reports/ReportTableColumn_rb.html +3 -2
- data/doc/files/lib/reports/ReportTableLegend_rb.html +3 -2
- data/doc/files/lib/reports/ReportTableLine_rb.html +3 -2
- data/doc/files/lib/reports/ReportTable_rb.html +3 -2
- data/doc/files/lib/reports/Report_rb.html +7 -2
- data/doc/files/lib/reports/ResourceListRE_rb.html +3 -2
- data/doc/files/lib/reports/TableReport_rb.html +3 -2
- data/doc/files/lib/reports/TaskListRE_rb.html +3 -2
- data/doc/files/lib/reports/TextReport_rb.html +4 -3
- data/doc/files/lib/reports/TimeSheetReport_rb.html +117 -0
- data/doc/files/lib/reports/TjpExportRE_rb.html +3 -2
- data/doc/files/lib/taskjuggler3_rb.html +94 -77
- data/doc/files/lib/tj3client_rb.html +280 -0
- data/doc/files/lib/tj3man_rb.html +10 -9
- data/doc/fr_class_index.html +27 -5
- data/doc/fr_file_index.html +15 -7
- data/doc/fr_method_index.html +1312 -1020
- data/examples/tutorial.tjp +113 -14
- data/gem_spec.rb +2 -1
- data/lib/Account.rb +1 -1
- data/lib/AccountScenario.rb +1 -1
- data/lib/Allocation.rb +1 -1
- data/lib/AppConfig.rb +23 -10
- data/lib/AttributeBase.rb +34 -6
- data/lib/AttributeDefinition.rb +1 -1
- data/lib/Attributes.rb +51 -16
- data/lib/BatchProcessor.rb +204 -77
- data/lib/Booking.rb +1 -1
- data/lib/Charge.rb +1 -1
- data/lib/ChargeSet.rb +1 -1
- data/lib/HTMLDocument.rb +2 -2
- data/lib/Interval.rb +1 -1
- data/lib/Journal.rb +231 -9
- data/lib/KeywordArray.rb +1 -1
- data/lib/KeywordDocumentation.rb +6 -4
- data/lib/Limits.rb +1 -1
- data/lib/Log.rb +8 -1
- data/lib/LogicalExpression.rb +14 -13
- data/lib/LogicalFunction.rb +88 -14
- data/lib/LogicalOperation.rb +124 -53
- data/lib/MacroParser.rb +1 -1
- data/lib/MacroTable.rb +2 -2
- data/lib/Message.rb +1 -1
- data/lib/MessageHandler.rb +7 -3
- data/lib/Project.rb +93 -14
- data/lib/ProjectFileParser.rb +30 -15
- data/lib/PropertyList.rb +103 -36
- data/lib/PropertySet.rb +22 -10
- data/lib/PropertyTreeNode.rb +120 -15
- data/lib/Query.rb +119 -48
- data/lib/{RTPNavigator.rb → RTFNavigator.rb} +11 -10
- data/lib/RTFQuery.rb +166 -0
- data/lib/{RTPReport.rb → RTFReport.rb} +11 -8
- data/lib/RealFormat.rb +1 -1
- data/lib/RemoteServiceManager.rb +80 -0
- data/lib/ReportServer.rb +66 -0
- data/lib/Resource.rb +1 -1
- data/lib/ResourceScenario.rb +48 -19
- data/lib/RichText.rb +98 -41
- data/lib/RichTextDocument.rb +10 -8
- data/lib/RichTextElement.rb +72 -28
- data/lib/{RichTextProtocolExample.rb → RichTextFunctionExample.rb} +8 -7
- data/lib/{RichTextProtocolHandler.rb → RichTextFunctionHandler.rb} +12 -14
- data/lib/RichTextParser.rb +6 -3
- data/lib/RichTextScanner.rb +91 -19
- data/lib/RichTextSnip.rb +8 -3
- data/lib/RichTextSyntaxRules.rb +103 -45
- data/lib/Scenario.rb +1 -1
- data/lib/ScenarioData.rb +2 -2
- data/lib/Scoreboard.rb +1 -1
- data/lib/Shift.rb +1 -1
- data/lib/ShiftAssignments.rb +1 -1
- data/lib/ShiftScenario.rb +1 -1
- data/lib/SourceFileInfo.rb +1 -1
- data/lib/SyntaxReference.rb +2 -2
- data/lib/TOCEntry.rb +1 -1
- data/lib/TableColumnDefinition.rb +59 -16
- data/lib/TableOfContents.rb +1 -1
- data/lib/Task.rb +1 -1
- data/lib/TaskDependency.rb +1 -1
- data/lib/TaskJuggler.rb +31 -8
- data/lib/TaskScenario.rb +165 -16
- data/lib/TextParser.rb +36 -22
- data/lib/TextParser/Pattern.rb +3 -3
- data/lib/TextParser/Rule.rb +2 -2
- data/lib/TextParser/StackElement.rb +4 -3
- data/lib/TextParser/TokenDoc.rb +2 -2
- data/lib/TextScanner.rb +52 -37
- data/lib/Tj3Config.rb +6 -5
- data/lib/TjException.rb +1 -1
- data/lib/TjTime.rb +12 -3
- data/lib/TjpExample.rb +1 -1
- data/lib/TjpSyntaxRules.rb +1044 -150
- data/lib/UTF8String.rb +2 -1
- data/lib/UserManual.rb +18 -70
- data/lib/WorkingHours.rb +3 -3
- data/lib/XMLDocument.rb +3 -2
- data/lib/XMLElement.rb +6 -1
- data/lib/deep_copy.rb +1 -1
- data/lib/reports/CSVFile.rb +1 -1
- data/lib/reports/ColumnTable.rb +9 -9
- data/lib/reports/GanttChart.rb +1 -1
- data/lib/reports/GanttContainer.rb +1 -1
- data/lib/reports/GanttHeader.rb +1 -1
- data/lib/reports/GanttHeaderScaleItem.rb +1 -1
- data/lib/reports/GanttLine.rb +40 -40
- data/lib/reports/GanttLoadStack.rb +1 -1
- data/lib/reports/GanttMilestone.rb +1 -1
- data/lib/reports/GanttRouter.rb +1 -1
- data/lib/reports/GanttTaskBar.rb +1 -1
- data/lib/reports/HTMLGraphics.rb +1 -1
- data/lib/reports/Navigator.rb +149 -22
- data/lib/reports/Report.rb +115 -172
- data/lib/reports/ReportBase.rb +22 -27
- data/lib/reports/ReportContext.rb +29 -15
- data/lib/reports/ReportTable.rb +1 -1
- data/lib/reports/ReportTableCell.rb +120 -27
- data/lib/reports/ReportTableColumn.rb +3 -3
- data/lib/reports/ReportTableLegend.rb +1 -1
- data/lib/reports/ReportTableLine.rb +10 -2
- data/lib/reports/ResourceListRE.rb +5 -1
- data/lib/reports/TableReport.rb +237 -287
- data/lib/reports/TaskListRE.rb +5 -1
- data/lib/reports/TextReport.rb +7 -4
- data/lib/reports/TimeSheetReport.rb +233 -0
- data/lib/reports/TjpExportRE.rb +2 -2
- data/lib/taskjuggler3.rb +27 -11
- data/lib/tj3client.rb +110 -0
- data/lib/tj3man.rb +4 -4
- data/manual/Getting_Started +0 -50
- data/manual/How_To_Contribute +6 -13
- data/manual/Installation +102 -28
- data/manual/Intro +11 -1
- data/manual/Reporting_Bugs +23 -7
- data/manual/Rich_Text_Attributes +59 -6
- data/manual/TaskJuggler_2x_Migration +27 -0
- data/manual/The_TaskJuggler_Syntax +104 -0
- data/manual/Tutorial +10 -9
- data/prj_cfg.rb +8 -2
- data/tasks/csts.rake +1 -1
- data/tasks/manual.rake +5 -3
- data/test/MessageChecker.rb +1 -1
- data/test/TestSuite/HTML-Reports/Alerts.html +172 -0
- data/test/TestSuite/HTML-Reports/Alerts.tjp +77 -0
- data/test/TestSuite/HTML-Reports/CellText.html +758 -0
- data/test/TestSuite/HTML-Reports/CellText.tjp +75 -0
- data/test/TestSuite/HTML-Reports/ColumnPeriods.html +156 -0
- data/test/TestSuite/HTML-Reports/ColumnPeriods.tjp +44 -0
- data/test/TestSuite/HTML-Reports/IsOngoing.html +172 -0
- data/test/TestSuite/HTML-Reports/IsOngoing.tjp +34 -0
- data/test/TestSuite/HTML-Reports/LogicalFunctions.html +80 -0
- data/test/TestSuite/HTML-Reports/LogicalFunctions.tjp +20 -0
- data/test/TestSuite/HTML-Reports/Query.html +31 -0
- data/test/TestSuite/HTML-Reports/Query.tjp +28 -0
- data/test/TestSuite/HTML-Reports/Sorting.tjp +68 -0
- data/test/TestSuite/HTML-Reports/TimeSheet.tjp +69 -0
- data/test/TestSuite/HTML-Reports/UDAQuery.tjp +27 -0
- data/test/TestSuite/HTML-Reports/css/tjmanual.css +52 -0
- data/test/TestSuite/HTML-Reports/css/tjreport.css +195 -0
- data/test/TestSuite/HTML-Reports/depArrows.html +842 -0
- data/test/TestSuite/HTML-Reports/icons/details.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/flag-green.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/flag-red.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/flag-yellow.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/resource.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/resourcegroup.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/task.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/taskgroup.png +0 -0
- data/test/TestSuite/HTML-Reports/reference.tjp +7 -8
- data/test/TestSuite/HTML-Reports/scripts/scripts/wz_tooltip.js +1301 -0
- data/test/TestSuite/HTML-Reports/scripts/wz_tooltip.js +1301 -0
- data/test/TestSuite/Scheduler/Correct/Mandatory.tjp +34 -0
- data/test/TestSuite/Syntax/Correct/Celltext.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/Journal.tjp +2 -2
- data/test/TestSuite/Syntax/Correct/LogicalExpression.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/LogicalFunction.tjp +20 -0
- data/test/TestSuite/Syntax/Correct/Query.tjp +18 -0
- data/test/TestSuite/Syntax/Correct/StatusSheet.tjp +45 -0
- data/test/TestSuite/Syntax/Correct/TimeSheet.tjp +49 -0
- data/test/TestSuite/Syntax/Correct/icons/details.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-green.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-red.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-yellow.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/resource.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/resourcegroup.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/task.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/taskgroup.png +0 -0
- data/test/TestSuite/Syntax/Correct/scripts/wz_tooltip.js +1301 -0
- data/test/TestSuite/Syntax/Correct/tutorial.tjp +113 -14
- data/test/TestSuite/Syntax/Errors/macro_stack_overflow.tjp +28 -0
- data/test/TestSuite/Syntax/Errors/unsupported_token.tjp +12 -0
- data/test/all.rb +2 -2
- data/test/test_BatchProcessor.rb +42 -13
- data/test/test_CSV-Reports.rb +1 -1
- data/test/test_Journal.rb +176 -0
- data/test/test_Limits.rb +1 -1
- data/test/test_LogicalExpression.rb +14 -5
- data/test/test_MacroTable.rb +1 -1
- data/test/test_Project.rb +1 -1
- data/test/test_PropertySet.rb +1 -1
- data/test/test_Query.rb +1 -1
- data/test/test_RealFormat.rb +1 -1
- data/test/test_RichText.rb +30 -20
- data/test/test_Scheduler.rb +1 -1
- data/test/test_ShiftAssignments.rb +2 -2
- data/test/test_Syntax.rb +1 -1
- data/test/test_TextScanner.rb +1 -1
- data/test/test_TjTime.rb +1 -1
- data/test/test_TjpExample.rb +1 -1
- data/test/test_UTF8String.rb +1 -1
- data/test/test_WorkingHours.rb +1 -1
- data/test/test_deep_copy.rb +2 -2
- metadata +610 -532
- data/doc/files/lib/ms_test_rb.html +0 -90
- data/examples/ContactList.html +0 -1467
- data/examples/Deliveries.html +0 -485
- data/examples/Development.html +0 -2525
- data/examples/Overview.html +0 -747
- data/examples/Resource Graph.html +0 -616
- data/lib/ms_test.rb +0 -27
- data/test/TestSuite/HTML-Reports/reference-export.html +0 -187
|
@@ -110,55 +110,57 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
|
110
110
|
|
|
111
111
|
<div class="name-list">
|
|
112
112
|
|
|
113
|
-
<a href="#
|
|
113
|
+
<a href="#M001021">[]</a>
|
|
114
114
|
|
|
115
|
-
<a href="#
|
|
115
|
+
<a href="#M001007">addAttributeType</a>
|
|
116
116
|
|
|
117
|
-
<a href="#
|
|
117
|
+
<a href="#M001018">addProperty</a>
|
|
118
118
|
|
|
119
|
-
<a href="#
|
|
119
|
+
<a href="#M001016">attributeName</a>
|
|
120
120
|
|
|
121
|
-
<a href="#
|
|
121
|
+
<a href="#M001017">attributeType</a>
|
|
122
122
|
|
|
123
|
-
<a href="#
|
|
123
|
+
<a href="#M001020">clearProperties</a>
|
|
124
124
|
|
|
125
|
-
<a href="#
|
|
125
|
+
<a href="#M001015">defaultValue</a>
|
|
126
126
|
|
|
127
|
-
<a href="#
|
|
127
|
+
<a href="#M001028">each</a>
|
|
128
128
|
|
|
129
|
-
<a href="#
|
|
129
|
+
<a href="#M001008">eachAttributeDefinition</a>
|
|
130
130
|
|
|
131
|
-
<a href="#
|
|
131
|
+
<a href="#M001026">empty?</a>
|
|
132
132
|
|
|
133
|
-
<a href="#
|
|
133
|
+
<a href="#M001010">hasQuery?</a>
|
|
134
134
|
|
|
135
|
-
<a href="#
|
|
135
|
+
<a href="#M001022">index</a>
|
|
136
136
|
|
|
137
|
-
<a href="#
|
|
137
|
+
<a href="#M001006">inheritAttributesFromScenario</a>
|
|
138
138
|
|
|
139
|
-
<a href="#
|
|
139
|
+
<a href="#M001013">inheritedFromParent?</a>
|
|
140
140
|
|
|
141
|
-
<a href="#
|
|
141
|
+
<a href="#M001012">inheritedFromProject?</a>
|
|
142
142
|
|
|
143
|
-
<a href="#
|
|
143
|
+
<a href="#M001025">items</a>
|
|
144
144
|
|
|
145
|
-
<a href="#
|
|
145
|
+
<a href="#M001009">knownAttribute?</a>
|
|
146
146
|
|
|
147
|
-
<a href="#
|
|
147
|
+
<a href="#M001023">levelSeqNo</a>
|
|
148
148
|
|
|
149
|
-
<a href="#
|
|
149
|
+
<a href="#M001024">maxDepth</a>
|
|
150
150
|
|
|
151
|
-
<a href="#
|
|
151
|
+
<a href="#M001005">new</a>
|
|
152
152
|
|
|
153
|
-
<a href="#
|
|
153
|
+
<a href="#M001019">removeProperty</a>
|
|
154
154
|
|
|
155
|
-
<a href="#
|
|
155
|
+
<a href="#M001011">scenarioSpecific?</a>
|
|
156
156
|
|
|
157
|
-
<a href="#
|
|
157
|
+
<a href="#M001029">to_ary</a>
|
|
158
158
|
|
|
159
|
-
<a href="#
|
|
159
|
+
<a href="#M001030">to_s</a>
|
|
160
160
|
|
|
161
|
-
<a href="#
|
|
161
|
+
<a href="#M001027">topLevelItems</a>
|
|
162
|
+
|
|
163
|
+
<a href="#M001014">userDefined?</a>
|
|
162
164
|
|
|
163
165
|
</div>
|
|
164
166
|
</div>
|
|
@@ -213,12 +215,12 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
|
213
215
|
<h3 class="section-bar">Public Class methods</h3>
|
|
214
216
|
|
|
215
217
|
|
|
216
|
-
<div id="method-
|
|
217
|
-
<a name="
|
|
218
|
+
<div id="method-M001005" class="method-detail">
|
|
219
|
+
<a name="M001005"></a>
|
|
218
220
|
|
|
219
221
|
<div class="method-heading">
|
|
220
222
|
|
|
221
|
-
<a href="#
|
|
223
|
+
<a href="#M001005" class="method-signature">
|
|
222
224
|
|
|
223
225
|
<span class="method-name">new</span><span class="method-args">(project, flatNamespace)</span>
|
|
224
226
|
|
|
@@ -229,8 +231,8 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
|
229
231
|
<div class="method-description">
|
|
230
232
|
|
|
231
233
|
<p><a class="source-toggle" href="#"
|
|
232
|
-
onclick="toggleCode('
|
|
233
|
-
<div class="method-source-code" id="
|
|
234
|
+
onclick="toggleCode('M001005-source');return false;">[Source]</a></p>
|
|
235
|
+
<div class="method-source-code" id="M001005-source">
|
|
234
236
|
<pre>
|
|
235
237
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 29</span>
|
|
236
238
|
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">project</span>, <span class="ruby-identifier">flatNamespace</span>)
|
|
@@ -279,12 +281,12 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
|
279
281
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
280
282
|
|
|
281
283
|
|
|
282
|
-
<div id="method-
|
|
283
|
-
<a name="
|
|
284
|
+
<div id="method-M001021" class="method-detail">
|
|
285
|
+
<a name="M001021"></a>
|
|
284
286
|
|
|
285
287
|
<div class="method-heading">
|
|
286
288
|
|
|
287
|
-
<a href="#
|
|
289
|
+
<a href="#M001021" class="method-signature">
|
|
288
290
|
|
|
289
291
|
<span class="method-name">[]</span><span class="method-args">(id)</span>
|
|
290
292
|
|
|
@@ -300,13 +302,13 @@ ID <em>id</em> from the set or nil if not present.
|
|
|
300
302
|
</p>
|
|
301
303
|
|
|
302
304
|
<p><a class="source-toggle" href="#"
|
|
303
|
-
onclick="toggleCode('
|
|
304
|
-
<div class="method-source-code" id="
|
|
305
|
+
onclick="toggleCode('M001021-source');return false;">[Source]</a></p>
|
|
306
|
+
<div class="method-source-code" id="M001021-source">
|
|
305
307
|
<pre>
|
|
306
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 241</span>
|
|
309
|
+
241: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">id</span>)
|
|
310
|
+
242: <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">id</span>]
|
|
311
|
+
243: <span class="ruby-keyword kw">end</span>
|
|
310
312
|
</pre>
|
|
311
313
|
</div>
|
|
312
314
|
|
|
@@ -314,12 +316,12 @@ ID <em>id</em> from the set or nil if not present.
|
|
|
314
316
|
</div>
|
|
315
317
|
|
|
316
318
|
|
|
317
|
-
<div id="method-
|
|
318
|
-
<a name="
|
|
319
|
+
<div id="method-M001007" class="method-detail">
|
|
320
|
+
<a name="M001007"></a>
|
|
319
321
|
|
|
320
322
|
<div class="method-heading">
|
|
321
323
|
|
|
322
|
-
<a href="#
|
|
324
|
+
<a href="#M001007" class="method-signature">
|
|
323
325
|
|
|
324
326
|
<span class="method-name">addAttributeType</span><span class="method-args">(attributeType)</span>
|
|
325
327
|
|
|
@@ -336,8 +338,8 @@ declared before the first property is added to the set.
|
|
|
336
338
|
</p>
|
|
337
339
|
|
|
338
340
|
<p><a class="source-toggle" href="#"
|
|
339
|
-
onclick="toggleCode('
|
|
340
|
-
<div class="method-source-code" id="
|
|
341
|
+
onclick="toggleCode('M001007-source');return false;">[Source]</a></p>
|
|
342
|
+
<div class="method-source-code" id="M001007-source">
|
|
341
343
|
<pre>
|
|
342
344
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 74</span>
|
|
343
345
|
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addAttributeType</span>(<span class="ruby-identifier">attributeType</span>)
|
|
@@ -355,12 +357,12 @@ declared before the first property is added to the set.
|
|
|
355
357
|
</div>
|
|
356
358
|
|
|
357
359
|
|
|
358
|
-
<div id="method-
|
|
359
|
-
<a name="
|
|
360
|
+
<div id="method-M001018" class="method-detail">
|
|
361
|
+
<a name="M001018"></a>
|
|
360
362
|
|
|
361
363
|
<div class="method-heading">
|
|
362
364
|
|
|
363
|
-
<a href="#
|
|
365
|
+
<a href="#M001018" class="method-signature">
|
|
364
366
|
|
|
365
367
|
<span class="method-name">addProperty</span><span class="method-args">(property)</span>
|
|
366
368
|
|
|
@@ -382,26 +384,26 @@ You must call index() before using these attributes.
|
|
|
382
384
|
</p>
|
|
383
385
|
|
|
384
386
|
<p><a class="source-toggle" href="#"
|
|
385
|
-
onclick="toggleCode('
|
|
386
|
-
<div class="method-source-code" id="
|
|
387
|
+
onclick="toggleCode('M001018-source');return false;">[Source]</a></p>
|
|
388
|
+
<div class="method-source-code" id="M001018-source">
|
|
387
389
|
<pre>
|
|
388
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
390
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 190</span>
|
|
391
|
+
190: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addProperty</span>(<span class="ruby-identifier">property</span>)
|
|
392
|
+
191: <span class="ruby-comment cmt"># The PropertySet defines the set of attribute that each PropertyTreeNode</span>
|
|
393
|
+
192: <span class="ruby-comment cmt"># in this set has. Create these attributes with their default values.</span>
|
|
394
|
+
193: <span class="ruby-ivar">@attributeDefinitions</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span>, <span class="ruby-identifier">attributeType</span><span class="ruby-operator">|</span>
|
|
395
|
+
194: <span class="ruby-identifier">property</span>.<span class="ruby-identifier">declareAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
|
396
|
+
195: <span class="ruby-keyword kw">end</span>
|
|
397
|
+
196:
|
|
398
|
+
197: <span class="ruby-comment cmt"># The PropertyTreeNode objects are indexed by ID or hierachical ID</span>
|
|
399
|
+
198: <span class="ruby-comment cmt"># depending on the name space setting of this set.</span>
|
|
400
|
+
199: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@flatNamespace</span>
|
|
401
|
+
200: <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">property</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">property</span>
|
|
402
|
+
201: <span class="ruby-keyword kw">else</span>
|
|
403
|
+
202: <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">property</span>.<span class="ruby-identifier">fullId</span>] = <span class="ruby-identifier">property</span>
|
|
404
|
+
203: <span class="ruby-keyword kw">end</span>
|
|
405
|
+
204: <span class="ruby-ivar">@properties</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">property</span>
|
|
406
|
+
205: <span class="ruby-keyword kw">end</span>
|
|
405
407
|
</pre>
|
|
406
408
|
</div>
|
|
407
409
|
|
|
@@ -409,12 +411,12 @@ You must call index() before using these attributes.
|
|
|
409
411
|
</div>
|
|
410
412
|
|
|
411
413
|
|
|
412
|
-
<div id="method-
|
|
413
|
-
<a name="
|
|
414
|
+
<div id="method-M001016" class="method-detail">
|
|
415
|
+
<a name="M001016"></a>
|
|
414
416
|
|
|
415
417
|
<div class="method-heading">
|
|
416
418
|
|
|
417
|
-
<a href="#
|
|
419
|
+
<a href="#M001016" class="method-signature">
|
|
418
420
|
|
|
419
421
|
<span class="method-name">attributeName</span><span class="method-args">(attrId)</span>
|
|
420
422
|
|
|
@@ -430,23 +432,23 @@ specified by <em>attrId</em>.
|
|
|
430
432
|
</p>
|
|
431
433
|
|
|
432
434
|
<p><a class="source-toggle" href="#"
|
|
433
|
-
onclick="toggleCode('
|
|
434
|
-
<div class="method-source-code" id="
|
|
435
|
+
onclick="toggleCode('M001016-source');return false;">[Source]</a></p>
|
|
436
|
+
<div class="method-source-code" id="M001016-source">
|
|
435
437
|
<pre>
|
|
436
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
438
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 155</span>
|
|
439
|
+
155: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributeName</span>(<span class="ruby-identifier">attrId</span>)
|
|
440
|
+
156: <span class="ruby-comment cmt"># Some attributes are hardwired into the properties. These need to be</span>
|
|
441
|
+
157: <span class="ruby-comment cmt"># treated separately.</span>
|
|
442
|
+
158: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@fixedAttributeNames</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
443
|
+
159: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">attrId</span>)
|
|
444
|
+
160: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">name</span>
|
|
445
|
+
161: <span class="ruby-keyword kw">end</span>
|
|
446
|
+
162: <span class="ruby-keyword kw">else</span>
|
|
447
|
+
163: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@@fixedAttributeNames</span>[<span class="ruby-identifier">attrId</span>]
|
|
448
|
+
164: <span class="ruby-keyword kw">end</span>
|
|
449
|
+
165:
|
|
450
|
+
166: <span class="ruby-keyword kw">nil</span>
|
|
451
|
+
167: <span class="ruby-keyword kw">end</span>
|
|
450
452
|
</pre>
|
|
451
453
|
</div>
|
|
452
454
|
|
|
@@ -454,12 +456,12 @@ specified by <em>attrId</em>.
|
|
|
454
456
|
</div>
|
|
455
457
|
|
|
456
458
|
|
|
457
|
-
<div id="method-
|
|
458
|
-
<a name="
|
|
459
|
+
<div id="method-M001017" class="method-detail">
|
|
460
|
+
<a name="M001017"></a>
|
|
459
461
|
|
|
460
462
|
<div class="method-heading">
|
|
461
463
|
|
|
462
|
-
<a href="#
|
|
464
|
+
<a href="#M001017" class="method-signature">
|
|
463
465
|
|
|
464
466
|
<span class="method-name">attributeType</span><span class="method-args">(attrId)</span>
|
|
465
467
|
|
|
@@ -474,22 +476,22 @@ Return the type of the attribute with the Id specified by <em>attrId</em>.
|
|
|
474
476
|
</p>
|
|
475
477
|
|
|
476
478
|
<p><a class="source-toggle" href="#"
|
|
477
|
-
onclick="toggleCode('
|
|
478
|
-
<div class="method-source-code" id="
|
|
479
|
+
onclick="toggleCode('M001017-source');return false;">[Source]</a></p>
|
|
480
|
+
<div class="method-source-code" id="M001017-source">
|
|
479
481
|
<pre>
|
|
480
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
482
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 170</span>
|
|
483
|
+
170: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributeType</span>(<span class="ruby-identifier">attrId</span>)
|
|
484
|
+
171: <span class="ruby-comment cmt"># Hardwired attributes need special treatment.</span>
|
|
485
|
+
172: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@fixedAttributesTypes</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
486
|
+
173: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attrId</span>)
|
|
487
|
+
174: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">objClass</span>
|
|
488
|
+
175: <span class="ruby-keyword kw">else</span>
|
|
489
|
+
176: <span class="ruby-keyword kw">nil</span>
|
|
490
|
+
177: <span class="ruby-keyword kw">end</span>
|
|
491
|
+
178: <span class="ruby-keyword kw">else</span>
|
|
492
|
+
179: <span class="ruby-ivar">@@fixedAttributesTypes</span>[<span class="ruby-identifier">attrId</span>]
|
|
493
|
+
180: <span class="ruby-keyword kw">end</span>
|
|
494
|
+
181: <span class="ruby-keyword kw">end</span>
|
|
493
495
|
</pre>
|
|
494
496
|
</div>
|
|
495
497
|
|
|
@@ -497,12 +499,12 @@ Return the type of the attribute with the Id specified by <em>attrId</em>.
|
|
|
497
499
|
</div>
|
|
498
500
|
|
|
499
501
|
|
|
500
|
-
<div id="method-
|
|
501
|
-
<a name="
|
|
502
|
+
<div id="method-M001020" class="method-detail">
|
|
503
|
+
<a name="M001020"></a>
|
|
502
504
|
|
|
503
505
|
<div class="method-heading">
|
|
504
506
|
|
|
505
|
-
<a href="#
|
|
507
|
+
<a href="#M001020" class="method-signature">
|
|
506
508
|
|
|
507
509
|
<span class="method-name">clearProperties</span><span class="method-args">()</span>
|
|
508
510
|
|
|
@@ -517,14 +519,14 @@ Call this function to delete all registered properties.
|
|
|
517
519
|
</p>
|
|
518
520
|
|
|
519
521
|
<p><a class="source-toggle" href="#"
|
|
520
|
-
onclick="toggleCode('
|
|
521
|
-
<div class="method-source-code" id="
|
|
522
|
+
onclick="toggleCode('M001020-source');return false;">[Source]</a></p>
|
|
523
|
+
<div class="method-source-code" id="M001020-source">
|
|
522
524
|
<pre>
|
|
523
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 234</span>
|
|
526
|
+
234: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clearProperties</span>
|
|
527
|
+
235: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">clear</span>
|
|
528
|
+
236: <span class="ruby-ivar">@propertyMap</span>.<span class="ruby-identifier">clear</span>
|
|
529
|
+
237: <span class="ruby-keyword kw">end</span>
|
|
528
530
|
</pre>
|
|
529
531
|
</div>
|
|
530
532
|
|
|
@@ -532,12 +534,12 @@ Call this function to delete all registered properties.
|
|
|
532
534
|
</div>
|
|
533
535
|
|
|
534
536
|
|
|
535
|
-
<div id="method-
|
|
536
|
-
<a name="
|
|
537
|
+
<div id="method-M001015" class="method-detail">
|
|
538
|
+
<a name="M001015"></a>
|
|
537
539
|
|
|
538
540
|
<div class="method-heading">
|
|
539
541
|
|
|
540
|
-
<a href="#
|
|
542
|
+
<a href="#M001015" class="method-signature">
|
|
541
543
|
|
|
542
544
|
<span class="method-name">defaultValue</span><span class="method-args">(attrId)</span>
|
|
543
545
|
|
|
@@ -552,15 +554,15 @@ Return the default value of the attribute.
|
|
|
552
554
|
</p>
|
|
553
555
|
|
|
554
556
|
<p><a class="source-toggle" href="#"
|
|
555
|
-
onclick="toggleCode('
|
|
556
|
-
<div class="method-source-code" id="
|
|
557
|
+
onclick="toggleCode('M001015-source');return false;">[Source]</a></p>
|
|
558
|
+
<div class="method-source-code" id="M001015-source">
|
|
557
559
|
<pre>
|
|
558
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
560
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 147</span>
|
|
561
|
+
147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">defaultValue</span>(<span class="ruby-identifier">attrId</span>)
|
|
562
|
+
148: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
563
|
+
149:
|
|
564
|
+
150: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">default</span>
|
|
565
|
+
151: <span class="ruby-keyword kw">end</span>
|
|
564
566
|
</pre>
|
|
565
567
|
</div>
|
|
566
568
|
|
|
@@ -568,12 +570,12 @@ Return the default value of the attribute.
|
|
|
568
570
|
</div>
|
|
569
571
|
|
|
570
572
|
|
|
571
|
-
<div id="method-
|
|
572
|
-
<a name="
|
|
573
|
+
<div id="method-M001028" class="method-detail">
|
|
574
|
+
<a name="M001028"></a>
|
|
573
575
|
|
|
574
576
|
<div class="method-heading">
|
|
575
577
|
|
|
576
|
-
<a href="#
|
|
578
|
+
<a href="#M001028" class="method-signature">
|
|
577
579
|
|
|
578
580
|
<span class="method-name">each</span><span class="method-args">() {|value| ...}</span>
|
|
579
581
|
|
|
@@ -589,15 +591,15 @@ objects in this set.
|
|
|
589
591
|
</p>
|
|
590
592
|
|
|
591
593
|
<p><a class="source-toggle" href="#"
|
|
592
|
-
onclick="toggleCode('
|
|
593
|
-
<div class="method-source-code" id="
|
|
594
|
+
onclick="toggleCode('M001028-source');return false;">[Source]</a></p>
|
|
595
|
+
<div class="method-source-code" id="M001028-source">
|
|
594
596
|
<pre>
|
|
595
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
597
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 307</span>
|
|
598
|
+
307: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
|
599
|
+
308: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
|
600
|
+
309: <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">value</span>)
|
|
601
|
+
310: <span class="ruby-keyword kw">end</span>
|
|
602
|
+
311: <span class="ruby-keyword kw">end</span>
|
|
601
603
|
</pre>
|
|
602
604
|
</div>
|
|
603
605
|
|
|
@@ -605,12 +607,12 @@ objects in this set.
|
|
|
605
607
|
</div>
|
|
606
608
|
|
|
607
609
|
|
|
608
|
-
<div id="method-
|
|
609
|
-
<a name="
|
|
610
|
+
<div id="method-M001008" class="method-detail">
|
|
611
|
+
<a name="M001008"></a>
|
|
610
612
|
|
|
611
613
|
<div class="method-heading">
|
|
612
614
|
|
|
613
|
-
<a href="#
|
|
615
|
+
<a href="#M001008" class="method-signature">
|
|
614
616
|
|
|
615
617
|
<span class="method-name">eachAttributeDefinition</span><span class="method-args">() {|value| ...}</span>
|
|
616
618
|
|
|
@@ -625,8 +627,8 @@ Iterate over all attribute definitions.
|
|
|
625
627
|
</p>
|
|
626
628
|
|
|
627
629
|
<p><a class="source-toggle" href="#"
|
|
628
|
-
onclick="toggleCode('
|
|
629
|
-
<div class="method-source-code" id="
|
|
630
|
+
onclick="toggleCode('M001008-source');return false;">[Source]</a></p>
|
|
631
|
+
<div class="method-source-code" id="M001008-source">
|
|
630
632
|
<pre>
|
|
631
633
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 84</span>
|
|
632
634
|
84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eachAttributeDefinition</span>
|
|
@@ -641,12 +643,12 @@ Iterate over all attribute definitions.
|
|
|
641
643
|
</div>
|
|
642
644
|
|
|
643
645
|
|
|
644
|
-
<div id="method-
|
|
645
|
-
<a name="
|
|
646
|
+
<div id="method-M001026" class="method-detail">
|
|
647
|
+
<a name="M001026"></a>
|
|
646
648
|
|
|
647
649
|
<div class="method-heading">
|
|
648
650
|
|
|
649
|
-
<a href="#
|
|
651
|
+
<a href="#M001026" class="method-signature">
|
|
650
652
|
|
|
651
653
|
<span class="method-name">empty?</span><span class="method-args">()</span>
|
|
652
654
|
|
|
@@ -661,13 +663,60 @@ Return true if the set is empty.
|
|
|
661
663
|
</p>
|
|
662
664
|
|
|
663
665
|
<p><a class="source-toggle" href="#"
|
|
664
|
-
onclick="toggleCode('
|
|
665
|
-
<div class="method-source-code" id="
|
|
666
|
+
onclick="toggleCode('M001026-source');return false;">[Source]</a></p>
|
|
667
|
+
<div class="method-source-code" id="M001026-source">
|
|
668
|
+
<pre>
|
|
669
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 292</span>
|
|
670
|
+
292: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
|
671
|
+
293: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">empty?</span>
|
|
672
|
+
294: <span class="ruby-keyword kw">end</span>
|
|
673
|
+
</pre>
|
|
674
|
+
</div>
|
|
675
|
+
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
<div id="method-M001010" class="method-detail">
|
|
681
|
+
<a name="M001010"></a>
|
|
682
|
+
|
|
683
|
+
<div class="method-heading">
|
|
684
|
+
|
|
685
|
+
<a href="#M001010" class="method-signature">
|
|
686
|
+
|
|
687
|
+
<span class="method-name">hasQuery?</span><span class="method-args">(attrId, scenarioIdx = nil)</span>
|
|
688
|
+
|
|
689
|
+
</a>
|
|
690
|
+
|
|
691
|
+
</div>
|
|
692
|
+
|
|
693
|
+
<div class="method-description">
|
|
694
|
+
|
|
695
|
+
<p>
|
|
696
|
+
Check whether the <a href="PropertyTreeNode.html">PropertyTreeNode</a> has
|
|
697
|
+
a calculated attribute with the ID <em>attrId</em>. For scenarioSpecific
|
|
698
|
+
attributes <em>scenarioIdx</em> needs to be provided.
|
|
699
|
+
</p>
|
|
700
|
+
|
|
701
|
+
<p><a class="source-toggle" href="#"
|
|
702
|
+
onclick="toggleCode('M001010-source');return false;">[Source]</a></p>
|
|
703
|
+
<div class="method-source-code" id="M001010-source">
|
|
666
704
|
<pre>
|
|
667
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
705
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 99</span>
|
|
706
|
+
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hasQuery?</span>(<span class="ruby-identifier">attrId</span>, <span class="ruby-identifier">scenarioIdx</span> = <span class="ruby-keyword kw">nil</span>)
|
|
707
|
+
100: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">empty?</span>
|
|
708
|
+
101:
|
|
709
|
+
102: <span class="ruby-identifier">property</span> = <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">first</span>
|
|
710
|
+
103: <span class="ruby-identifier">methodName</span> = <span class="ruby-value str">'query_'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">attrId</span>
|
|
711
|
+
104: <span class="ruby-comment cmt"># First we check for non-scenario-specific query functions.</span>
|
|
712
|
+
105: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">methodName</span>)
|
|
713
|
+
106: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
714
|
+
107: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">scenarioIdx</span>
|
|
715
|
+
108: <span class="ruby-comment cmt"># Then we check for scenario-specific ones via the @data member.</span>
|
|
716
|
+
109: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">data</span>[<span class="ruby-identifier">scenarioIdx</span>].<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">methodName</span>)
|
|
717
|
+
110: <span class="ruby-keyword kw">end</span>
|
|
718
|
+
111: <span class="ruby-keyword kw">false</span>
|
|
719
|
+
112: <span class="ruby-keyword kw">end</span>
|
|
671
720
|
</pre>
|
|
672
721
|
</div>
|
|
673
722
|
|
|
@@ -675,12 +724,12 @@ Return true if the set is empty.
|
|
|
675
724
|
</div>
|
|
676
725
|
|
|
677
726
|
|
|
678
|
-
<div id="method-
|
|
679
|
-
<a name="
|
|
727
|
+
<div id="method-M001022" class="method-detail">
|
|
728
|
+
<a name="M001022"></a>
|
|
680
729
|
|
|
681
730
|
<div class="method-heading">
|
|
682
731
|
|
|
683
|
-
<a href="#
|
|
732
|
+
<a href="#M001022" class="method-signature">
|
|
684
733
|
|
|
685
734
|
<span class="method-name">index</span><span class="method-args">()</span>
|
|
686
735
|
|
|
@@ -691,37 +740,31 @@ Return true if the set is empty.
|
|
|
691
740
|
<div class="method-description">
|
|
692
741
|
|
|
693
742
|
<p>
|
|
694
|
-
Update the
|
|
695
|
-
the set has been modified.
|
|
743
|
+
Update the work-breakdown-structure (wbs) indicies. This method needs to be
|
|
744
|
+
called whenever the set has been modified.
|
|
696
745
|
</p>
|
|
697
746
|
|
|
698
747
|
<p><a class="source-toggle" href="#"
|
|
699
|
-
onclick="toggleCode('
|
|
700
|
-
<div class="method-source-code" id="
|
|
748
|
+
onclick="toggleCode('M001022-source');return false;">[Source]</a></p>
|
|
749
|
+
<div class="method-source-code" id="M001022-source">
|
|
701
750
|
<pre>
|
|
702
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
245: <span class="ruby-identifier">wbs</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">idx</span>.<span class="ruby-identifier">to_s</span>
|
|
720
|
-
246: <span class="ruby-keyword kw">end</span>
|
|
721
|
-
247: <span class="ruby-identifier">p</span>.<span class="ruby-identifier">set</span>(<span class="ruby-value str">'wbs'</span>, <span class="ruby-identifier">wbs</span>)
|
|
722
|
-
248: <span class="ruby-identifier">p</span>.<span class="ruby-identifier">set</span>(<span class="ruby-value str">'tree'</span>, <span class="ruby-identifier">tree</span>)
|
|
723
|
-
249: <span class="ruby-keyword kw">end</span>
|
|
724
|
-
250: <span class="ruby-keyword kw">end</span>
|
|
751
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 247</span>
|
|
752
|
+
247: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
|
753
|
+
248: <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
|
754
|
+
249: <span class="ruby-identifier">wbsIdcs</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">getWBSIndicies</span>
|
|
755
|
+
250: <span class="ruby-identifier">wbs</span> = <span class="ruby-value str">""</span>
|
|
756
|
+
251: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
|
757
|
+
252: <span class="ruby-identifier">wbsIdcs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">idx</span><span class="ruby-operator">|</span>
|
|
758
|
+
253: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>
|
|
759
|
+
254: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
|
760
|
+
255: <span class="ruby-keyword kw">else</span>
|
|
761
|
+
256: <span class="ruby-identifier">wbs</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'.'</span>
|
|
762
|
+
257: <span class="ruby-keyword kw">end</span>
|
|
763
|
+
258: <span class="ruby-identifier">wbs</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">idx</span>.<span class="ruby-identifier">to_s</span>
|
|
764
|
+
259: <span class="ruby-keyword kw">end</span>
|
|
765
|
+
260: <span class="ruby-identifier">p</span>.<span class="ruby-identifier">set</span>(<span class="ruby-value str">'wbs'</span>, <span class="ruby-identifier">wbs</span>)
|
|
766
|
+
261: <span class="ruby-keyword kw">end</span>
|
|
767
|
+
262: <span class="ruby-keyword kw">end</span>
|
|
725
768
|
</pre>
|
|
726
769
|
</div>
|
|
727
770
|
|
|
@@ -729,12 +772,12 @@ the set has been modified.
|
|
|
729
772
|
</div>
|
|
730
773
|
|
|
731
774
|
|
|
732
|
-
<div id="method-
|
|
733
|
-
<a name="
|
|
775
|
+
<div id="method-M001006" class="method-detail">
|
|
776
|
+
<a name="M001006"></a>
|
|
734
777
|
|
|
735
778
|
<div class="method-heading">
|
|
736
779
|
|
|
737
|
-
<a href="#
|
|
780
|
+
<a href="#M001006" class="method-signature">
|
|
738
781
|
|
|
739
782
|
<span class="method-name">inheritAttributesFromScenario</span><span class="method-args">()</span>
|
|
740
783
|
|
|
@@ -749,8 +792,8 @@ Inherit all attributes of each property from the parent scenario.
|
|
|
749
792
|
</p>
|
|
750
793
|
|
|
751
794
|
<p><a class="source-toggle" href="#"
|
|
752
|
-
onclick="toggleCode('
|
|
753
|
-
<div class="method-source-code" id="
|
|
795
|
+
onclick="toggleCode('M001006-source');return false;">[Source]</a></p>
|
|
796
|
+
<div class="method-source-code" id="M001006-source">
|
|
754
797
|
<pre>
|
|
755
798
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 67</span>
|
|
756
799
|
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritAttributesFromScenario</span>
|
|
@@ -763,12 +806,12 @@ Inherit all attributes of each property from the parent scenario.
|
|
|
763
806
|
</div>
|
|
764
807
|
|
|
765
808
|
|
|
766
|
-
<div id="method-
|
|
767
|
-
<a name="
|
|
809
|
+
<div id="method-M001013" class="method-detail">
|
|
810
|
+
<a name="M001013"></a>
|
|
768
811
|
|
|
769
812
|
<div class="method-heading">
|
|
770
813
|
|
|
771
|
-
<a href="#
|
|
814
|
+
<a href="#M001013" class="method-signature">
|
|
772
815
|
|
|
773
816
|
<span class="method-name">inheritedFromParent?</span><span class="method-args">(attrId)</span>
|
|
774
817
|
|
|
@@ -783,16 +826,16 @@ Return whether the attribute with <em>attrId</em> is inherited from parent.
|
|
|
783
826
|
</p>
|
|
784
827
|
|
|
785
828
|
<p><a class="source-toggle" href="#"
|
|
786
|
-
onclick="toggleCode('
|
|
787
|
-
<div class="method-source-code" id="
|
|
829
|
+
onclick="toggleCode('M001013-source');return false;">[Source]</a></p>
|
|
830
|
+
<div class="method-source-code" id="M001013-source">
|
|
788
831
|
<pre>
|
|
789
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
832
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 132</span>
|
|
833
|
+
132: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritedFromParent?</span>(<span class="ruby-identifier">attrId</span>)
|
|
834
|
+
133: <span class="ruby-comment cmt"># All hardwired attributes are not inherited.</span>
|
|
835
|
+
134: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
836
|
+
135:
|
|
837
|
+
136: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">inheritedFromParent</span>
|
|
838
|
+
137: <span class="ruby-keyword kw">end</span>
|
|
796
839
|
</pre>
|
|
797
840
|
</div>
|
|
798
841
|
|
|
@@ -800,12 +843,12 @@ Return whether the attribute with <em>attrId</em> is inherited from parent.
|
|
|
800
843
|
</div>
|
|
801
844
|
|
|
802
845
|
|
|
803
|
-
<div id="method-
|
|
804
|
-
<a name="
|
|
846
|
+
<div id="method-M001012" class="method-detail">
|
|
847
|
+
<a name="M001012"></a>
|
|
805
848
|
|
|
806
849
|
<div class="method-heading">
|
|
807
850
|
|
|
808
|
-
<a href="#
|
|
851
|
+
<a href="#M001012" class="method-signature">
|
|
809
852
|
|
|
810
853
|
<span class="method-name">inheritedFromProject?</span><span class="method-args">(attrId)</span>
|
|
811
854
|
|
|
@@ -821,16 +864,16 @@ global scope.
|
|
|
821
864
|
</p>
|
|
822
865
|
|
|
823
866
|
<p><a class="source-toggle" href="#"
|
|
824
|
-
onclick="toggleCode('
|
|
825
|
-
<div class="method-source-code" id="
|
|
867
|
+
onclick="toggleCode('M001012-source');return false;">[Source]</a></p>
|
|
868
|
+
<div class="method-source-code" id="M001012-source">
|
|
826
869
|
<pre>
|
|
827
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
870
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 124</span>
|
|
871
|
+
124: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritedFromProject?</span>(<span class="ruby-identifier">attrId</span>)
|
|
872
|
+
125: <span class="ruby-comment cmt"># All hardwired attributes are not inherited.</span>
|
|
873
|
+
126: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
874
|
+
127:
|
|
875
|
+
128: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">inheritedFromProject</span>
|
|
876
|
+
129: <span class="ruby-keyword kw">end</span>
|
|
834
877
|
</pre>
|
|
835
878
|
</div>
|
|
836
879
|
|
|
@@ -838,12 +881,12 @@ global scope.
|
|
|
838
881
|
</div>
|
|
839
882
|
|
|
840
883
|
|
|
841
|
-
<div id="method-
|
|
842
|
-
<a name="
|
|
884
|
+
<div id="method-M001025" class="method-detail">
|
|
885
|
+
<a name="M001025"></a>
|
|
843
886
|
|
|
844
887
|
<div class="method-heading">
|
|
845
888
|
|
|
846
|
-
<a href="#
|
|
889
|
+
<a href="#M001025" class="method-signature">
|
|
847
890
|
|
|
848
891
|
<span class="method-name">items</span><span class="method-args">()</span>
|
|
849
892
|
|
|
@@ -859,13 +902,13 @@ objects in this set.
|
|
|
859
902
|
</p>
|
|
860
903
|
|
|
861
904
|
<p><a class="source-toggle" href="#"
|
|
862
|
-
onclick="toggleCode('
|
|
863
|
-
<div class="method-source-code" id="
|
|
905
|
+
onclick="toggleCode('M001025-source');return false;">[Source]</a></p>
|
|
906
|
+
<div class="method-source-code" id="M001025-source">
|
|
864
907
|
<pre>
|
|
865
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
908
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 287</span>
|
|
909
|
+
287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">items</span>
|
|
910
|
+
288: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">length</span>
|
|
911
|
+
289: <span class="ruby-keyword kw">end</span>
|
|
869
912
|
</pre>
|
|
870
913
|
</div>
|
|
871
914
|
|
|
@@ -873,12 +916,12 @@ objects in this set.
|
|
|
873
916
|
</div>
|
|
874
917
|
|
|
875
918
|
|
|
876
|
-
<div id="method-
|
|
877
|
-
<a name="
|
|
919
|
+
<div id="method-M001009" class="method-detail">
|
|
920
|
+
<a name="M001009"></a>
|
|
878
921
|
|
|
879
922
|
<div class="method-heading">
|
|
880
923
|
|
|
881
|
-
<a href="#
|
|
924
|
+
<a href="#M001009" class="method-signature">
|
|
882
925
|
|
|
883
926
|
<span class="method-name">knownAttribute?</span><span class="method-args">(attrId)</span>
|
|
884
927
|
|
|
@@ -895,8 +938,8 @@ href="AttributeDefinition.html">AttributeDefinition</a> for
|
|
|
895
938
|
</p>
|
|
896
939
|
|
|
897
940
|
<p><a class="source-toggle" href="#"
|
|
898
|
-
onclick="toggleCode('
|
|
899
|
-
<div class="method-source-code" id="
|
|
941
|
+
onclick="toggleCode('M001009-source');return false;">[Source]</a></p>
|
|
942
|
+
<div class="method-source-code" id="M001009-source">
|
|
900
943
|
<pre>
|
|
901
944
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 91</span>
|
|
902
945
|
91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">knownAttribute?</span>(<span class="ruby-identifier">attrId</span>)
|
|
@@ -910,12 +953,12 @@ href="AttributeDefinition.html">AttributeDefinition</a> for
|
|
|
910
953
|
</div>
|
|
911
954
|
|
|
912
955
|
|
|
913
|
-
<div id="method-
|
|
914
|
-
<a name="
|
|
956
|
+
<div id="method-M001023" class="method-detail">
|
|
957
|
+
<a name="M001023"></a>
|
|
915
958
|
|
|
916
959
|
<div class="method-heading">
|
|
917
960
|
|
|
918
|
-
<a href="#
|
|
961
|
+
<a href="#M001023" class="method-signature">
|
|
919
962
|
|
|
920
963
|
<span class="method-name">levelSeqNo</span><span class="method-args">(property)</span>
|
|
921
964
|
|
|
@@ -930,20 +973,20 @@ Return the index of the top-level <em>property</em> in the set.
|
|
|
930
973
|
</p>
|
|
931
974
|
|
|
932
975
|
<p><a class="source-toggle" href="#"
|
|
933
|
-
onclick="toggleCode('
|
|
934
|
-
<div class="method-source-code" id="
|
|
976
|
+
onclick="toggleCode('M001023-source');return false;">[Source]</a></p>
|
|
977
|
+
<div class="method-source-code" id="M001023-source">
|
|
935
978
|
<pre>
|
|
936
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
979
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 265</span>
|
|
980
|
+
265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">property</span>)
|
|
981
|
+
266: <span class="ruby-identifier">seqNo</span> = <span class="ruby-value">1</span>
|
|
982
|
+
267: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
|
983
|
+
268: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
|
984
|
+
269: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">seqNo</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">property</span>
|
|
985
|
+
270: <span class="ruby-identifier">seqNo</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
|
986
|
+
271: <span class="ruby-keyword kw">end</span>
|
|
987
|
+
272: <span class="ruby-keyword kw">end</span>
|
|
988
|
+
273: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Fatal Error: Unknow property #{property}"</span>
|
|
989
|
+
274: <span class="ruby-keyword kw">end</span>
|
|
947
990
|
</pre>
|
|
948
991
|
</div>
|
|
949
992
|
|
|
@@ -951,12 +994,12 @@ Return the index of the top-level <em>property</em> in the set.
|
|
|
951
994
|
</div>
|
|
952
995
|
|
|
953
996
|
|
|
954
|
-
<div id="method-
|
|
955
|
-
<a name="
|
|
997
|
+
<div id="method-M001024" class="method-detail">
|
|
998
|
+
<a name="M001024"></a>
|
|
956
999
|
|
|
957
1000
|
<div class="method-heading">
|
|
958
1001
|
|
|
959
|
-
<a href="#
|
|
1002
|
+
<a href="#M001024" class="method-signature">
|
|
960
1003
|
|
|
961
1004
|
<span class="method-name">maxDepth</span><span class="method-args">()</span>
|
|
962
1005
|
|
|
@@ -972,17 +1015,17 @@ maxDepth of 1. A list with one sub level has a maxDepth of 2 and so on.
|
|
|
972
1015
|
</p>
|
|
973
1016
|
|
|
974
1017
|
<p><a class="source-toggle" href="#"
|
|
975
|
-
onclick="toggleCode('
|
|
976
|
-
<div class="method-source-code" id="
|
|
1018
|
+
onclick="toggleCode('M001024-source');return false;">[Source]</a></p>
|
|
1019
|
+
<div class="method-source-code" id="M001024-source">
|
|
977
1020
|
<pre>
|
|
978
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1021
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 278</span>
|
|
1022
|
+
278: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">maxDepth</span>
|
|
1023
|
+
279: <span class="ruby-identifier">md</span> = <span class="ruby-value">0</span>
|
|
1024
|
+
280: <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
|
1025
|
+
281: <span class="ruby-identifier">md</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">level</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">level</span> <span class="ruby-operator">></span> <span class="ruby-identifier">md</span>
|
|
1026
|
+
282: <span class="ruby-keyword kw">end</span>
|
|
1027
|
+
283: <span class="ruby-identifier">md</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
|
1028
|
+
284: <span class="ruby-keyword kw">end</span>
|
|
986
1029
|
</pre>
|
|
987
1030
|
</div>
|
|
988
1031
|
|
|
@@ -990,12 +1033,12 @@ maxDepth of 1. A list with one sub level has a maxDepth of 2 and so on.
|
|
|
990
1033
|
</div>
|
|
991
1034
|
|
|
992
1035
|
|
|
993
|
-
<div id="method-
|
|
994
|
-
<a name="
|
|
1036
|
+
<div id="method-M001019" class="method-detail">
|
|
1037
|
+
<a name="M001019"></a>
|
|
995
1038
|
|
|
996
1039
|
<div class="method-heading">
|
|
997
1040
|
|
|
998
|
-
<a href="#
|
|
1041
|
+
<a href="#M001019" class="method-signature">
|
|
999
1042
|
|
|
1000
1043
|
<span class="method-name">removeProperty</span><span class="method-args">(prop)</span>
|
|
1001
1044
|
|
|
@@ -1016,31 +1059,31 @@ TODO: This function does not take care of references to this PTN!
|
|
|
1016
1059
|
</p>
|
|
1017
1060
|
|
|
1018
1061
|
<p><a class="source-toggle" href="#"
|
|
1019
|
-
onclick="toggleCode('
|
|
1020
|
-
<div class="method-source-code" id="
|
|
1062
|
+
onclick="toggleCode('M001019-source');return false;">[Source]</a></p>
|
|
1063
|
+
<div class="method-source-code" id="M001019-source">
|
|
1021
1064
|
<pre>
|
|
1022
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1065
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 211</span>
|
|
1066
|
+
211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removeProperty</span>(<span class="ruby-identifier">prop</span>)
|
|
1067
|
+
212: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
|
|
1068
|
+
213: <span class="ruby-identifier">property</span> = <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">prop</span>]
|
|
1069
|
+
214: <span class="ruby-keyword kw">else</span>
|
|
1070
|
+
215: <span class="ruby-identifier">property</span> = <span class="ruby-identifier">prop</span>
|
|
1071
|
+
216: <span class="ruby-keyword kw">end</span>
|
|
1072
|
+
217:
|
|
1073
|
+
218: <span class="ruby-comment cmt"># Recursively remove all sub-nodes. The children list is modified during</span>
|
|
1074
|
+
219: <span class="ruby-comment cmt"># the call, so we can't use an iterator here.</span>
|
|
1075
|
+
220: <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">do</span>
|
|
1076
|
+
221: <span class="ruby-identifier">removeProperty</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span>)
|
|
1077
|
+
222: <span class="ruby-keyword kw">end</span>
|
|
1078
|
+
223:
|
|
1079
|
+
224: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>)
|
|
1080
|
+
225: <span class="ruby-ivar">@propertyMap</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">fullId</span>)
|
|
1081
|
+
226:
|
|
1082
|
+
227: <span class="ruby-comment cmt"># Remove this node from the child list of the parent node.</span>
|
|
1083
|
+
228: <span class="ruby-identifier">property</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">parent</span>
|
|
1084
|
+
229:
|
|
1085
|
+
230: <span class="ruby-identifier">property</span>
|
|
1086
|
+
231: <span class="ruby-keyword kw">end</span>
|
|
1044
1087
|
</pre>
|
|
1045
1088
|
</div>
|
|
1046
1089
|
|
|
@@ -1048,12 +1091,12 @@ TODO: This function does not take care of references to this PTN!
|
|
|
1048
1091
|
</div>
|
|
1049
1092
|
|
|
1050
1093
|
|
|
1051
|
-
<div id="method-
|
|
1052
|
-
<a name="
|
|
1094
|
+
<div id="method-M001011" class="method-detail">
|
|
1095
|
+
<a name="M001011"></a>
|
|
1053
1096
|
|
|
1054
1097
|
<div class="method-heading">
|
|
1055
1098
|
|
|
1056
|
-
<a href="#
|
|
1099
|
+
<a href="#M001011" class="method-signature">
|
|
1057
1100
|
|
|
1058
1101
|
<span class="method-name">scenarioSpecific?</span><span class="method-args">(attrId)</span>
|
|
1059
1102
|
|
|
@@ -1069,16 +1112,16 @@ not.
|
|
|
1069
1112
|
</p>
|
|
1070
1113
|
|
|
1071
1114
|
<p><a class="source-toggle" href="#"
|
|
1072
|
-
onclick="toggleCode('
|
|
1073
|
-
<div class="method-source-code" id="
|
|
1115
|
+
onclick="toggleCode('M001011-source');return false;">[Source]</a></p>
|
|
1116
|
+
<div class="method-source-code" id="M001011-source">
|
|
1074
1117
|
<pre>
|
|
1075
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1118
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 115</span>
|
|
1119
|
+
115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenarioSpecific?</span>(<span class="ruby-identifier">attrId</span>)
|
|
1120
|
+
116: <span class="ruby-comment cmt"># All hardwired attributes are not scenario specific.</span>
|
|
1121
|
+
117: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
1122
|
+
118:
|
|
1123
|
+
119: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">scenarioSpecific</span>
|
|
1124
|
+
120: <span class="ruby-keyword kw">end</span>
|
|
1082
1125
|
</pre>
|
|
1083
1126
|
</div>
|
|
1084
1127
|
|
|
@@ -1086,12 +1129,12 @@ not.
|
|
|
1086
1129
|
</div>
|
|
1087
1130
|
|
|
1088
1131
|
|
|
1089
|
-
<div id="method-
|
|
1090
|
-
<a name="
|
|
1132
|
+
<div id="method-M001029" class="method-detail">
|
|
1133
|
+
<a name="M001029"></a>
|
|
1091
1134
|
|
|
1092
1135
|
<div class="method-heading">
|
|
1093
1136
|
|
|
1094
|
-
<a href="#
|
|
1137
|
+
<a href="#M001029" class="method-signature">
|
|
1095
1138
|
|
|
1096
1139
|
<span class="method-name">to_ary</span><span class="method-args">()</span>
|
|
1097
1140
|
|
|
@@ -1107,13 +1150,13 @@ objects as flat Array.
|
|
|
1107
1150
|
</p>
|
|
1108
1151
|
|
|
1109
1152
|
<p><a class="source-toggle" href="#"
|
|
1110
|
-
onclick="toggleCode('
|
|
1111
|
-
<div class="method-source-code" id="
|
|
1153
|
+
onclick="toggleCode('M001029-source');return false;">[Source]</a></p>
|
|
1154
|
+
<div class="method-source-code" id="M001029-source">
|
|
1112
1155
|
<pre>
|
|
1113
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1156
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 314</span>
|
|
1157
|
+
314: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ary</span>
|
|
1158
|
+
315: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">dup</span>
|
|
1159
|
+
316: <span class="ruby-keyword kw">end</span>
|
|
1117
1160
|
</pre>
|
|
1118
1161
|
</div>
|
|
1119
1162
|
|
|
@@ -1121,12 +1164,12 @@ objects as flat Array.
|
|
|
1121
1164
|
</div>
|
|
1122
1165
|
|
|
1123
1166
|
|
|
1124
|
-
<div id="method-
|
|
1125
|
-
<a name="
|
|
1167
|
+
<div id="method-M001030" class="method-detail">
|
|
1168
|
+
<a name="M001030"></a>
|
|
1126
1169
|
|
|
1127
1170
|
<div class="method-heading">
|
|
1128
1171
|
|
|
1129
|
-
<a href="#
|
|
1172
|
+
<a href="#M001030" class="method-signature">
|
|
1130
1173
|
|
|
1131
1174
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
|
1132
1175
|
|
|
@@ -1137,13 +1180,13 @@ objects as flat Array.
|
|
|
1137
1180
|
<div class="method-description">
|
|
1138
1181
|
|
|
1139
1182
|
<p><a class="source-toggle" href="#"
|
|
1140
|
-
onclick="toggleCode('
|
|
1141
|
-
<div class="method-source-code" id="
|
|
1183
|
+
onclick="toggleCode('M001030-source');return false;">[Source]</a></p>
|
|
1184
|
+
<div class="method-source-code" id="M001030-source">
|
|
1142
1185
|
<pre>
|
|
1143
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1186
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 318</span>
|
|
1187
|
+
318: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
|
1188
|
+
319: <span class="ruby-constant">PropertyList</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">to_s</span>
|
|
1189
|
+
320: <span class="ruby-keyword kw">end</span>
|
|
1147
1190
|
</pre>
|
|
1148
1191
|
</div>
|
|
1149
1192
|
|
|
@@ -1151,12 +1194,12 @@ objects as flat Array.
|
|
|
1151
1194
|
</div>
|
|
1152
1195
|
|
|
1153
1196
|
|
|
1154
|
-
<div id="method-
|
|
1155
|
-
<a name="
|
|
1197
|
+
<div id="method-M001027" class="method-detail">
|
|
1198
|
+
<a name="M001027"></a>
|
|
1156
1199
|
|
|
1157
1200
|
<div class="method-heading">
|
|
1158
1201
|
|
|
1159
|
-
<a href="#
|
|
1202
|
+
<a href="#M001027" class="method-signature">
|
|
1160
1203
|
|
|
1161
1204
|
<span class="method-name">topLevelItems</span><span class="method-args">()</span>
|
|
1162
1205
|
|
|
@@ -1173,17 +1216,17 @@ are no children.
|
|
|
1173
1216
|
</p>
|
|
1174
1217
|
|
|
1175
1218
|
<p><a class="source-toggle" href="#"
|
|
1176
|
-
onclick="toggleCode('
|
|
1177
|
-
<div class="method-source-code" id="
|
|
1219
|
+
onclick="toggleCode('M001027-source');return false;">[Source]</a></p>
|
|
1220
|
+
<div class="method-source-code" id="M001027-source">
|
|
1178
1221
|
<pre>
|
|
1179
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1222
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 298</span>
|
|
1223
|
+
298: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">topLevelItems</span>
|
|
1224
|
+
299: <span class="ruby-identifier">items</span> = <span class="ruby-value">0</span>
|
|
1225
|
+
300: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
|
1226
|
+
301: <span class="ruby-identifier">items</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
|
1227
|
+
302: <span class="ruby-keyword kw">end</span>
|
|
1228
|
+
303: <span class="ruby-identifier">items</span>
|
|
1229
|
+
304: <span class="ruby-keyword kw">end</span>
|
|
1187
1230
|
</pre>
|
|
1188
1231
|
</div>
|
|
1189
1232
|
|
|
@@ -1191,12 +1234,12 @@ are no children.
|
|
|
1191
1234
|
</div>
|
|
1192
1235
|
|
|
1193
1236
|
|
|
1194
|
-
<div id="method-
|
|
1195
|
-
<a name="
|
|
1237
|
+
<div id="method-M001014" class="method-detail">
|
|
1238
|
+
<a name="M001014"></a>
|
|
1196
1239
|
|
|
1197
1240
|
<div class="method-heading">
|
|
1198
1241
|
|
|
1199
|
-
<a href="#
|
|
1242
|
+
<a href="#M001014" class="method-signature">
|
|
1200
1243
|
|
|
1201
1244
|
<span class="method-name">userDefined?</span><span class="method-args">(attrId)</span>
|
|
1202
1245
|
|
|
@@ -1211,15 +1254,15 @@ Return whether or not the attribute was user defined.
|
|
|
1211
1254
|
</p>
|
|
1212
1255
|
|
|
1213
1256
|
<p><a class="source-toggle" href="#"
|
|
1214
|
-
onclick="toggleCode('
|
|
1215
|
-
<div class="method-source-code" id="
|
|
1257
|
+
onclick="toggleCode('M001014-source');return false;">[Source]</a></p>
|
|
1258
|
+
<div class="method-source-code" id="M001014-source">
|
|
1216
1259
|
<pre>
|
|
1217
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1260
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 140</span>
|
|
1261
|
+
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">userDefined?</span>(<span class="ruby-identifier">attrId</span>)
|
|
1262
|
+
141: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
|
1263
|
+
142:
|
|
1264
|
+
143: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">userDefined</span>
|
|
1265
|
+
144: <span class="ruby-keyword kw">end</span>
|
|
1223
1266
|
</pre>
|
|
1224
1267
|
</div>
|
|
1225
1268
|
|