Difference between revisions of "DSDP/MTJ/Requirements/Multi-Configuration Support"

From Eclipsepedia

< DSDP‎ | MTJ‎ | Requirements
Jump to: navigation, search
Line 1: Line 1:
 
'''ID:''' Multi-Config: FR001 - Configuration data format & persistence
 
'''ID:''' Multi-Config: FR001 - Configuration data format & persistence
 +
  
 
'''Description:'''  
 
'''Description:'''  
Line 6: Line 7:
 
data.
 
data.
 
''1. Data format:''
 
''1. Data format:''
<nowiki><?xml version="1.0" encoding="UTF-8"?>
 
<mtjMetadata jad="Tedst.jad" version="0.9.0.qualifier">
 
  <signing signProject="false"/>
 
 
   <configurations>
 
   <configurations>
 
       <configuration active="true" name="A910">
 
       <configuration active="true" name="A910">
Line 18: Line 16:
 
       </configuration>
 
       </configuration>
 
       <configuration active="false" name="S40_5th_Edition_SDK_Feature_Pack_1">
 
       <configuration active="false" name="S40_5th_Edition_SDK_Feature_Pack_1">
         <device group="Series 40 5th Edition SDK, Feature Pack 1"
+
         <device group="Series 40 5th Edition SDK, Feature Pack 1" name="S40_5th_Edition_SDK"/>
name="S40_5th_Edition_SDK_Feature_Pack_1"/>
+
 
         <symbolSet>
 
         <symbolSet>
 
             <symbol name="screen.isTouch" value="false"/>
 
             <symbol name="screen.isTouch" value="false"/>
Line 26: Line 23:
 
       </configuration>
 
       </configuration>
 
   </configurations>
 
   </configurations>
</mtjMetadata></nowiki>
 
 
As the xml file shows above, a project meta data file contains several
 
As the xml file shows above, a project meta data file contains several
 
configurations, each configuration contains a device and a symbolSet. One and
 
configurations, each configuration contains a device and a symbolSet. One and
Line 40: Line 36:
 
'''Owner:''' Feng Wang
 
'''Owner:''' Feng Wang
  
'''Status:'''
+
'''Status:''' Proposed: 20-Oct-2008
 
+
    Proposed: 20-Oct-2008
+
  
 
'''Community Review:''' TBD
 
'''Community Review:''' TBD

Revision as of 01:12, 20 October 2008

ID: Multi-Config: FR001 - Configuration data format & persistence


Description: Each MTJ Java ME project should store the multi-configuraton (multi-device) meta data. We should define the data format and persistence the data. 1. Data format:

  <configurations>
     <configuration active="true" name="A910">
        <device group="MOTODEV SDK for Java(TM) ME" name="A910"/>
        <symbolSet>
           <symbol name="CLDC" value="1.1"/>
           <symbol name="JSR82" value="1.0"/>
        </symbolSet>
     </configuration>
     <configuration active="false" name="S40_5th_Edition_SDK_Feature_Pack_1">
        <device group="Series 40 5th Edition SDK, Feature Pack 1" name="S40_5th_Edition_SDK"/>
        <symbolSet>
           <symbol name="screen.isTouch" value="false"/>
           <symbol name="WMA" value="2.0"/>
        </symbolSet>
     </configuration>
  </configurations>

As the xml file shows above, a project meta data file contains several configurations, each configuration contains a device and a symbolSet. One and only one configuration is "active".

2. Data persistence: We use MTJ J2ME project meta data file (.mtj file) for configuration data store. We remove the former <device> element of the file, add <configurations> element to the file.

Priority: 1

Owner: Feng Wang

Status: Proposed: 20-Oct-2008

Community Review: TBD