Module namespace

Module namespace 

Source
Expand description

Namespace module for handling different configuration data formats.

This module provides abstractions for working with various configuration data formats such as JSON, Properties, YAML, XML, and plain text. It includes functionality to automatically detect the format based on namespace naming conventions and convert raw JSON values into appropriate typed representations.

§Supported Formats

  • Properties: Key-value pairs, typically used for application configuration
  • JSON: Structured JSON data with full object support
  • YAML: Structured YAML data with full object support
  • XML: XML format (planned, currently commented out)
  • Text: Plain text content

§Usage

The module automatically detects the format based on file extensions in the namespace name:

  • .json → JSON format
  • .yaml or .yml → YAML format
  • .xml → XML format
  • .txt → Text format
  • No extension → Properties format (default)

Modules§

json
JSON namespace implementation for handling structured JSON configuration data.
properties
Properties namespace implementation for handling key-value configuration data.
yaml
YAML namespace implementation for handling structured YAML configuration data.

Enums§

Error
Comprehensive error types that can occur when working with namespaces.
Namespace
Represents different types of configuration data formats.