home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cadbinarya.tcl
< prev
next >
Wrap
Text File
|
1997-09-03
|
4KB
|
172 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)cadbinarya.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cadbinarya.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 "cadassocia.tcl"
Class CADBinaryAssoc : {CADAssociation} {
constructor
method destructor
method load
method getNameLabel
method getNameItem
method getNameWorkItem
method name
method getFromRoleLabel
method getFromRoleItem
method getFromRoleWorkItem
method fromRole
method getFromConstraintLabel
method fromConstraint
method getToRoleLabel
method getToRoleItem
method getToRoleWorkItem
method toRole
method getToConstraintLabel
method toConstraint
method getQualifierLabel
method getQualifierItem
method getQualifierWorkItem
method qualifier
attribute toClass
attribute fromClass
}
constructor CADBinaryAssoc {class this inModel} {
set this [CADAssociation::constructor $class $this $inModel]
# Start constructor user section
# End constructor user section
return $this
}
method CADBinaryAssoc::destructor {this} {
# Start destructor user section
# End destructor user section
$this CADAssociation::destructor
}
method CADBinaryAssoc::load {this} {
if {[$this loaded] == 1} {
return
}
$this loaded 1
$this fromClass [$this getFrom $OMT_CAD_CB_Class]
$this toClass [$this getTo $OMT_CAD_CB_Class]
}
method CADBinaryAssoc::getNameLabel {this} {
return [$this getLabel]
}
method CADBinaryAssoc::getNameItem {this} {
return [$this getItem]
}
method CADBinaryAssoc::getNameWorkItem {this} {
return [$this getWorkItem]
}
method CADBinaryAssoc::name {this} {
set nameItem [$this getNameItem]
if {[$nameItem isNil]} {
return ""
}
return [$nameItem name]
}
method CADBinaryAssoc::getFromRoleLabel {this} {
return [$this getLabel 0 $LT_ROLE_AT_START]
}
method CADBinaryAssoc::getFromRoleItem {this} {
return [$this getItem 0 $LT_ROLE_AT_START $IT_DATA]
}
method CADBinaryAssoc::getFromRoleWorkItem {this} {
return [$this getWorkItem 0 $LT_ROLE_AT_START $IT_DATA]
}
method CADBinaryAssoc::fromRole {this} {
set fromRoleItem [$this getFromRoleItem]
if {[$fromRoleItem isNil]} {
return ""
}
return [$fromRoleItem name]
}
method CADBinaryAssoc::getFromConstraintLabel {this} {
return [$this getLabel 0 $LT_CONSTRAINT_AT_START]
}
method CADBinaryAssoc::fromConstraint {this} {
set label [$this getFromConstraintLabel]
if [$label isNil] {
return ""
}
return [$label value]
}
method CADBinaryAssoc::getToRoleLabel {this} {
return [$this getLabel 0 $LT_ROLE_AT_END]
}
method CADBinaryAssoc::getToRoleItem {this} {
return [$this getItem 0 $LT_ROLE_AT_END $IT_DATA]
}
method CADBinaryAssoc::getToRoleWorkItem {this} {
return [$this getWorkItem 0 $LT_ROLE_AT_END $IT_DATA]
}
method CADBinaryAssoc::toRole {this} {
set toRoleItem [$this getToRoleItem]
if {[$toRoleItem isNil]} {
return ""
}
return [$toRoleItem name]
}
method CADBinaryAssoc::getToConstraintLabel {this} {
return [$this getLabel 0 $LT_CONSTRAINT_AT_END]
}
method CADBinaryAssoc::toConstraint {this} {
set label [$this getToConstraintLabel]
if [$label isNil] {
return ""
}
return [$label value]
}
method CADBinaryAssoc::getQualifierLabel {this} {
return [$this getLabel 0 $LT_QUALIFIER]
}
method CADBinaryAssoc::getQualifierItem {this} {
return [$this getItem 0 $LT_QUALIFIER $IT_DATA]
}
method CADBinaryAssoc::getQualifierWorkItem {this} {
return [$this getWorkItem 0 $LT_QUALIFIER $IT_DATA]
}
method CADBinaryAssoc::qualifier {this} {
set qualifierItem [$this getQualifierItem]
if {[$qualifierItem isNil]} {
return ""
}
return [$qualifierItem name]
}
# Do not delete this line -- regeneration end marker