Skip to main content

Difference between getFullPathName() and getCurrentDirectory() methods in the Rational Rhapsody Java API


Technote (FAQ)


Question

What is the difference between the Java API usage of getFullPathName() and getCurrentDirectory() methods in IBM Rational Rhapsody?

Cause

You would like to extract the path information of your project in Rational Rhapsody.

Answer

These two methods namely getFullPathName() and getCurrentDirectory() are available while declaring an instance of the interface IRPProject in the Rational Rhapsody API.

getFullPathName()

This method returns the internal path in a UML model that is loaded in Rational Rhapsody and not the local system path of the model location. If you invoke this method directly from IRPProject, it will most likely return an empty space as most models do not have their internal paths set. This is expected behavior.


getCurrentDirectory()

This method returns the system path ( i.e. Windows or Unix file path to the model itself) e.g. C:\Program Files\Models\modelexample.rpy
However, it doesn't include the model name.e.g. : C\Program Files\Models\


Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational Rhapsody

General Information


Software version:
7.5, 7.5.0.1, 7.5.1, 7.5.1.1, 7.5.2, 7.5.2.1, 7.5.3, 7.5.3.1, 7.5.3.2, 7.6, 7.6.0.1, 7.6.1


Operating system(s):
Windows


Reference #:
1575584


Modified date:
2012-12-11

Translate my page

Content navigation