starting help top next · java add-in functions top previous next java add-in provides the...

49
Starting Help Top Next Java Add-In will guarantee to maximize the productivity and quality because it helps a tool to adapt Java code generation and reverse engineering easily and quickly after it transforms UML model to Java source and Java source to UML model. Index of Java Add-In Help 1. Java Add-In Overview 2. Java Profile 3. EJB Profile 4. J2EE Framework 5. Option Configurations 6. Java Reverse Engineering 7. Java Code Generation 8. FAQ

Upload: others

Post on 18-Mar-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

StartingHelp TopNext

JavaAdd-InwillguaranteetomaximizetheproductivityandqualitybecauseithelpsatooltoadaptJavacodegenerationandreverseengineeringeasilyandquicklyafterittransformsUMLmodeltoJavasourceandJavasourcetoUMLmodel.

IndexofJavaAdd-InHelp

1. JavaAdd-InOverview

2. JavaProfile

3. EJBProfile

4. J2EEFramework

5. OptionConfigurations

6. JavaReverseEngineering

7. JavaCodeGeneration

8. FAQ

Page 2: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaAdd-InOverview TopPreviousNext

ThischapterdiscussesageneraloverviewofJavaAdd-In:functionsandconfigurationprocedures.

JavaAdd-InFunctions

JavaAdd-InConfigurations

Page 3: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaAdd-InFunctions TopPreviousNext

JavaAdd-Inprovidesthefollowingfunctions.

JavaProfile

JavaprofileisprovidedtoallowvisualmodelingofJavaconceptssuchaspackage,class,interface,imports,modifierandsooninStarUML(tm).IncludeJavaprofilewhenyoustartyourStarUML(tm)project,inordertoapplythefeaturesoftheJavalanguageinyoursoftwaremodeling.

EJBProfile

InadditiontoJavaprofile,JavaAdd-InprovidesEJBprofilefortheenterprisedevelopmentenvironment.

JavaFramework(J2EE)

JJavaAdd-InprovidesSunMicrosystems'J2EE(Java2EnterpriseEdition)intheModelFrameworkformat.

JavaReverseEngineering

JavaAdd-InprovidesthereverseengineeringfunctionthatgeneratesStarUML(tm)modelsbyanalyzingsourcecodeswritteninJava.

JavaCodeGeneration

JavaAdd-InprovidestheforwardengineeringfunctionthatgeneratesJavasourcecodesbyanalyzingStarUML(tm)models.

Page 4: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaAdd-InConfigurations TopPreviousNext

OnceJavaAdd-Inisinstalled,itisenabledforuseinStarUML(tm)bydefault.TheinstalledAdd-InscanbeenabledordisabledthroughAdd-InManagerinStarUML(tm).IfanAdd-Inisdisabled,nomainmenuandpopupmenuitemsrelatedtoitaredisplayed,andnoStarUML(tm)eventsarerelayedtoit.

ProcedureforEnablingJavaAdd-In:

1. Selectthe[Tools]->[Add-InManager...]menuinStarUML(tm).

2. AttheAdd-InManagerdialogbox,checkthe"JavaAdd-In"checkboxintheAdd-Inlist.

3. Clickthe[OK]buttontoclosethedialogbox.

ProcedureforDisablingJavaAdd-In:

1. Selectthe[Tools]->[Add-InManager...]menuinStarUML(tm).

2. AttheAdd-InManagerdialogbox,uncheckthe"JavaAdd-In"checkboxintheAdd-Inlist.

3. Clickthe[OK]buttontoclosethedialogbox.

Page 5: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java
Page 6: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaProfile TopPreviousNext

ThischapterdescribesJavaprofile:configurationproceduresanddefinitions.

IncludingJavaProfile

ExcludingJavaProfile

JavaProfileDefinitionList

Page 7: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

IncludingJavaProfile TopPreviousNext

JavaprofilemustbeincludedintheprojectinordertoutilizetheStereotypes,TagDefinitions,andDataTypesdefinedinJavaprofile.

ProcedureforIncludingJavaProfile:

1. Selectthe[Model]->[Profiles...]menu.

2. AttheProfileManagerwindow,select"JavaProfile"fromthe"Availableprofiles"listontheleft.

3. Clickthe[Include]buttonorhitAlt-Itomove"JavaProfile"tothe"Includedprofiles"list.4. Clickthe[Close]buttontoclosetheProfileManagerwindow.5. Javaprofileisincludedinthecurrentproject.

Note

OpeningaprojectwithJavaprofileonanotherStarUML(tm)systemthat

Page 8: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

doesnothaveJavaprofileinstalledmayresultinlossofmodelelementextensioninformation(Stereotype,TaggedValue,etc).

Page 9: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

ExcludingJavaProfile TopPreviousNext

Javaprofilecanbeexcludedfromthecurrentproject.OnceC#profileisexcluded,Stereotypes,TagDefinitionsandDataTypesdefinedintheprofilecannotbeusedintheproject.

ProcedureforExcludingJavaProfile:

1. Selectthe[Model]->[Profiles...]menu.

2. AttheProfileManagerwindow,select"JavaProfile"fromthe"Includedprofiles"listontheright..

3. Clickthe[Exclude]buttonorhitAlt-Etoremove"JavaProfile"fromthe"Includedprofiles"list.4. Clickthe[Close]buttontoclosetheProfileManagerwindow.5. Javaprofileisexcludedfromthecurrentproject.

Note

Page 10: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Re-includingJavaprofileafterexcludingitdoesnotrestorethepreviouslyeditedtaggedvaluesofthemodelelements.

Page 11: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

ProfileDefinitionList TopPreviousNext

Stereotype

Javaprofilecontainsdefinitionsforthefollowingstereotypes.

SterotypeTargetElement Description

<<JavaSourceFile>> Component SourcefilewithJavacode<<JavaClassFile>> Component FilewithcompiledJavasourcecode

<<JavaAchiveFile>> Component

JARfilecontainstheclassforJavaapplet,imagefilesandsoundfilesasonecompressedfiletoallowquickdownloadingforwebbrowsers.

TagDefinition

Javaprofilecontainsdefinitionsforthefollowingtagdefinitions.

TagDefinition Type TargetElement Description

JavaStrictfp BooleanClass,Interface,Operation

ExecutesallrealnumbercalculationsbystrictlyconformingtotheIEEE754standard.

JavaStatic BooleanClass

UsedforloadingandunloadingthetargetclasstoandfromthebasememorywhenrunningJavaVM.

JavaVolatile BooleanAttribute,AssociationEnd

Variableswiththiskeywordarenotprocessedforvariableoptimizationbythecompiler.

JavaTransient BooleanAttribute,AssociationEnd

The'transient'flagallowstheinterpretertoprocessclassinstancesaspersistentobjects.

JavaCollection String Attribute,AssociationEnd

DefinestheJavaCollectiontypename.

JavaDimensions IntegerAttribute,Parameter, Indicatesthearraydimensionof

Page 12: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

AssociationEnd thedeclaredobject.

JavaNative BooleanOperation MethodthatsupportsJNI(JavaNativeInterface).

JavaThrows String OperationUsedforrelayingexceptionsofthemethodabovetoothermethods.

JavaFinal Boolean Parameter Indicatesconstanttypearguments.

DataTypes

JavaprofilecontainsdefinitionsforthefollowingbasicJavadatatypes.int

float

boolean

char

double

short

long

byte

void

Boolean

Page 13: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Byte

Character

Double

Float

Integer

Long

Object

Short

String

Void

Page 14: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

EJBProfile TopPreviousNext

ThischapterdescribesEJB(EnterpriseJavaBeans)profile:configurationproceduresanddefinitions.

IncludingEJBProfile

ExcludingEJBProfile

EJBProfileDefinitionList

Page 15: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

IncludingEJBProfile TopPreviousNext

EJBprofilemustbeincludedintheprojectinordertoutilizetheStereotypes,TagDefinitions,andDataTypesdefinedinEJBprofile.

ProcedureforIncludingEJBProfile:

1. Selectthe[Model]->[Profiles...]menu.

