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

Bug 366018

Summary: Some attributes in the reqif10 model are not typed correctly
Product: [Modeling] MDT.RMF Reporter: Mark Broerkens <eclipse>
Component: Reqif-1.0Assignee: Mark Broerkens <eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P2 CC: michael
Version: unspecified   
Target Milestone: 0.5.0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Mark Broerkens CLA 2011-12-08 07:47:41 EST
The some attributes are typed by JavaObject instead of the the datatype that is defined in the spec or the XML schema. The attributes and proposed datatypes are listed below:

(1) Identifiable.isEditable -> EBoolean
     (boolean in ReqIf spec, xsd:boolean in ReqIF XML schema)

(2) AttributeValueXhtml.isSimplified -> EBoolean 
     (boolean in ReqIf spec, xsd:boolean in ReqIF XML schema)

(3) SpecHierarchy.isTableInternal -> EBoolean
     (boolean in ReqIf spec, xsd:boolean in ReqIF XML schema)

(4) AlternativeId.identifier -> EString 
     (string in ReqIf spec, xsd:string in ReqIf XML Schema)

(5) EmbeddedValue.key ->EBigInteger
     (integer in ReqIf spec, xsd:integer in XML schema) 

(6) EmbeddedValue.otherContent -> EString 
     (string in ReqIf spec, xsd:string in ReqIf XML Schema)

(7) DatatypeDefinitionReal.accuracy -> EBigInteger
     (integer in ReqIf spec, xsd:integer in XML schema)


Note: EBigInteger is required since xsd:integer and cmof:integer define infinite integers:
An instance of Integer is an element in the (infinite) set of integers (…-2, -1, 0, 1, 2…).
[1][2]

[1] http://www.w3.org/TR/xmlschema-2/#integer
[2] http://www.omg.org/spec/UML/2.4.1/Infrastructure/PDF/
Comment 1 Mark Broerkens CLA 2012-04-12 20:33:47 EDT
fixed with commit 3e3829ca63eb7e022913315df0f4e377938c25d8
http://git.eclipse.org/gitroot/rmf/org.eclipse.rmf.git