Hi Tony,

please verify and check in the following method:

The method getFullyQualifiedName handles now primitive data types.

     /**
      * Returns the name of a model element fully qualified by the
       * name of the package that contains it. If the model element
       * is a primitive type it will return the primitive type itself.
      *
      [EMAIL PROTECTED]  object  model element
      [EMAIL PROTECTED] fully qualifed name
      */
     public String getFullyQualifiedName(Object object)
     {
          if ((object == null) || !(object instanceof ModelElement))
          {
               return null;
          }

          ModelElement modelElement = (ModelElement) object;

          String fullName = modelElement.getName();

      if (StringUtilsHelper.isPrimitiveType(fullName)) {
         return fullName;
      }

          String packageName = getPackageName(modelElement);
          fullName =
               "".equals(packageName) ? fullName : packageName + "." + fullName;

          return fullName;
     }

J�rgen Dufner

--
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenenen Informationen
ist nicht gestattet.

The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is prohibited.




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to