2. AttheProfileManagerwindow,select"EJBProfile"fromthe"Availableprofiles"listontheleft.

3. Clickthe[Include]buttonorhitAlt-Itomove"EJBProfile"tothe"Includedprofiles"list.4. Clickthe[Close]buttontoclosetheProfileManagerwindow.5. EJBprofileisincludedinthecurrentproject.

Note

OpeningaprojectwithEJBprofileonanotherStarUML(tm)systemthat

Page 16: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

doesnothaveEJBprofileinstalledmayresultinlossofmodelelementextensioninformation(Stereotype,TaggedValue,etc).

Page 17: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

ExcludingEJBProfile TopPreviousNext

EJBprofilecanbeexcludedfromthecurrentproject.OnceEJBprofileisexcluded,Stereotypes,TagDefinitionsandDataTypesdefinedintheprofilecannotbeusedintheproject.

ProcedureforExcludingEJBProfile:

1. Selectthe[Model]->[Profiles...]menu.

2. AttheProfileManagerwindow,select"EJBProfile"fromthe"Includedprofiles"listontheright.

3. Clickthe[Exclude]buttonorhitAlt-Etoremove"EJBProfile"fromthe"Includedprofiles"list.4. Clickthe[Close]buttontoclosetheProfileManagerwindow..5. EJBprofileisexcludedfromthecurrentproject.

Note

Re-includingEJBprofileafterexcludingitdoesnotrestorethepreviously

Page 18: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

editedtaggedvaluesofthemodelelements.

Page 19: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

EJBProfileDefinitionList TopPreviousNextStereotype

EJBprofilecontainsdefinitionsforthefollowingstereotypes.

SterotypeTargetElement Description

<<EJBCreateMethod>> Operation ThespecifiedoperationindicatesEJBCreateMethod.

<<EJBFinderMethod>> Operation ThespecifiedoperationindicatesEJBFinderMethod.

<<EJBRemoteMethod>> Operation ThespecifiedoperationindicatesEJBRemoteMethod.

<<EJBRemoteInterface>> Class,Interface

ThespecifiedclassindicatesEJBRemoteInterface.

<<EJBHomeInterface>> Class,Interface

Anabstractstereotype.ThespecifiedclassindicatesEJBHomeInterface.

<<EJBSessionHomeInterface>> Class,Interface

AnimplementationoftheabstractstereotypeHomeInterface.ThespecifiedclassindicatesEJBSessionHome.

<<EJBEntityHomeInterface>> Class,Interface

AnimplementationoftheabstractstereotypeHomeInterface.ThespecifiedclassindicatesEJBEntityHome.

<<EJBPrimaryKey>> DependencyIndicatesuseofEJBPrimaryKeyClassforEJBEntityHome.

<<EJBCmpField>> Attribute

Thespecifiedattributeindicatesthecontainer-managedfieldfortheCMP-basedEJBEntityBean.

<<EJBPrimaryKeyField>> Attribute

AnimplementationofthestereotypeEJBCmpField.Thespecifiedattributeindicatesthe

Page 20: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

primarykeyfieldfortheCMP-basedEJBEntityBean.

<<EJBRealizeHome>> DependencyIndicatesabstractionofEJBHomeInterfaceforEJBImplementationClass.

<<EJBRealizeRemote>> DependencyIndicatesabstractionofEJBRemoteInterfaceforEJBImplementationClass.

<<EJBImplementation>> Class ThespecifiedClassindicatesEJBImplementationClass.

<<EJBEnterpriseBean>> SubsystemAnabstractstereotype.ThespecifiedsubsystemindicatesEJBEnterpriseBean.

<<EJBSessionBean>> Subsystem

AnimplementationoftheabstractstereotypeEJBEnterpriseBean.ThespecifiedsubsystemindicatesEJBSessionBean.

<<EJBEntityBean>> Subsystem

AnimplementationoftheabstractstereotypeEJBEnterpriseBean.ThespecifiedsubsystemindicatesEJBEntityBean.

<<EJBReference>> Association

