Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions ASN1-Model/ASN1AdaptiveTypeCollection.class.st
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
Class {
#name : #ASN1AdaptiveTypeCollection,
#superclass : #ASN1AdaptiveTypeValue,
#name : 'ASN1AdaptiveTypeCollection',
#superclass : 'ASN1AdaptiveTypeValue',
#instVars : [
'elements'
],
#category : 'ASN1-Model'
#category : 'ASN1-Model',
#package : 'ASN1-Model'
}

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeCollection >> add: anObject [
elements add: anObject.
]

{ #category : #'as yet unclassified' }
{ #category : 'as yet unclassified' }
ASN1AdaptiveTypeCollection >> addAll: aCollection [
elements addAll: aCollection.
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeCollection >> addUsing: aBlock [
"create a new object of the nested type and hand it over
to the given block for initialization. Add the return value in
Expand All @@ -28,53 +29,53 @@ ASN1AdaptiveTypeCollection >> addUsing: aBlock [
^ self add: newValue
]

{ #category : #finding }
{ #category : 'finding' }
ASN1AdaptiveTypeCollection >> basicFind: aKey [
^ self find: aKey in: elements
]

{ #category : #iterating }
{ #category : 'iterating' }
ASN1AdaptiveTypeCollection >> collect: aBlock [
^ elements collect: aBlock
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeCollection >> elements [
^ elements
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeCollection >> first [
^ elements first
]

{ #category : #initialization }
{ #category : 'initialization' }
ASN1AdaptiveTypeCollection >> initialize [
super initialize.
elements := OrderedCollection new
]

{ #category : #initialize }
{ #category : 'initialize' }
ASN1AdaptiveTypeCollection >> initializeFrom: anObject [

]

{ #category : #testing }
{ #category : 'testing' }
ASN1AdaptiveTypeCollection >> isEmpty [
^ elements isEmpty
]

{ #category : #testing }
{ #category : 'testing' }
ASN1AdaptiveTypeCollection >> isEmptyOrNil [
^ elements isEmptyOrNil
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeCollection >> size [
^ elements size
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeCollection >> value: aCollection [
elements := aCollection asOrderedCollection
]
29 changes: 15 additions & 14 deletions ASN1-Model/ASN1AdaptiveTypeExternal.class.st
Original file line number Diff line number Diff line change
@@ -1,65 +1,66 @@
Class {
#name : #ASN1AdaptiveTypeExternal,
#superclass : #ASN1AdaptiveTypeValue,
#name : 'ASN1AdaptiveTypeExternal',
#superclass : 'ASN1AdaptiveTypeValue',
#instVars : [
'oid',
'value',
'encoded'
],
#category : 'ASN1-Model'
#category : 'ASN1-Model',
#package : 'ASN1-Model'
}

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> at: aKey [
^ value at: aKey
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> decoded: anObject [
value := anObject
]

{ #category : #'as yet unclassified' }
{ #category : 'as yet unclassified' }
ASN1AdaptiveTypeExternal >> doesNotUnderstand: aMessage [
^ aMessage sendTo: value
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> encoded [
^ encoded
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> encoded: anObject [
encoded := anObject
]

{ #category : #'as yet unclassified' }
{ #category : 'as yet unclassified' }
ASN1AdaptiveTypeExternal >> externalValue [
^ value
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> oid [
^ oid
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> oid: anObject [
oid := anObject
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> value [
^ value
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> value: anObject [
value := anObject
]

{ #category : #accessing }
{ #category : 'accessing' }
ASN1AdaptiveTypeExternal >> valueClass [
^ nil
]
Loading
Loading