home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
msumlmembe.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
2KB
|
62 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)msumlmembe.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)msumlmembe.tcl /main/titanic/2 29 Aug 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
#require "msumltypee.tcl"
Class MSUMLMember : {MSUMLTypeExpression} {
method destructor
constructor
method promoter
method owner
attribute _owner
}
method MSUMLMember::destructor {this} {
set ref [$this _owner]
if {$ref != ""} {
[$ref _memberSet] removeValue $this
}
# Start destructor user section
# End destructor user section
$this MSUMLTypeExpression::destructor
}
constructor MSUMLMember {class this typeName workItem {typeItem ""}} {
set this [MSUMLTypeExpression::constructor $class $this $typeName $typeItem]
$this workItem $workItem
return $this
}
method MSUMLMember::promoter {this} {
$this MSUMLTypeExpression::promoter
}
# Do not delete this line -- regeneration end marker
method MSUMLMember::owner {this args} {
if {$args == ""} {
return [$this _owner]
}
set ref [$this _owner]
if {$ref != ""} {
[$ref _memberSet] removeValue $this
}
set obj [lindex $args 0]
if {$obj != ""} {
[$obj _memberSet] append $this
}
$this _owner $obj
}