AndroMDA Typemappings does not support froms containing whitespace
------------------------------------------------------------------

         Key: CORE-119
         URL: http://jira.andromda.org/browse/CORE-119
     Project: AndroMDA Core
        Type: Bug

    Versions: 3.1    
    Reporter: Martin Steinle
 Assigned to: Chad Brandon 
    Priority: Minor


MagicDraw UML defines the standard UML types (e.g. "UML Standard Profile::UML 
Standard Profile::datatypes::boolean") in the namespace "UML Standard profile", 
which contains whitespaces. Mapping these standard types to Java Types (e.g. 
boolean) using the TypeMapping mechanism fails.
Looking at the source code, I found out the following:
- org.andromda.metafacades.uml.TypeMappings.getMappings().containsFrom("UML 
Standard Profile::UML Standard Profile::datatypes::boolean") returns true for 
my mapping file.
- org.andromda.metafacades.uml.TypeMappings.getTo("UML Standard Profile::UML 
Standard Profile::datatypes::boolean") returns 
"UMLStandardProfile::UMLStandardProfile::datatypes::boolean" (mind the missing 
spaces)
The reason is, as I can see, the first line in the method 
org.andromda.metafacades.uml.TypeMappings.getTo(String from), starting with 
StringUtils.deleteWhitespace(...
In my opinion, this should be replaced by StringUtils.strip(...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Reply via email to