Community
Participate
Working Groups
Created attachment 243492 [details] Enable serialization/deseiralization for mixed content - figures Currently the XMLPersistenceMapping saver and handler (XMLPersistenceMappingSavingImpl and XMLPersistenceMappingHandler) ignores the serialization/deserialization for mixed content. For mixed elements, i.e., - XML Schema complexType with mixed="true", - or an Ecore Eclass with "kind"->"mixed", and with a feature map EAttribute of eType = "EFeatureMapEntry", and which includes the following entries in the details map of its extended metadata EAnnotation: "name"->":mixed" "kind"->"elementWildcard", it should allow values of the derived references to be mixed with values of the special TEXT feature (XMLTypeDocumentRoot.text), which represents simple text. An example could be found in the attached figures: The "formula" attribute of EastADLErrorBehavior class is a FailureLogicFormula which is mixed of text and its other four references: externalFailure, processFault, internalFault and externalFault. Its super class FormulaExpression (figure mixed1.png) is of kind "mixed" with a "Formula" attribure as specified above. The result should be a formula mixed of them, as in figure mixed3.png ==== proposed solution ==== - XMLPersistenceMappingHandler: a mixedTarget should also be poped from mixedTargets, when an object is poped from objects during the handling of endElement() - XMLPersistenceMappingSavingImpl: override saveElementFeatureMap() to save the text
Closed stale issue before migration