home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1995
- #
- # File: %W%
- # Author: Challenger
- # Description: Implementation of old Report Writer table Item
- #
- #---------------------------------------------------------------------------
- # SccsId = %W% %G% Copyright 1995 Cadre Technologies Inc.
-
-
- constructor ItemRecord {class this configVersion phaseVersion systemVersion \
- fileVersion workitem} {
- set this [GCObject::constructor $class $this]
-
- $this _workitem $workitem
- $this _item [$workitem item]
-
- $this project_version [$configVersion versionNumber]
- $this phase_id [[$phaseVersion phase] identity]
- $this system_id [[$systemVersion system] identity]
-
- if { $fileVersion == "" } {
- $this file_id 0
- } else {
- $this file_id [[$fileVersion file] identity]
- }
-
- $this data_type "unknown"
- $this data_type_id 0
-
- return $this
- }
-
-
- method ItemRecord::item_id {this} {
- return [[$this _workitem] identity]
- }
-
-
- method ItemRecord::name {this} {
- return [[$this _item] name]
- }
-
-
- method ItemRecord::scope {this} {
- return [old2newscope [[$this _workitem] scope]]
- }
-
-
- method ItemRecord::qualifier {this} {
- set qual [[$this _item] qualifier]
- if [$qual isNil] {
- return [ORB::nil]
- }
-
- return [$qual name]
- }
-
-
- method ItemRecord::qualifier_id {this} {
- set qual [[$this _item] qualifier]
- if [$qual isNil] {
- return 0
- }
-
- return [$qual identity]
- }
-
-
- method ItemRecord::item_type {this} {
- return [short2longname [$this short_type]]
- }
-
-
- method ItemRecord::short_type {this} {
- return [[$this _item] type]
- }
-