-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e6c744
commit 1f13d3e
Showing
9 changed files
with
185 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
Class { | ||
#name : #OPUMLXMIPathmap, | ||
#superclass : #Object, | ||
#name : 'OPUMLXMIPathmap', | ||
#superclass : 'Object', | ||
#instVars : [ | ||
'mapping' | ||
], | ||
#category : 'OP-UML-XMI-Utility' | ||
#category : 'OP-UML-XMI-Utility', | ||
#package : 'OP-UML-XMI', | ||
#tag : 'Utility' | ||
} | ||
|
||
{ #category : #accessing } | ||
{ #category : 'accessing' } | ||
OPUMLXMIPathmap class >> default [ | ||
^ self new | ||
add: 'http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi'; | ||
add: 'http://www.omg.org/spec/UML/20131001/UML.xmi'; | ||
yourself | ||
] | ||
|
||
{ #category : #adding } | ||
{ #category : 'adding' } | ||
OPUMLXMIPathmap >> add: aPath [ | ||
self add: aPath retrieveUsing: [ OPUMLXMISpecsStorage current at: aPath ] | ||
] | ||
|
||
{ #category : #adding } | ||
{ #category : 'adding' } | ||
OPUMLXMIPathmap >> add: aPath retrieveUsing: aBlock [ | ||
mapping at: aPath put: aBlock value | ||
] | ||
|
||
{ #category : #initialization } | ||
{ #category : 'initialization' } | ||
OPUMLXMIPathmap >> initialize [ | ||
super initialize. | ||
mapping := OrderedDictionary new | ||
] | ||
|
||
{ #category : #accessing } | ||
{ #category : 'accessing' } | ||
OPUMLXMIPathmap >> mapping [ | ||
^ mapping | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.