[ http://jira.andromda.org/browse/JAVA-16?page=all ]
Plushnikov Michail resolved JAVA-16:
------------------------------------
Fix Version: 3.4-SNAPSHOT
Resolution: Fixed
Assign To: Plushnikov Michail (was: Matthias Bohlen)
Fixed in 3.4-SNAPSHOOT
> generated application exceptions should have getters/setters for its
> attributes generated
> -----------------------------------------------------------------------------------------
>
> Key: JAVA-16
> URL: http://jira.andromda.org/browse/JAVA-16
> Project: Java Cartridge
> Type: Improvement
> Environment: WindowsXP, AndroMDA 3.0
> Reporter: Martin Vysny
> Assignee: Plushnikov Michail
> Priority: Minor
> Fix For: 3.4-SNAPSHOT
>
> <<ApplicationException>> class is generated as java exception, but the
> generator ignores attributes defined in the class and does not generate
> getters/setters. I tried to add <<ValueObject>> stereotype but it didn't work
> either. Finally I modified the ApplicationException.vsl and added
> #foreach ($attribute in $class.attributes)
> private $attribute.getterSetterTypeName $attribute.name;
> /**
> $attribute.getDocumentation(" * ")
> */
> $attribute.visibility $attribute.getterSetterTypeName
> ${attribute.getterName}()
> {
> return this.${attribute.name};
> }
> $attribute.visibility void
> ${attribute.setterName}($attribute.getterSetterTypeName $attribute.name)
> {
> this.${attribute.name} = $attribute.name;
> }
> #end
> before final
> #parse("templates/java/ExceptionUtils.vm")
> command.
--
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
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge