Manuals
/
Sybase
/
Household Appliance
/
Water System
Sybase
7.5
manual
Modify the operation display preferences Click OK
Models:
7.5
1
97
288
288
Download
288 pages
28.98 Kb
94
95
96
97
98
99
100
101
Specs
To create a class in a diagram
Indicating error severity
Symbol Option
Accessing the list of classes
How to
What is
Update existing
Click Apply Click Cancel
Using Object Languages 229
Page 97
Image 97
Chapter 2 Building an
Object-Oriented
Model
4
Modify the operation display preferences.
5
Click OK.
87
Page 96
Page 98
Page 97
Image 97
Page 96
Page 98
Contents
User’s Guide
Page
Contents
100
Modifying the code of an implementation operation
Changing an association into an associative class 102
103
112
111
Generating Objects from an OOM 179
Vii
Using Object Languages 229
Viii
About This Book
Subject Audience Where to find information
Use these parts of the book
If you want to
Object-Oriented Model Basics
Contents
Build an Object-Oriented Model OOM
Functional overview
UML and object-oriented modeling
OOM roles
What is an OOM?
OOM creation
An OOM represents the interaction of the following objects
Objects in an OOM
Object
Selection Tool Description
To create an OOM
Creating a new OOM
Object-Oriented Model Basics
An OOM has the file extension .OOM
Opening an existing OOM
To open an existing OOM
Classes
Defining OOM model options
You can set the following option for classes in an OOM
Non-divergence
To define OOM model options
Result
To modify the model properties
Defining OOM properties
Length
Defining OOM properties
Building an Object-Oriented Model
Package properties
Defining packages
To modify the package display preferences
Displaying text in package symbols
Preference
Defining packages
Defining classes
Class has the following general properties
Class properties
Property Description
Maximum length
Stereotype
Analyzing class properties
Modify or creating
New stereotypes
Stereotype
Type
Visibility
Creating a class
Cardinality
Visible
Creating a class from the Browser
Accessing the list of classes
Creating a class from the list of classes
To create a class from the Browser
To create a class in a diagram
Creating a class from a diagram
Inner classes
Attaching an inner class to a class
Opening property sheets at last accessed
To declare an inner class within a class
Building an Object-Oriented Model
To detach an inner class from a class
Detaching an inner class from a class
Modifying class properties
Classifiers
Modifying class properties from its property sheet
To modify class properties from its property sheet
To modify class properties from the list of classes
Modifying class properties from the list of classes
Adding objects to a class
To add an attribute to a class
Adding an attribute to a class
To add an operation to a class
Adding an operation to a class
Defining classes
To preview the code of a class
Preview the code of a class or an interface
To modify the class display preferences
Displaying text in class symbols
Building an Object-Oriented Model
Interface properties
Defining interfaces
An interface has the following properties
Creating an interface
Analyzing interface properties
Creating an interface from the Browser
Visibility
Accessing the list of interfaces
Creating an interface from a diagram
To create an interface in a diagram
Creating an interface from the list of interfaces
Modifying interface properties from its property sheet
Modifying interface properties
To modify interface properties from its property sheet
Interface property sheet opens to the General
Modifying interface properties from the list of interfaces
To modify interface properties from the list of interfaces
Select Model Interfaces
Adding objects to an interface
Adding inner classes to an interface
You can add the following objects to an interface
Adding an attribute to an interface
To add an attribute to an interface
Building an Object-Oriented Model
To add an operation to an interface
Adding an operation to an interface
To preview the code of an interface
Preview the code of an interface
Code Preview page appears Click OK
Displaying text in interface symbols
To modify the interface display preferences
Defining attributes
An attribute has the following properties
Attribute properties
Data Type
Analyzing attribute properties
Multiplicity
Creating an attribute
Creating an attribute from the Browser
To create an attribute from the Browser
Creating an attribute from the list of attributes
Accessing the list of attributes
To create an attribute by inserting it in the list
Select Model Attributes. The list of attributes appears
To create an attribute from a class in a diagram
Creating an attribute from a class in a diagram
Modifying attribute properties
To modify attribute properties from its property sheet
Modifying attribute properties from its property sheet
To modify attribute properties from the list of attributes
Modifying attribute properties from the list of attributes
Select Model Attributes
To attach an attribute to a domain
Attaching an attribute to a domain
Attribute property sheet opens to the General
To copy an attribute to another class
Copying an attribute to another class
When selected
Displaying text in attribute symbols
An attribute has the following display preferences
To modify the display preferences
Building an Object-Oriented Model
Identifier properties
Defining identifiers
An identifier has the following properties
You can create an identifier from a class
Creating an identifier
To create an identifier
You can add attributes to an identifier
Adding attributes to an identifier
To add attributes to an identifier
Modifying identifier properties from its property sheet
Modifying identifier properties
To modify identifier properties from its property sheet
Modifying identifier properties from the list of identifiers
Operation properties
Defining operations
An operation has the following properties
Creating an operation
Analyzing operation properties
Creating an operation from the Browser
To create an operation from the Browser
Creating an operation from the list of operations
Accessing the list of operations
To create an operation by inserting it in the list
Select Model Operations. The list of operations appears
To create an operation from a class in a diagram
Creating an operation from a class in a diagram
Modifying operation properties from its property sheet
Modifying operation properties
To modify operation properties from its property sheet
Operation property sheet opens to the General
Modifying operation properties from the list of operations
To modify operation properties from the list of operations
Select Model Operations
Adding constructors and destructors to a class
To add a Default constructor and destructor to a class
Adding a Default constructor and destructor to a class
Building an Object-Oriented Model
To add a Copy constructor to a class
Adding a Copy constructor to a class
Adding a duplicate operation to a class
Adding operations to a class
To add a duplicate operation to a class
To add an inherited operation to a class
Adding an operation from a parent class
Operation
Adding Getter and Setter operations to a class
Defining operations
Creating an implementation operation
To create an implementation operation
To modify the code of an implementation operation
Modifying the code of an implementation operation
To copy an operation to another class
Copying an operation to another class
An operation has the following display preferences
Displaying text in operation symbols
To modify the display preferences
Modify the operation display preferences Click OK
Parameter properties
Defining parameters
Direction
To create a parameter
Creating a parameter
Parameter property sheet opens to the General
Generalization properties
Defining generalizations
Generalization has the following properties
Creating a generalization
Analyzing generalization properties
To create a generalization
Dragging a generalization to a different class
Link appears between the two objects
Modifying generalization properties from its property sheet
Modifying generalization properties
To modify generalization properties from its property sheet
Generalization has the following display preferences
Displaying text in generalization symbols
To modify the display preferences
Defining associations
Omitted when end names are used
Association Ends
Class plays as viewed by the opposite class
An association has the following properties
Association properties
To create an association in a diagram
Creating an association outside of a diagram
Creating an association
Dragging an association to a different class
Association property sheet opens to the General
Analyzing cardinality properties
100
Ordering
Association role properties
101
Indicates
Aggregation/composition of an Association
Changing an association into an associative class
To change an association into an associative class
Right-click an association
Modifying association properties from its property sheet
Modifying association properties
To modify association properties from its property sheet
103
To modify association cardinality properties
Modifying cardinality properties
Double-click the association in the model
104
105
To modify the association display preferences
Displaying text in association symbols
106
107
Dependency properties
Defining dependencies
Dependency has the following properties
108
To create a dependency
Creating a dependency
109
110
Dragging a dependency to a different class
Modifying dependency properties from its property sheet
Modifying dependency properties
To modify dependency properties from its property sheet
111
Dependency has the following display preferences
Displaying text in dependency symbols
112
113
Realization properties
Defining realizations
Realization has the following properties
114
To create a realization
Creating a realization
Dragging a realization to a different class
115
Modifying a realization from its property sheet
Modifying realization properties
116
117
To modify realization properties from its property sheet
Modifying a realization from the list of realizations
Displaying text in realization symbols
Realization has the following display preferences
118
119
Domain properties
Defining domains
Each domain definition includes the following properties
120
Creating a domain
Accessing the List of Domains
You create a domain from the list of domains
To create a domain
Length
Indicating data type, length, and precision
Precision
122
Selecting a data type for a domain from the list
Selecting a data type for a domain
To select a data type for a domain from the list
123
Undefined data type
Selecting a data type for a domain from its property sheet
To select a data type for a domain from its property sheet
Selecting a data type from a list of standard data types
Change of data type appears in the list of domains
Selecting a data type from a list of standard data types
125
Character data types
Numeric data types
126
Other data types
Time data types
To select a data type from a list of standard data types
Selecting from the Data Type dropdown listbox
128
Modifying domain properties
Accessing a property sheet from the Browser
To modify domain properties
129
Defining check parameters
Setting standard check parameters for objects
130
To set standard parameters
Defining additional check parameters for objects
131
Variable
To define additional check parameters
Using a validation rule in check parameters
132
Validation rule expressions
To use a validation rule in check parameters
133
134
135
Managing Object-Oriented Models
Object parameters verified by Check model
Checking an OOM
136
OOM check options
Indicating error severity
137
Message Description
Object selection in the Check Model
Objects selected in the diagram
Checking a OOM
To check a OOM
139
140
Selecting all or clearing all checkboxes
Making corrections based on OOM check results
Symbol Option
Dockable result window
141
Making manual corrections to an OOM
Making automatic corrections to the OOM
143
144
Merging two OOM
Opening a Rose model in an OOM
To open a Rose model in PowerDesigner
145
All objects Class
Objects imported
Generalization Association
146
Package Class
Objects not imported
Interface
Attribute
Generalization
Operation
Dependency
148
149
Reverse Engineering
Parsing
What is reverse engineering?
150
Together classes that logically belong together
Reverse engineering Java
Inner classes
Outer class
Java code
Reverse engineering Java options
Comments
To define Java reverse engineering options
To load a JDK library model
Loading a JDK library model in the workspace
153
To reverse java without code body
Reverse engineering Java source files without code body
Select the .java radio button
154
155
Select the Ignore operation body checkbox Click OK
Reverse engineering Java source files
To reverse engineer .java files
156
157
Reversing without the body of the code
Reverse engineering compiled Java files
To reverse engineer compiled Java files to a diagram
Multi-selection
158
159
160
To reverse engineer Java files from a source directory
Reverse engineering Java files from a source directory
161
162
Reverse engineering archived .jar or .zip files
To reverse engineer .jar or .zip files to a diagram
163
164
165
Reverse engineering PowerBuilder options
Reverse engineering PowerBuilder
166
167
To define PowerBuilder reverse engineering options
To load a PowerBuilder library model
Loading a PowerBuilder library model in the workspace
168
169
Reverse engineering objects from a PowerBuilder application
170
Reverse engineering objects from SRU files
To reverse engineer PowerBuilder objects from SRU files
171
172
173
Reverse engineering XML
XML Schema
Reverse engineering XML options
XML Data
To define XML reverse engineering options
Reverse engineering XML files
XML files can be reversed into an OOM
175
176
To reverse engineer an XML file
To reverse engineer object language files into a new OOM
Reverse engineering into a new OOM
177
178
This product includes XML4C 3.0.1 software developed by
About this chapter
This chapter describes how to generate objects from an OOM
179
Selecting objects to include in the generation
Generating objects
180
Selecting objects
Graphically selected objects
Select tools
Selection tips
Defining Java generation options
Generating Java source files
Check model
Visibility sort
183
To define Java generation options
To generate .java files
Generating Java class definition files
184
Select Tools
Select the classes that you want to generate from the list
185
Navigating between pages
Creating Java BeanInfo classes
186
187
To create Java BeanInfo classes
188
Defining PowerBuilder generation options
Generating objects for PowerBuilder
Pbl application
Sru files
190
To define PowerBuilder generation options
Click Apply Click Cancel
Generating objects for a PowerBuilder application
191
192
To generate PowerBuilder user objects in sru files
Generating PowerBuilder objects in sru files
193
194
Defining XML generation options
Generating for XML
To define XML generation options
195
196
Generating XML objects
197
To generate XML files
198
199
Customizing scripts
200
201
Translating OOM objects into CDM objects
Generating OOM objects to a CDM
202
OOM object
Translating Java data types for a CDM
Translating OOM data types for a CDM
203
Java data type
Generating and updating a CDM
Generating a CDM from an OOM
204
CDM generation options
Update existing
Clearing the Preserve Modifications checkbox
You can set the following general generation options
Check model before generation
Object selection parameters
Objects selected in the model
206
To generate to a new CDM from an OOM
Generating a new CDM
207
208
209
Generating a CDM from a package
Updating an existing CDM
To update an existing CDM by generating from an OOM
210
Preserve Modifications
211
Preserve modifications
212
213
Merging models
214
215
Translating OOM objects into PDM objects
Generating OOM objects to a PDM
Generating from
Associations
Translating Java data types for a PDM
Translating OOM data types for a PDM
217
Translation example for SQL Anywhere
Generating and updating a PDM
Generating a PDM from an OOM
Generate new Physical Data
218
219
Physical Data
You select objects for PDM generation from the Selection
Defining PDM generation options
220
To generate to a new PDM from an OOM
Generating a new PDM
Select Tools Generate Physical Data Model
221
222
223
Generating a PDM from a package
Updating an existing PDM
To update an existing PDM by generating from an OOM
224
225
226
227
228
229
Using Object Languages
Types of object language
Object languages
230
Object language type
Modifying the current object language
Accessing object language properties
To modify a value of a current object language
Open an OOM Select Language Edit Current Object Language
232
To modify the parameters of a linked object language
Modifying linked object language properties
233
234
Creating a new object language
Changing the object language of an OOM
To change the object language of an OOM
To create a new object language
236
237
238
Categories
Using the object language editor
Fields
Values
Object language
Modifying values in the object language editor
Editor edit menu
Following editing options appear
General category
Object language editor categories
UML category
Stereotypes
Class stereotypes
Class has the following default stereotypes
242
Generalization has the following default stereotype
An operation has the following default stereotype
Operation stereotypes
Generalization stereotypes
Dependency stereotypes
Dependency has the following default stereotypes
244
Script category
Package has the following default stereotypes
Package stereotypes
245
Following constant values are defined by default
Default constants
Object scripts
246
247
Specification
Example
XML Mapping
Default data types
You can modify the following basic data types
248
Namings
Extended Attributes category
Event
249
250
251
Using Business Rules
252
What is a business rule?
Types of business rule
Defining business rules in an OOM
253
Rule type
Creating a business rule
Business rule properties
Business rule definition includes the following properties
254
255
To create a business rule
Applying a business rule to an object
Applying business rules to objects
To apply a business rule to an object
256
257
Attaching an expression to a business rule
258
259
Glossary
260
Glossary
261
Stereotype Transient object Visibility
262
263
Index
OOM
264
265
Class
266
267
268
269
JDK
270
Model
271
272
Open
273
274
Role
275
276
277
278
Top
Page
Image
Contents