ProtoObjectObjectWAConfigurationWAMutableConfiguration
| values |
| instance | class |
|---|---|
| as yet unclassified | no messages
|
| values |
|---|
|
|
| as yet unclassified |
|---|
| clear |
values _ Dictionary new. |
| clearValueForAttribute: anAttribute |
values removeKey: anAttribute key ifAbsent: [] |
| initialize |
super initialize. values _ Dictionary new |
| isMutable |
^ true |
| localValueAt: aSymbol ifAbsent: errorBlock |
^ values at: aSymbol ifAbsent: errorBlock |
| localValues |
| dict | dict _ Dictionary new. self allAttributes do: [:attr | (self localValueAt: attr key ifAbsent: [nil]) ifNotNilDo: [:value | dict at: attr key put: (attr stringForValue: value)]]. ^ dict |
| localValues: aDictionary |
self allAttributes do: [:attr | (aDictionary at: attr key ifAbsent: [nil]) ifNotNilDo: [:string | self valueAt: attr key put: (attr valueFromString: string)]] |
| overrideAttribute: anAttribute |
self takeValue: (self valueForAttribute: anAttribute) forAttribute: anAttribute |
| takeValue: anObject forAttribute: anAttribute |
^ anObject ifNotNil: [values at: anAttribute key put: anObject] |
| valueAt: aSymbol put: anObject |
^ self takeValue: anObject forAttribute: (self attributeNamed: aSymbol) |