-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapter: Refactor XML and JSON de-/serialization methods (#166)
Previously, the methods for handling attributes of abstract classes in XML and JSON de-/serialization were quite big and hard to understand. This PR refactors these methods. Mostly a method extraction refactoring is done, to simplify the methods and to keep less abstraction levels in a single method. The method `_expect_type` is renamed to `_validate_type` as it clearer represents what the method does.
- Loading branch information
Showing
8 changed files
with
335 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.