An error occurred while loading the file. Please try again.
-
Guillaume Perréal authoreda0c11586
<?xml version="1.0"?>
<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.6 of lundi 3 mars 2008 on mardi 15 octobre 2019 at 6:46:00</time-stamp>
<class>
<name>DataTransfR</name>
<environment>CormasNS.Kernel</environment>
<super>Core.Object</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>myCormas entityType attribute ids values </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category></category>
<attributes>
<package>Cormas</package>
</attributes>
</class>
<!-- - - - - - - - - - - - - - - - - - - -->
<methods>
<class-id>CormasNS.Kernel.DataTransfR class</class-id> <category>instance creation</category>
<body package="Cormas" selector="new">new
"Answer a newly created and initialized instance."
^super new initialize</body>
<body package="Cormas" selector="newData:cormas:">newData: classAttIdsValues cormas: aCormasInstance
"Answer a newly created and initialized instance."
| newBe idsValues data|
newBe:= self new.
newBe myCormas: aCormasInstance.
data := classAttIdsValues asArrayOfSubstringsSeparatedBy: $;.
newBe entityType: data first.
newBe attribute: (data at: 2).
idsValues:= (data at: 3) asArrayOfSubstringsSeparatedBy: $,.
idsValues size > 0 ifTrue: [
newBe ids: (idsValues asOrderedCollection collect: [: string | string asInteger]).
newBe values: ( ( (data at: 4) asArrayOfSubstringsSeparatedBy: $,) asOrderedCollection collect: [: string | string asNumber asFloat]).
].
^newBe</body>
</methods>
<!-- - - - - - - - - - - - - - - - - - - -->
<methods>
<class-id>CormasNS.Kernel.DataTransfR</class-id> <category>initialize-release</category>
<body package="Cormas" selector="initialize">initialize
"Initialize a newly created instance. This method must answer the receiver."
" *** Replace this comment with the appropriate initialization code *** "
^self</body>
</methods>
<methods>
<class-id>CormasNS.Kernel.DataTransfR</class-id> <category>accessing</category>
<body package="Cormas" selector="attribute">attribute
^attribute</body>
<body package="Cormas" selector="attribute:">attribute: anObject
attribute := anObject</body>