AssociationwiththespecifieddirectionindicatesthereferencedEJBEnterpriseBean.

<<EJBAccess>> Association

ThespecifiedassociationindicatesthesecurityregulationrelationbetweenthesubsystemsindicatedbytheactorandthestereotypeEJBEnterpriseBean.

<<EJB-JAR>> Package ThespecifiedpackageindicatesEJB-JAR.

<<EJBDescriptor>> ComponentThespecifiedcomponentindicatesEJBDeployment

Page 21: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Descriptor.

<<EJBClientJAR>> Dependency Indicateswhetherejb-client-jarisusingEJB-JAR.

TagDefinition

EJBprofilecontainsdefinitionsforthefollowingtagdefinitions.

TagDefinition Type TargetElement DescriptionEJBSessionType Enumeration Class

EJBRoleNames String Operation

Acomma-separatedstring.Definesthesecurityregulationforthespecifiedoperation.

EJBTrasAttribute Enumeration Operation

DefinesthetransactionmanagementpolicyasNotSupported,Supports,Required,RequiresNew,MandatoryorNever.

EJBEnvEntries String SubSystem

DefinesenvironmentlistingssimilartoattributestobereadwhenEJBEnterpriseBeanisrunning.Eachlistiscomma-separatedandasinglelistisintheformatof<name,type,value>.

EJBNameInJAR String SubSystem

ThenameofEJBEnterpriseBean.Generally,theEJBRemoteInterfacenameisused.

EJBReferences String SubSystem

UsedfordefiningreferencetootherEnterpriseBeans.Eachlistiscomma-separated

Page 22: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

andasinglelistisintheformatof<name,type,home,remote>.

EJBResources String SubSystem

UsedfordefiningtheexternalresourcesforEJBEnterpriseBean.Eachlistiscomma-separatedandasinglelistisintheformatof<name,type,auth>.

EJBSecurityRoles String SubSystem

DefinessecurityregulationsforallEJBEnterpriseBeanoperations.Eachlistiscomma-separatedandasinglelistisintheformatof<name,link>.

EJBTransType Enumeration SubSystem

IndicateswhetherEJBSessionBeantransactionsaremanagedbyEJBSessionBeanorcontainer.ThevalueiseitherBeanorContainer.

EJBPersistenceTypeEnumeration SubSystem

IndicateswhetherEJBEntityBeanpersistenceismanagedbyEJBEntityBeanorcontainer.ThevalueiseitherBeanorContainer.

EJBReentrant Boolean SubSystem IndicateswhetherEJBEntityBeancanreenter.

Page 23: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

J2EEFramework TopPreviousNext

TheJ2EE(Java2Platform,EnterpriseEdition)FrameworkistheJ2EEdevelopmentplatformmodelincludedinJava2Platform,EnterpriseEdition.InStarUML(tm),aModelFrameworkreferstoasoftwaremodelthatexpressesclasslibrariesorapplicationframeworkssuchasMFC,VCL,andJFC.Usingaframeworkwiththeprojectgreatlyincreasestheconvenienceoftheuserformodelingsoftwarethatdependsonacertainclasslibraryorapplicationframework.

UsingtheJ2EEFramework

Page 24: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

UsingtheJ2EEFramework TopPreviousNext

ProcedureforImportingtheJ2EEFramework:

1. Selectthe[File]->[Import]->[Framework...]menu.

2. Atthe[ImportFramework]dialog,selecttheJ2EEFrameworkfromthelistandclickthe[OK]button.

3.

TheSelectElementdialogboxwillappear,todetermineunderwhichelementtheJ2EEframeworkwillbelocated.Selectanelement(package,model,subsystemorproject)tocontaintheframeworkandthenclickthe[OK]button.

Page 25: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

4. Theframeworkisincludedundertheselectedelement.

Note

Importingaframeworkdoesnotstoretheframeworkelementsintheproject.Sinceframeworkunitsarereferencedbytheproject,theframeworkunitfilesmustbepresentwhenopeningtheproject.Todeleteimportedframeworks,removetherespectiveframeworkunits.

Page 26: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

OptionConfigurations TopPreviousNext

