home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)cadbinarya.tcl /main/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cadbinarya.tcl /main/2 11 Jun 1996 Copyright 1996 Cadre Technologies 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 getToRoleLabel
- method getToRoleItem
- method getToRoleWorkItem
- method toRole
- 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::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::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
-
-