@@ -10,27 +10,34 @@ Class {
10
10
11
11
{ #category : #checking }
12
12
SoilConsistencyVisitor >> check [
13
- self visit : soil
13
+ self visitWithTransaction : soil
14
14
]
15
15
16
16
{ #category : #' as yet unclassified' }
17
- SoilConsistencyVisitor >> check: anObject using: aBlock proceed: aBoolean [
17
+ SoilConsistencyVisitor >> check: anObject using: aBlock [
18
18
aBlock
19
19
on: Error
20
20
do: [ :error |
21
21
errors at: anObject put: error ]
22
22
]
23
23
24
24
{ #category : #' as yet unclassified' }
25
- SoilConsistencyVisitor >> checkCluster: cluster [
26
- self checkObjectId: cluster objectId.
27
- cluster references do: [ :ref |
28
- self checkObjectId: ref ]
25
+ SoilConsistencyVisitor >> checkBehaviorDescription: objectId [
26
+ | description |
27
+ description := transaction objectWithId: objectId.
28
+ self check: description using: [
29
+ soil behaviorRegistry
30
+ nameAt: description behaviorIdentifier
31
+ ifAbsent: [ Error signal : ' description for ' , description behaviorIdentifier asString , ' cannot not be found in identifier index' ] ]
29
32
]
30
33
31
34
{ #category : #' as yet unclassified' }
32
- SoilConsistencyVisitor >> checkHeaderPage: headerPage [
33
- self shouldBeImplemented.
35
+ SoilConsistencyVisitor >> checkCluster: cluster [
36
+ self checkObjectId: cluster objectId.
37
+ cluster references do: [ :ref |
38
+ self checkObjectId: ref ].
39
+ cluster behaviorDescriptions do: [ :description |
40
+ self checkBehaviorDescription: description ]
34
41
]
35
42
36
43
{ #category : #' as yet unclassified' }
@@ -46,7 +53,7 @@ SoilConsistencyVisitor >> checkPage: aPage [
46
53
self
47
54
check: aPage
48
55
using: [ aPage validate ]
49
- proceed: true
56
+
50
57
]
51
58
52
59
{ #category : #' as yet unclassified' }
0 commit comments