Mapping Patterns between XML and Annotations for Software Configuration
Milan Nosal, Jaroslav Poruban
Journal of Information & Systems Management, Vol. 15, No. 3, 2025.
DOI: https://doi.org/10.6025/jism/2025/15/3/93-111
Link: https://www.dline.info/jism/fulltext/v15n3/jismv15n3_1.pdf
Abstract:
The article explores mapping patterns between XML and annotations, focusing on their roles as metadata
formats in software system configurations. It discusses how XML represents external metadata while annotations
are embedded within the source code. The authors identify scenarios where each format is advantageous:
annotations offer simplicity and robustness, while XML provides flexibility for runtime changes and
multiple configurations. They present several mapping patterns Direct Mapping, Nested Annotations, Enumeration,
Wrapper, Distribution, Target, Parent, and Mixing Point's to facilitate the translation between
XML and annotations. These patterns enable developers to design configuration languages effectively, supporting
interoperability between XML and annotation-based systems. The work provides practical insights
into leveraging both formats based on specific configuration needs, thereby enhancing maintainability and
reducing complexity in framework design.