ThischapterdiscussesproceduresforconfiguringtheJavaAdd-Inenvironmentanddescribestheoptionitemsindetail.

CodeGenerationOptionConfiguration

ReverseEngineeringOptionConfiguration

Page 27: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

CodeGenerationOptionConfiguration TopPreviousNext

CodeGenerationOption([Tools]->[Options])isthegroupofoptionitemsforcodegenerationbyJavaAdd-In.Thiscategoryincludesthe[General],[CodeGeneration],[CodeStyle],and[FileHeader]sub-categories.

General

OptionItemDefault DescriptionGeneratecodesevenwhenthereisnoprofile

False SpecifieswhethertogeneratecodesevenwhenJavaprofileisnotloadedintheproject(notrecommended).

CodeGeneration

OptionItem Default DescriptionGenerate1fileeachforClass,Struct,Interface,and

True Specifieswhethertogenerate1fileeachfor1member(Class,Struct,Interface,andEnum).

Page 28: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Enum

GenerateunnamedAssociationEnd

False

GeneratesunnamedAssociationEndasareferencetypefieldforJavamember.Inthiscase,thefieldidentifierisindicatedas"UnspecifiedType"withanumberattheend.

GenerateJavaDoc False Specifieswhethertogeneratemodelingelement

documentationasJavaDoc.GenerateemptyJavaDoc

FalseIfchecked,JavaDocisgeneratedevenwhenthemodelingelementdocumentationdoesnothaveanyvalues(empty).

CodeStyle

OptionItemDefault DescriptionInserttabsasspaces False Usesspaceinsteadoftabforindentation.

Tabwidth 4 Specifiesthenumberofspacestobeusedwheninsertingtabsasspaces.

Placetheopeningcurlybraceinthenewline

False Placestheopeningcurlybrace"{"inthenewline.

FileHeader

OptionItem Default Description

Addsthecommentsinthebeginningofthe

sourcefile.

(Default)

//

//

Page 29: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

FileHeaderComments

Seedescription

//GeneratedbyStarUML(tm)JavaAdd-In

//

//@@Project:@p

//@@FileName:@f

//@@Date:@d

//@@Author:@a

//

//

Page 30: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

ReverseEngineeringOptionConfiguration

TopPreviousNext

ReverseEngineeringOptionConfiguration([Tools]->[Options...])isthegroupofreverseengineeringoptionitemsforJavaAdd-In.Thiscategoryincludesthe[ModelGeneration],[Diagram]and[View]sub-categories.

ModelGeneration

OptionItem Default DescriptionGeneratepublicmember

True Specifieswhethertogenerateclassandinterfacememberswithpublicvisibility.

Generatepackagemember

True Specifieswhethertogenerateclassandinterfacememberswithpackagevisibility.

Generateprotectedmember

True Specifieswhethertogenerateclassandinterfacememberswithprotectedvisibility.

Generate Specifieswhethertogenerateclassandinterface

Page 31: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

privatemember

True memberswithprivatevisibility.

Omitinitialvalueforfields

False Doesnotincludethefieldinitialvalueintheattributemodelinformation.

GenerateJavadocasdocumentation

False

ReadsJavaDocinthesourcecodeandregistersitasdocumentationinformation.JavaDocofeachmethodisanalyzedfortaginformationandenteredasdocumentationinformationforeachparameteroftheoperationmodel.

Generatefieldsasassociations

False

Analyzesthefieldinformationinthesourcecodetoestablishassociationrelationshipswiththerespectivefieldtypemodels.Ifunchecked,fieldinformationisgeneratedasattributesfortherespectiveclassmodel..

Diagram

OptionItem Default DescriptionGenerateOverviewdiagram

TrueSpecifieswhethertogeneratetheOverviewdiagramforthegeneratedmodel.Ifunchecked,thefollowingdiagramandviewoptionsareignored.

Fitthediagramareatothegeneratedviewarea

False EnlargestheOverviewdiagramtofitthegeneratedviewarea.

Diagramname

Overviewof%s

