Skip to content

Commit

Permalink
set a few method protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Jun 18, 2024
1 parent 5f87e85 commit ece4341
Show file tree
Hide file tree
Showing 47 changed files with 45 additions and 62 deletions.
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAAdaptiveModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class {
'magritteDescription',
'values'
],
#category : 'Magritte-Model-Models'
#category : #'Magritte-Model-Models'
}

{ #category : #'instance creation' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MABasicObject.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #MABasicObject,
#superclass : #GRObject,
#category : 'Magritte-Model-Core'
#category : #'Magritte-Model-Core'
}

{ #category : #'error handling' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MABooleanDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of the Boolean values ==true== and ==false==. My visual repre
Class {
#name : #MABooleanDescription,
#superclass : #MAElementDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAColorDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of colors, possible values are instances of ==Color==. My vis
Class {
#name : #MAColorDescription,
#superclass : #MAElementDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MACondition.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #MACondition,
#superclass : #MAObject,
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAConditionError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that is raised whenever a user-defined condition is failing.
Class {
#name : #MAConditionError,
#superclass : #MAValidationError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAConflictError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that is raised whenever there is an edit conflict.
Class {
#name : #MAConflictError,
#superclass : #MAValidationError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAConjunctiveCondition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'conditions'
],
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #operators }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MADateAndTimeDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of date and times, possible values are instances of ==DateAnd
Class {
#name : #MADateAndTimeDescription,
#superclass : #MAMagnitudeDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MADateDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of dates, possible values are instances of ==Date==. My visua
Class {
#name : #MADateDescription,
#superclass : #MAMagnitudeDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MADurationDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of durations, possible values are instances of ==Duration==.
Class {
#name : #MADurationDescription,
#superclass : #MAMagnitudeDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MADynamicDescribedObject.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Class {
#name : #MADynamicDescribedObject,
#superclass : #MADynamicVariable,
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MADynamicVariable.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #MADynamicVariable,
#superclass : #GRNotification,
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #defaults }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAElementDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ MAElementDescription >> lazilyInitializeFrom: currentValue for: anObject [
^ defaultValue
]

{ #category : #'*magritte-model' }
{ #category : #printing }
MAElementDescription >> printFor: anObject on: aWriteStream [
(self read: anObject) ifNotNil: [ :value | aWriteStream nextPutAll: (self toString: value) ]
]
Expand Down
6 changes: 0 additions & 6 deletions source/Magritte-Model/MAElementDescription.extension.st

This file was deleted.

2 changes: 1 addition & 1 deletion source/Magritte-Model/MAError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I represent a generic Magritte error.
Class {
#name : #MAError,
#superclass : #GRError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAFileModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class {
#classVars : [
'MimeTypes'
],
#category : 'Magritte-Model-Models'
#category : #'Magritte-Model-Models'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAIdentityAccessor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a read-only access strategy and I answer the model itself when being read.
Class {
#name : #MAIdentityAccessor,
#superclass : #MAAccessor,
#category : 'Magritte-Model-Accessor'
#category : #'Magritte-Model-Accessor'
}

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAKindError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that is raised whenever a description is applied to the wrong type
Class {
#name : #MAKindError,
#superclass : #MAValidationError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAMagnitudeDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am an abstract description for subclasses of ==Magnitude==. The range of accep
Class {
#name : #MAMagnitudeDescription,
#superclass : #MAElementDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAMemoDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of multiline strings, possible values are instances of ==Stri
Class {
#name : #MAMemoDescription,
#superclass : #MAStringDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAMemoryFileModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#instVars : [
'contents'
],
#category : 'Magritte-Model-Models'
#category : #'Magritte-Model-Models'
}

{ #category : #comparing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAMultipleErrors.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#instVars : [
'collection'
],
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}

{ #category : #'instance creation' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MANegationCondition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'condition'
],
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #'instance creation' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MANullAccessor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#instVars : [
'uuid'
],
#category : 'Magritte-Model-Accessor'
#category : #'Magritte-Model-Accessor'
}

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAPasswordDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of a password string, possible values are instances of ==Stri
Class {
#name : #MAPasswordDescription,
#superclass : #MAStringDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAPluggableAccessor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class {
'readBlock',
'writeBlock'
],
#category : 'Magritte-Model-Accessor'
#category : #'Magritte-Model-Accessor'
}

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAPluggableCondition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
'arguments',
'index'
],
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #initialization }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAPriorityContainer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a container holding a collection of descriptions and I keep them sorted acc
Class {
#name : #MAPriorityContainer,
#superclass : #MAContainer,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAPropertyError.class.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Class {
#name : #MAPropertyError,
#superclass : #MAError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MARangeError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that is raised whenever a described value is out of bounds.
Class {
#name : #MARangeError,
#superclass : #MAValidationError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAReadError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that gets raised when there is problem reading serialized data.
Class {
#name : #MAReadError,
#superclass : #MAError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAReader.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #MAReader,
#superclass : #MAStreamingVisitor,
#category : 'Magritte-Model-Visitor'
#category : #'Magritte-Model-Visitor'
}

{ #category : #'instance creation' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MARequiredError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that is raised whenever a required value is not supplied.
Class {
#name : #MARequiredError,
#superclass : #MAValidationError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
2 changes: 1 addition & 1 deletion source/Magritte-Model/MASortBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'accessor',
'selector'
],
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #'instance creation' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAStreamingVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'stream',
'object'
],
#category : 'Magritte-Model-Visitor'
#category : #'Magritte-Model-Visitor'
}

{ #category : #streaming }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAStringDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of strings, possible values are instances of ==String==. My v
Class {
#name : #MAStringDescription,
#superclass : #MAElementDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MASymbolDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ I am a description of symbols, possible values are instances of ==Symbol==.
Class {
#name : #MASymbolDescription,
#superclass : #MAStringDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
11 changes: 0 additions & 11 deletions source/Magritte-Model/MATPropertyOwner.extension.st

This file was deleted.

2 changes: 1 addition & 1 deletion source/Magritte-Model/MATPropertyOwner.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ MATPropertyOwner >> hasProperty: aKey [
^ self properties includesKey: aKey
]

{ #category : #'*Magritte-Model' }
{ #category : #accessing }
MATPropertyOwner >> maLazyPropertyUsing: description [
"Return the current value of a field as specified by its description. See #lazilyInitializeFrom:for: comment for more info.
- NB: Only works with a selector accessor with matching property e.g. (readSelector = property = #myField). It could be extended to other cases if the need arises."
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MATableModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Class {
'columnCount',
'contents'
],
#category : 'Magritte-Model-Models'
#category : #'Magritte-Model-Models'
}

{ #category : #'instance creation' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Like MAToManyRelationDescription but for scalar values.
Class {
#name : #MAToManyScalarRelationDescription,
#superclass : #MAToManyRelationDescription,
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #accessing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MATokenDescription.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#instVars : [
'separators'
],
#category : 'Magritte-Model-Description'
#category : #'Magritte-Model-Description'
}

{ #category : #'accessing-defaults' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAValueHolder.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'contents'
],
#category : 'Magritte-Model-Utility'
#category : #'Magritte-Model-Utility'
}

{ #category : #'instance creation' }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAVariableAccessor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#instVars : [
'name'
],
#category : 'Magritte-Model-Accessor'
#category : #'Magritte-Model-Accessor'
}

{ #category : #testing }
Expand Down
2 changes: 1 addition & 1 deletion source/Magritte-Model/MAWriteError.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ I am an error that gets raised when there is problem writing serialized data.
Class {
#name : #MAWriteError,
#superclass : #MAError,
#category : 'Magritte-Model-Exception'
#category : #'Magritte-Model-Exception'
}
Loading

0 comments on commit ece4341

Please sign in to comment.