Resumen del contenido incluido en la página 1
OBJECT ORIENTED MODEL
User’s Guide
POWERDESIGNER 7.5
Resumen del contenido incluido en la página 2
Copyright (c) 1988–2000 Sybase, Inc. All rights reserved. Information in this manual may change without notice and does not represent a commitment on the part of Sybase, Inc. and its subsidiaries. The software described in this manual is provided by Sybase, Inc. under a Sybase License agreement. The software may be used only in accordance with the terms of the agreement. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanica
Resumen del contenido incluido en la página 3
Contents About This Book ............................................................................................ix 1 Object-Oriented Model Basics ..........................................1 Functional overview .................................................................. 2 UML and object-oriented modeling........................................... 3 What is an OOM? ..................................................................... 4 Objects in an OOM ................................
Resumen del contenido incluido en la página 4
Preview the code of an interface...................................... 45 Displaying text in interface symbols ................................. 46 Defining attributes................................................................... 48 Attribute properties ........................................................... 49 Analyzing attribute properties ........................................... 50 Creating an attribute......................................................... 51 Modifying attribut
Resumen del contenido incluido en la página 5
Creating a dependency .................................................. 109 Modifying dependency properties................................... 111 Displaying text in dependency symbols.......................... 112 Defining realizations.............................................................. 114 Realization properties..................................................... 114 Creating a realization...................................................... 115 Modifying realization properties...
Resumen del contenido incluido en la página 6
Reverse engineering PowerBuilder options ................... 166 Loading a PowerBuilder library model in the workspace ................................................................ 168 Reverse engineering objects from a PowerBuilder application................................................ 169 Reverse engineering objects from SRU files ................. 171 Reverse engineering XML .................................................... 174 Reverse engineering XML options ......................
Resumen del contenido incluido en la página 7
Translating OOM data types for a PDM................................ 217 Translating Java data types for a PDM .......................... 217 Generating a PDM from an OOM ......................................... 218 Generating and updating a PDM.................................... 218 Defining PDM generation options................................... 220 Object selection parameters........................................... 220 Generating a new PDM ..............................................
Resumen del contenido incluido en la página 8
viii
Resumen del contenido incluido en la página 9
About This Book Subject This book describes the PowerDesigner Object-Oriented Model environment. It shows you how to do the following: ♦ Build an Object-Oriented Model (OOM) ♦ Use classes, packages, and other modeling objects ♦ Verify the model and import a Rose model ♦ Generate a Conceptual Data Model and a Physical Data Model from the OOM ♦ Reverse engineer Java files ♦ Generate Java source files Audience Anyone who will be designing or building an OOM with PowerDesigner Object-Oriented Model
Resumen del contenido incluido en la página 10
About This Book To help you do your work more easily, this book is divided into chapters that focus on particular goals. If you want to Use these parts of the book Learn about the environment Object-Oriented Model Basics Build an object-oriented model Building a Object-Oriented Model Verifying the model and Managing Object-Oriented Models importing a Rose model Generating a conceptual data The chapters on generating conceptual and model or a physical data model physical models x
Resumen del contenido incluido en la página 11
CHAPT ER 1 Object-Oriented Model Basics About this chapter This chapter presents the PowerDesigner Object-Oriented Model. It provides you with an introduction to the basic notions of object-oriented modeling and the Unified Modeling Language (UML). Contents Topic Page Functional overview 2 UML and object-oriented modeling 3 What is an OOM? 4 Objects in an OOM 5 Creating a new OOM 6 Opening an existing OOM 8 Defining OOM model options 9 Defining OOM properties 11 1
Resumen del contenido incluido en la página 12
Functional overview Functional overview PowerDesigner Object-Oriented Model is a powerful design tool for object- oriented modeling. It gives you all the advantages of a graphical object design implementation. With this product, you can: ♦ Build an Object-Oriented Model (OOM) ♦ Generate Java class source files (.java) ♦ Generate PowerBuilder objects ♦ Reverse engineer Java files (.class, .java, or .jar) ♦ Reverse engineer PowerBuilder objects ♦ Import a Conceptual Data Model (CDM) ♦ Import a Phy
Resumen del contenido incluido en la página 13
Chapter 1 Object-Oriented Model Basics UML and object-oriented modeling What is UML? UML (The Unified Modeling Language) is a modeling language aimed at defining standards for object-oriented modeling. UML has become a standardized language largely through the work of the OMG (Object Management Group), a group composed of individuals and representatives of companies involved in object-oriented projects. However, its original conception drew much of its inspiration from the work of G. Booch, J
Resumen del contenido incluido en la página 14
What is an OOM? What is an OOM? An OOM contains a set of packages, classes, interfaces, and their relationships. These objects together form a class structure that is the logical design view of all (or part of) a software system. An OOM is essentially a static conceptual model of a software system. You use PowerDesigner Object-Oriented Model to build object-oriented models (OOM). You can build an OOM for purely object-oriented modeling purposes, to generate Java files or for PowerBuilder, or you
Resumen del contenido incluido en la página 15
Chapter 1 Object-Oriented Model Basics Objects in an OOM An OOM represents the interaction of the following objects: Selection Object Tool Description Package General purpose sub-set used to organize objects into groups Class Set of objects that share the same attributes, operations, methods, and relationships Interface Collection of operations used to specify the externally visible behavior of a class, object, or other entity Attribute — Named property of a class Operation — Service that can
Resumen del contenido incluido en la página 16
Creating a new OOM Creating a new OOM Creating an OOM requires that you do the following: ♦ Open a new file ♦ Give the OOM a name and a code After you create an OOM, you can enrich its definition by entering properties and associating objects. To create an OOM: 1 Select File➤ New. or Click the New button in the toolbar. The New window appears. 2 Select Object-Oriented Model and click OK. The Choose Object Language window appears. Every OOM is attached by default to one set of object language p
Resumen del contenido incluido en la página 17
Chapter 1 Object-Oriented Model Basics 4 Click OK. If you were working on an existing workspace, PowerDesigner opens an new OOM. If there was no workspace open, PowerDesigner opens a new workspace and a new OOM. 5 Select Model➤ Model Properties. or Right-click any empty space in the diagram and select Model Properties from the contextual menu. The model property sheet appears. 6 Type a model name and model code. 7 Click OK. 7
Resumen del contenido incluido en la página 18
Opening an existing OOM Opening an existing OOM An OOM has the file extension .OOM. To open an existing OOM: 1 Select File➤ Open. or Click the Open tool. A standard Windows file selection dialog box appears. 2 Select a file with the .OOM extension. 3 Click OK. The model window displays the selected model. 8
Resumen del contenido incluido en la página 19
Chapter 1 Object-Oriented Model Basics Defining OOM model options You can set model options and naming conventions that apply to all objects in the model. You can also set naming conventions for each type of object in your model. You define OOM model options from the model options dialog box. You can set options that apply to the following OOM objects: ♦ Classes ♦ Default data types ♦ Domain/Attribute Classes You can set the following option for classes in an OOM: Option Description Show clas
Resumen del contenido incluido en la página 20
Defining OOM model options Your choice of whether or not to enforce domain and attribute non- divergence has the following results: Non-divergence Result Not enforced Attributes that are divergent from the domain definition can remain attached to the domain Enforced Attributes that are divergent from the domain (for certain attribute properties) must be detached from the domain If you modify domain non-divergence options, these changes apply only to the current OOM. For more information on Po