Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366186 - reqif10.model EAttributes of type boolean should not start with "is"
Summary: reqif10.model EAttributes of type boolean should not start with "is"
Status: CLOSED FIXED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5.0   Edit
Assignee: Mark Broerkens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 09:22 EST by Mark Broerkens CLA
Modified: 2014-02-14 06:13 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Broerkens CLA 2011-12-09 09:22:58 EST
The reqif10 model contains some EAttributes of type boolean which start with the prefix "is". The standard EMF code generation adds another "is" when generating the getter methods. This double "is" might confuse the user of the generated model API.

e.g. AccessControlledElement.isEditable would produce a getter called isIsEditable()

== proposal ==
I propose renaming the following EAttributes:
Identifiable.isEditable -> Identifiable.editable
AccessControlledElement.isEditable -> AccessControlledElement.editable
AttributeValueXhtml.isSimplified -> AttributeValueXhtml.simplified
SpecHierarchy.isTableInternal -> SpecHierarchy.tableInternal

The serialization needs to make sure that the correct xml attribute names are created.
Comment 1 Mark Broerkens CLA 2012-04-12 20:37:51 EDT
fixed with commit 3e3829ca63eb7e022913315df0f4e377938c25d8
http://git.eclipse.org/gitroot/rmf/org.eclipse.rmf.git

the serialization mechanism and the metamodel have been reworked
Comment 2 Mark Broerkens CLA 2012-04-12 20:39:24 EDT
fixed as proposed in bug description
Comment 3 Mark Broerkens CLA 2014-02-14 06:13:24 EST
verified and set to closed