home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)msumlnamed.tcl /main/hindenburg/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)msumlnamed.tcl /main/hindenburg/7 15 May 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- #require "msumlsumma.tcl"
-
- Class MSUMLNamedObject : {MSUMLSummaryInformation} {
- constructor
- method destructor
- method name
- method promoter
- method interfaceOfMe
- method getInterfaceObject
- method setInterfaceObject
- method removeInterfaceObject
- method saveFreeTextProp
- method loadFreeTextProp
- attribute msUmlObject
- attribute interfaceObject
- }
-
- constructor MSUMLNamedObject {class this typeName} {
- set this [MSUMLSummaryInformation::constructor $class $this $typeName]
- $this interfaceObject [Dictionary new]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method MSUMLNamedObject::destructor {this} {
- # Start destructor user section
- [$this interfaceObject] foreach id intObj {
- $intObj delete
- }
- set msUmlObject [$this msUmlObject]
- if [llength $msUmlObject] {
- $msUmlObject delete
- }
- # End destructor user section
- $this MSUMLSummaryInformation::destructor
- }
-
- method MSUMLNamedObject::name {this} {
- [$this msObject] property Name
- }
-
- method MSUMLNamedObject::promoter {this} {
- $this interfaceObject [Dictionary new]
- $this MSUMLSummaryInformation::promoter
- }
-
- method MSUMLNamedObject::interfaceOfMe {this interface} {
- set int [$this getInterfaceObject $interface]
- if [llength $int] {
- return $int
- }
- set int [$this getInterface $interface]
- $this setInterfaceObject $interface $int
- return $int
-
- }
-
- # Do not delete this line -- regeneration end marker
-
- method MSUMLNamedObject::getInterfaceObject {this interfaceName} {
- return [[$this interfaceObject] set $interfaceName]
- }
-
- method MSUMLNamedObject::setInterfaceObject {this interfaceName newInterfaceObject} {
- [$this interfaceObject] set $interfaceName $newInterfaceObject
- }
-
- method MSUMLNamedObject::removeInterfaceObject {this interfaceName} {
- [$this interfaceObject] unset $interfaceName
- }
-
- method MSUMLNamedObject::saveFreeTextProp {this msObject propObject} {
- set freeText [$propObject getPropertyValue freeText]
- if [llength $freeText] {
- set iSummObject [$msObject getInterface ISummaryInformation]
- $iSummObject property Comments $freeText
- }
- }
-
- method MSUMLNamedObject::loadFreeTextProp {this revEngObject {type "item"}} {
- set iSummObject [$this interfaceOfMe ISummaryInformation]
- set freeText [$iSummObject property Comments]
- if [llength $freeText] {
- $revEngObject setProp freeText $freeText $type
- }
- }
-
-
-