Rose/Java mapping: introduction, definition of terms, страница 4

The name generated in an import statement is scoped to be relative to the CLASSPATH.

5  REVERSE ENGINEERING

5.1  Mapping File System Elements to the Rose Model

The parent directory hierarchy of a reverse engineered Java file is realized in the Rose model as a hierarchy of packages rooted in the Component View.  The Java file is realized as a component in the package which represents its parent directory.

If the Java file exists directly in a directory which is a CLASSPATH entry it is realized as a component in the Component View package.

5.2  Creating Rose Model Elements

If the required component package hierarchy exists it is used.  Otherwise it is created.  The names of the directories are used as the names of the packages.

The Java file is realized as a component with the same name as the file minus its extension.  If such a component already exists within the appropriate package hierarchy it is used.  Otherwise it is created.

5.3  Reverse Engineering an import

Each import in a file being reverse engineered generates a dependency from the component representing the client file to the component or package representing the supplier.

6  PROPERTY DEFINITIONS

This section provides a definition of the Rose/Java property sets by Rose model element. Each property is annotated as ORIG (holdover property from previous Rose/IDL version), NEW (new property for this version), or DEL (a property from the previous version which will no longer be used in this version).

6.1  PROJECT Properties

CreateMissingDirectories

Generate missing directories during FE.

BOOLEAN = TRUE

ORIG

StopOnError

Stop FE when the first error is encountered

BOOLEAN = FALSE

ORIG

UsePrefixes

Generate prefixes for field and method names

BOOLEAN = FALSE

ORIG

InstanceVariablePrefix

Prefix to use with fields

STRING = "m_"

ORIG

ClassVariablePrefix

Prefix to use with methods

STRING = "s_"

ORIG

DefaultAttributeDataType

Type to use when generating fields from attributes with blank types

STRING = "int"

ORIG

DefaultOperationReturnType

Type to use when generating methods from operations with blank return types

STRING = "void"

ORIG

Editor

Defines which editor to use for source browsing

ENUMERATION (BuiltIn, WindowsShell) = BuiltIn

NEW

ClassPath

Extend the CLASSPATH environment variable with additional entries.

STRING = ""

NEW

Directory

The CLASSPATH and codegen dialog are used to resolve file locations

DEL

6.2  MODULE Properties

CmIdentification

CM identification string which should be inserted as a comment during FE

TEXT = ""

ORIG

CopyrightNotice

Copyright notice which should be inserted as a comment during FE.

TEXT = ""

ORIG

Generate

Was used to indicate whether or not this component should be generated.  Seems superfluous.

DEL

6.3  CLASS Properties