author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 18 Sep 2012 18:24:44 +0000 | |
changeset 16 | 25ac697dc747 |
parent 14 | f01fe37493e9 |
permissions | -rw-r--r-- |
11
d354ac2af7ec
Metacello package refactoring - phase 2~
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
1 |
"{ Package: 'stx:goodies/metacello/core' }" |
1 | 2 |
|
3 |
MetacelloSpec subclass:#MetacelloValueHolderSpec |
|
4 |
instanceVariableNames:'value' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'Metacello-Core-Specs' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!MetacelloValueHolderSpec methodsFor:'accessing'! |
|
12 |
||
13 |
value: anObject |
|
14 |
value := anObject |
|
15 |
! ! |
|
16 |
||
16
25ac697dc747
- Updated from branch master
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
17 |
!MetacelloValueHolderSpec methodsFor:'construction'! |
25ac697dc747
- Updated from branch master
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
18 |
|
25ac697dc747
- Updated from branch master
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
19 |
value: anObject constructor: aVersionConstructor |
25ac697dc747
- Updated from branch master
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
20 |
aVersionConstructor valueForValueHolder: anObject |
25ac697dc747
- Updated from branch master
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
21 |
! ! |
25ac697dc747
- Updated from branch master
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
22 |
|
1 | 23 |
!MetacelloValueHolderSpec methodsFor:'merging'! |
24 |
||
25 |
mergeMap |
|
26 |
||
27 |
| map | |
|
28 |
map := super mergeMap. |
|
29 |
map at: #value put: value. |
|
30 |
^map |
|
31 |
! ! |
|
32 |
||
33 |
!MetacelloValueHolderSpec methodsFor:'printing'! |
|
34 |
||
35 |
configMethodOn: aStream indent: indent |
|
36 |
||
37 |
aStream tab: indent; nextPutAll: 'spec value: ', self value printString |
|
38 |
! ! |
|
39 |
||
40 |
!MetacelloValueHolderSpec methodsFor:'private'! |
|
41 |
||
42 |
setAuthorInMetacelloVersion: aMetacelloVersionSpec |
|
43 |
||
44 |
aMetacelloVersionSpec setAuthor: self |
|
45 |
! |
|
46 |
||
47 |
setBlessingInMetacelloVersion: aMetacelloVersionSpec |
|
48 |
||
49 |
aMetacelloVersionSpec setBlessing: self |
|
50 |
! |
|
51 |
||
52 |
setDescriptionInMetacelloVersion: aMetacelloVersionSpec |
|
53 |
||
54 |
aMetacelloVersionSpec setDescription: self |
|
55 |
! |
|
56 |
||
57 |
setPostLoadDoItInMetacelloSpec: aMetacelloSpec |
|
58 |
||
59 |
aMetacelloSpec setPostLoadDoIt: self |
|
60 |
! |
|
61 |
||
62 |
setPreLoadDoItInMetacelloSpec: aMetacelloSpec |
|
63 |
||
64 |
aMetacelloSpec setPreLoadDoIt: self |
|
65 |
! |
|
66 |
||
67 |
setTimestampInMetacelloVersion: aMetacelloVersionSpec |
|
68 |
||
69 |
aMetacelloVersionSpec setTimestamp: self |
|
70 |
! ! |
|
71 |
||
72 |
!MetacelloValueHolderSpec methodsFor:'querying'! |
|
73 |
||
74 |
value |
|
75 |
^ value |
|
76 |
! ! |
|
77 |
||
78 |
!MetacelloValueHolderSpec class methodsFor:'documentation'! |
|
79 |
||
80 |
version_SVN |
|
81 |
^ '$Id:: $' |
|
82 |
! ! |