Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/marchesini 4 #20

Closed
wants to merge 9 commits into from

Conversation

vrichard12
Copy link
Contributor

@vrichard12 vrichard12 commented Nov 6, 2023

Addresses the following subjects:

  • Handling the renaming of EAttribute
    Renaming of EAttribute is handled by the ExtendedMetaData.getElement() API. Examples of such a migration is provided in the org.eclipse.sirius.emfjson.tests.internal.unit.load.ExtendedMetaDataAttributesLoadTests test class.

  • Handling a type change or a value change of an EAttribute
    Changing the type or the value of an EAttribute is handled with the JsonHelper.setValue() API. Exemple of such migrations are provided in the org.eclipse.sirius.emfjson.tests.internal.unit.load.JsonHelperDataLoadTests test class.

  • Support for Serialization / deserialization of POJO EDataType
    Custom data types with instance type set to a POJO class are serialized to / deserialized from json. The corresponding tests are :
    org.eclipse.sirius.emfjson.tests.internal.unit.load.DataTypeLoadTests.testLoadSingleValueAttributePojoDataType()
    org.eclipse.sirius.emfjson.tests.internal.unit.load.DataTypeLoadTests.testLoadMultiValuedAttributePojoDataType()
    org.eclipse.sirius.emfjson.tests.internal.unit.save.DataTypeSaveTests.testSaveSingleValueAttributePojoDataType()
    org.eclipse.sirius.emfjson.tests.internal.unit.save.DataTypeSaveTests.testSaveMultiValuedAttributePojoDataType()

  • A comparator option on the JsonResource to determine the order in which features are serialized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant