Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366186

Summary: reqif10.model EAttributes of type boolean should not start with "is"
Product: [Modeling] MDT.RMF Reporter: Mark Broerkens <eclipse>
Component: Reqif-1.0Assignee: Mark Broerkens <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michael
Version: unspecified   
Target Milestone: 0.5.0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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