home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cbassociat.tcl
< prev
next >
Wrap
Text File
|
1997-09-03
|
1KB
|
60 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)cbassociat.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cbassociat.tcl /main/titanic/1 3 Sep 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "cbtlentry.tcl"
Class CBAssociation : {CBTLEntry} {
constructor
method destructor
method multKindToString
}
constructor CBAssociation {class this name} {
set this [CBTLEntry::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method CBAssociation::destructor {this} {
# Start destructor user section
# End destructor user section
$this CBTLEntry::destructor
}
method CBAssociation::multKindToString {this multKind constraint} {
if [$classBrowser umlLook] {
#if {$constraint != ""} {
# return "$constraint"
#}
if {$multKind == "many"} {
return "*"
} elseif {$multKind == "optional"} {
return "0..1"
} else {
return "1"
}
} else {
if {$multKind == "many"} {
return "*"
}
if {$multKind == "optional"} {
return "o"
}
return "-"
}
}
# Do not delete this line -- regeneration end marker