SpecifiestheOverviewdiagramname.Thepackagenamecanbeincludedinthediagramnamebyusing%s(e.g.Overviewof%s).

View

OptionItem Default DescriptionSuppresstheAttributeareaofClass

False SuppressestheAttributecompartmentoftheClassViewwhengeneratingtheOverviewdiagram.

SuppresstheSuppressestheOperationcompartmentoftheClass

Page 32: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

OperationareaofClass

False ViewwhengeneratingtheOverviewdiagram.

Hideoperationsignature

False HidestheoperationsignaturewhengeneratingtheOverviewdiagram.

GenerateGeneralizationandRealizationviewsonlyforrelations

False

GeneratesgeneralizationandrealizationviewsonlyforrelationswhengeneratingtheOverviewdiagram.Whenusedappropriatelywithotherviewoptions,thisoptionisveryusefulfordrawingtheinheritancerelationsofoverallclassesandinterfaceswithinthepackage.

Page 33: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaReverseEngineering TopPreviousNext

JavareverseengineeringanalyzesJavasourcefilesandconvertsthemintoUMLmodels.Itisusefulforsourceinspection,systemstructureanalysis,andre-designing.

JavaReverseEngineering

ReverseEngineeringOptionConfiguration

Page 34: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaReverseEngineering TopPreviousNext

ProcedureforReverseEngineering:

