Summary:
Refactor the parser about the id parse
and allocation and refine some code in inheritance system.
- Bugzilla Bug (s) Resolved:
- Description:
1. Make a cache about those elements whose id are not
allocated and added to the map of the module. So this avoids retrieving the
whole
design tree to manage the id, which will help enhance the
performance.
2. Add some checks about the id in the overridden entry in design
file.
3. Refactor some codes in inheritance system to update the
algorithm and enhance the performance.
- Tests Description:
Unit test
- Notes to Build Team: None
- Notes to Developers: None
- Notes to QA: None
- Notes to Documentation: None
- Files Added:
- Files Edited:
Checking in src/org/eclipse/birt/report/model/parser/DesignSchemaConstants.java
Checking in
src/org/eclipse/birt/report/model/parser/ModuleParserErrorHandler.java
Checking in src/org/eclipse/birt/report/model/parser/ReportElementState.java
Checking in
src/org/eclipse/birt/report/model/parser/OverriddenValuesState.java
Checking in src/org/eclipse/birt/report/model/parser/ModuleParserHandler.java
Checking in src/org/eclipse/birt/report/model/parser/LibraryState.java
Checking in
src/org/eclipse/birt/report/model/parser/CompatibleLibraryStylesState.java
Checking in
src/org/eclipse/birt/report/model/parser/CompatibleDataSetParamListPropertyState.java
Checking in src/org/eclipse/birt/report/model/parser/ListPropertyState.java
Checking in src/org/eclipse/birt/report/model/command/LibraryRecord.java
Checking in src/org/eclipse/birt/report/model/elements/TableItem.java
Checking in src/org/eclipse/birt/report/model/core/Module.java
Checking in src/org/eclipse/birt/report/model/core/DesignElement.java
Checking in
src/org/eclipse/birt/report/model/util/ReportDesignSerializer.java
Checking in src/org/eclipse/birt/report/model/util/VersionUtil.java
Checking in src/org/eclipse/birt/report/model/util/ModelUtil.java
Checking in src/org/eclipse/birt/report/model/util/ElementStructureUtil.java
Checking in src/org/eclipse/birt/report/model/api/ElementFactory.java
Checking in
test/org/eclipse/birt/report/model/core/golden/DesignElementCloneTest_ExtendedClone_golden.xml;
Checking in
test/org/eclipse/birt/report/model/core/golden/DeisgnElementCloneTest_gridClone_golden.xml;
Checking in
test/org/eclipse/birt/report/model/core/golden/DesignElementCloneTest_ImageClone_golden.xml;
Checking in test/org/eclipse/birt/report/model/core/golden/ModuleTest_golden_2.xml;
Checking in
test/org/eclipse/birt/report/model/core/golden/ModuleTest_golden.xml;
Checking in
test/org/eclipse/birt/report/model/core/golden/PropertyStructureCloneTest_golden.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DocumentUtilTest_golden.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/testWriter_golden.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DocumentUtilTest_golden_5.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DocumentUtilTest_golden_1.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DesignWriterTest_golden.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DocumentUtilTest_golden_3.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DocumentUtilTest_golden_4.xml;
Checking in
test/org/eclipse/birt/report/model/writer/golden/DesignWriterTest_UTF8BOM_golden.xml;
Checking in test/org/eclipse/birt/report/model/writer/golden/DocumentUtilTest_golden_2.xml;
Checking in
test/org/eclipse/birt/report/model/core/DesignElementCloneTest.java;
Checking in test/org/eclipse/birt/report/model/core/ModuleTest.java;
Checking in src/org/eclipse/birt/report/model/api/ElementFactory.java;
Checking in src/org/eclipse/birt/report/model/command/LibraryRecord.java;
Checking in test/org/eclipse/birt/report/model/writer/DocumentUtilTest.java;
Checking in src/org/eclipse/birt/report/model/elements/TableItem.java;
Checking in
test/org/eclipse/birt/report/model/core/golden/PropertyStructureCloneTest1_golden.xml;