12.07.2015 Views

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Create a <strong>Component</strong> from a Java ClassCreate a <strong>Component</strong> from a Java ClassNow that you have the Location<strong>Component</strong> Java class, you will use the <strong>Component</strong>Wizard to create a component implementation object and an interface that willcontain the method stubs.1. Right-click on the Location<strong>Component</strong> Java class and chooseGenerate <strong>Component</strong>….2. Click Next on the <strong>Component</strong> Wizard – Welcome panel.3. Leave the Offers Interfaces field blank and the wizard creates an interface <strong>for</strong>you that contains all the public methods of the Location<strong>Component</strong> Java class.Click Finish to start the process, and click Close when the wizard completes.4. Note that you now have a newly created Location<strong>Component</strong> componentimplementation object and an ILocation<strong>Component</strong> Java interface. Expand theILocation<strong>Component</strong> Java interface object to view the operation stubs.Remove the Transition Objects1. Right-click on com.myCarRentalShop.location.Temp<strong>Component</strong> andselect Delete, click Yes on the Confirm Delete dialog box.2. Right-click the com.myCarRentalShop.ITemp Java interface and selectDelete, click Yes on the Confirm Delete dialog box.3. You now have the desired implementation structure.SummaryIn this chapter, you:• Refined the component specification• Created initial implementation objects from the component specificationusing the Specification to Implementation Wizard• Created a component from a Java class• Removed transition objects3–12 Advantage Joe Integrating with <strong>AllFusion</strong> <strong>Component</strong> <strong>Modeler</strong> – <strong>XMI</strong> Import/Export

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!