1. InStarUML(tm),selectthe[Tools]->[C#]->[ReverseEngineer...]menu.

2.Atthe[SelectSourceCode]pageinthe[JavaReverseEngineering]dialogbox,selectasourceandclick[Add].Click[Next]onceyouhavecompletedaddingthetargetsourcesforreverseengineering.

3. Atthe[SelectthePackagetoContainResult]page,selectapackagetocontaintheoutputresultsfromthepackagetreeandclick[Next].

Page 35: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

4. Atthe[OptionSetup]page,selectthereverseengineeringoptionsandclick[Run].Reverseengineeringwillstartnow.

Page 36: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

5. The[ReverseEngineering]pagewillshowthereverseengineeringprogressstatusandreturnreverseengineeringfailureorsuccessresults.

Page 37: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Note

IfJavareverseengineeringisexecutedwithoutincludingJavaprofile,thefollowingdialogboxwillappearaskingwhetheryouwanttoincludeJavaprofile.Select"Yes(Y)"tocontinuethereverseengineeringprocess.

Page 38: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

ReverseEngineeringOptionConfiguration

TopPreviousNext

ReverseEngineeringOptionSetupScreen

ThisisthescreenforconfiguringtheoptionsrequiredforJavareverseengineering.

ModelGeneration

ModelGenerationincludesvariousoptionsformodelgeneration.Item DescriptionGenerateJavadoctomodeldocumentation

SpecifieswhethertogenerateJavaDocumentasStarUML(tm)modeldocumentation.

Omittheinitialvalueoffield

SpecifieswhethertoomittheinitialvaluesforJavafields.

Page 39: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

public Specifieswhethertogenerateelementswithpublicaccessmodifiers.

package Specifieswhethertogenerateelementswithpackageaccessmodifiers.

protected Specifieswhethertogenerateelementswithprotectedaccessmodifiers.

private Specifieswhethertogenerateelementswithprivateaccessmodifiers.

Referencefieldcreation

ReferenceFieldGenerationspecifiesgenerationmethodsforreferencefieldswhengeneratingmodels.Item DescriptionCreatethefieldtotheAttribute

SpecifieswhethertogenerateJavafieldsasStarUML(tm)modelattributes.

CreatethefieldtoAssociations

SpecifieswhethertogenerateJavafieldsasStarUML(tm)modelassociations.

Diagram

Diagramspecifiesdiagramgenerationandthedefaultgenerationnames.Item DescriptionCreateOverviewdiagram

SpecifieswhethertogenerateOverviewdiagramwhengeneratingmodel.

Thenameofadiagram

SpecifiesnamesforOverviewdiagramgeneration.Thestring%sisautomaticallyreplacedbythepackagename.

View

Viewspecifiedview-relatedoptionsaftermodelgeneration.Item DescriptionSuppresstheattributecompartment

Suppressestheattributecompartmentofclassmodels.

Page 40: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Suppresstheoperationcompartment

Suppressestheoperationcompartmentofclassmodels.

Hideoperationsignatures

Specifieswhethertodisplayallsignaturesforoperationelements.

Generategeneralizationandrealizationviewsonly

Specifieswhethertogenerategeneralizationandrealizationviewsonlyforthemodelsgenerated.

Page 41: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaCodeGeneration TopPreviousNext

JavaforwardengineeringgeneratesJavasourcefilesfromStarUML(tm)models.

JavaCodeGeneration

CodeGenerationOptionConfigurations

Page 42: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaCodeGeneration TopPreviousNext

ProcedureforCodeGeneration:

1. InStarUML(tm),selectthe[Tools]->[Java]->[GenerateCode...]menu.

2. Atthe[SelectStartingPackageLocation]pageinthe[JavaCodeGeneration]dialogbox,selectapackageandclick[Next].

3. Atthe[Selectthecodegenerationelement(s)]page,selecttheelementsandclick[Next].

Page 43: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

4. Atthe[OutputDirectorySetup]page,selectadirectorytosavetheoutputsourcesandclick[Next].

Page 44: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

5. Atthe[OptionSetup]page,selectoptionsandclick[Next].Reverseengineeringwillstartnow.

Page 45: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

6. The[CodeGeneration]pagewillshowthecodegenerationprogressstatusandreturncodegenerationfailureorsuccessresults.

Page 46: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

Note

ThefollowingerrorwilloccurifJavacodegenerationisexecutedwithoutincludingJavaprofile.PleaseensurethatJavaprofileisincludedintheprojectbeforeexecutingcodegeneration.

Page 47: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

CodeGenerationOptionConfigurations

TopPreviousNext

CodeGenerationOptionSetupScreen

Thisisthescreenforconfiguringtheoptionsrequiredforcodegeneration.

GenerationOptions

Generationoptionsaremodel-relatedoptionsforcodegeneration.Item DescriptionGenerateunnamedAssociationEnd

SpecifieswhethertogenerateAssociationEndattheendofanunnamedAssociation.

GeneratetheDocumentationbyJavaDoc

SpecifieswhethertogenerateStarUML(tm)modeldocumentationasJavaDoc.

Generateempty SpecifieswhethertogenerateemptyStarUML(tm)

Page 48: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

JavaDoc documentation.

CodeStyleOptions

Editingoptionsaretext-relatedoptionsforcodegeneration.Item DescriptionPlaceopeningcurlybrace"{"inthenewline

Specifiesthelocationoftheopeningcurlybrace"{"forcodegeneration.

Inserttabasspace Specifieswhethertoinsertspacestringsinsteadoftabs.

Tabwidth Specifiesthenumberofspacesforatab.

FileHeaderComments

FileHeaderCommentsdefinesthecommentsforeachfilehead.Item Description

Fileheadercomments

Containsthecommentstobeinsertedinthebeginningofthesourcefile.Asdescribedinthe"headercommentsdescription"section,the'@'symbolandalphanumericcharacterscanbeusedtoinsertspecificvalueshere.

Page 49: Starting Help Top Next · Java Add-In Functions Top Previous Next Java Add-In provides the following functions. Java Profile Java profile is provided to allow visual modeling of Java

FAQ TopPrevious

ThefollowingarefrequentlyaskedquestionsandanswersforusingJavaAdd-In.

1. WhataretheJavaLanguageversionssupportedbyJavaAdd-In?

2. Igeta"JavaProfileisnotloaded"warningwindowwhengeneratingcode.Whatdoesthismean?

1. JavaWhataretheJavaLanguageversionssupportedbyJavaAdd-In?JavaAdd-InsupportsJavaLanguageSpecificationversion1.3,whichisthemostwidelyusedversion.

2. Igeta"JavaProfileisnotloaded"warningwindowwhengeneratingcode.Whatdoesthismean?JavaProfilemustbeincludedinordertousetheJavacodegenerationfunction.IncludingJavaProfile