# sgianelli/jfaker architecture

> Architecture diagram of the GitHub repository sgianelli/jfaker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sgianelli/jfaker
- Repository: https://github.com/sgianelli/jfaker

## Overview

JFaker is an early-stage Java fake-data generation library. The documented user workflow is to request generated values (such as names, addresses, phone numbers, or filler text); the sampled Java provider abstraction selects a format and substitutes randomly chosen values from its configured data. The repository also contains a Python name-data migration utility that converts locale datasets into XML-like text files. The README describes broader planned capabilities, but sampled Java code only establishes the provider mechanism; implementation links to the XML resource are therefore omitted.

Main entry points: [`src/main/java/gizmo385/jfaker/providers/AbstractProvider.java`](https://github.com/sgianelli/jfaker/blob/master/src/main/java/gizmo385/jfaker/providers/AbstractProvider.java) (Abstract provider), [`Python Data Migration/BuildXML.py`](https://github.com/sgianelli/jfaker/blob/master/Python%20Data%20Migration/BuildXML.py) (XML data builder), [`Python Data Migration/NameData.py`](https://github.com/sgianelli/jfaker/blob/master/Python%20Data%20Migration/NameData.py) (Locale name data), [`Python Data Migration/xml_format`](https://github.com/sgianelli/jfaker/tree/master/Python%20Data%20Migration/xml_format) (Locale text outputs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_java["Java generation"]
  node_provider["Abstract provider"]
end

subgraph group_migration["Name migration"]
  node_names["Locale name data<br/>[NameData.py]"]
  node_xml_builder["XML data builder<br/>[BuildXML.py]"]
end

subgraph group_data["Generation data"]
  node_locale_files["Locale text outputs"]
  node_generation_xml["Generation XML<br/>[GenerationData.xml]"]
end

node_user(("Library user"))

node_user -->|"requests data"| node_provider
node_provider -->|"selects and combines"| node_provider
node_xml_builder -->|"imports data"| node_names
node_xml_builder -->|"writes locale data"| node_locale_files

click node_provider "https://github.com/sgianelli/jfaker/blob/master/src/main/java/gizmo385/jfaker/providers/AbstractProvider.java"
click node_names "https://github.com/sgianelli/jfaker/blob/master/Python%20Data%20Migration/NameData.py"
click node_xml_builder "https://github.com/sgianelli/jfaker/blob/master/Python%20Data%20Migration/BuildXML.py"
click node_locale_files "https://github.com/sgianelli/jfaker/tree/master/Python%20Data%20Migration/xml_format"
click node_generation_xml "https://github.com/sgianelli/jfaker/blob/master/src/main/resources/GenerationData.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_provider,node_user toneBlue
class node_names,node_xml_builder toneAmber
class node_locale_files,node_generation_xml toneMint
```

## Components

### Java generation

- [Abstract provider](https://github.com/sgianelli/jfaker/blob/master/src/main/java/gizmo385/jfaker/providers/AbstractProvider.java): `src/main/java/gizmo385/jfaker/providers/AbstractProvider.java`

### Name migration

- [Locale name data](https://github.com/sgianelli/jfaker/blob/master/Python%20Data%20Migration/NameData.py): `Python Data Migration/NameData.py`
- [XML data builder](https://github.com/sgianelli/jfaker/blob/master/Python%20Data%20Migration/BuildXML.py): `Python Data Migration/BuildXML.py`

### Generation data

- [Locale text outputs](https://github.com/sgianelli/jfaker/tree/master/Python%20Data%20Migration/xml_format): `Python Data Migration/xml_format`
- [Generation XML](https://github.com/sgianelli/jfaker/blob/master/src/main/resources/GenerationData.xml): `src/main/resources/GenerationData.xml`

### Other components

- **Library user**

## Connections

- Library user → Abstract provider: requests data (evidence: `README.md`)
- Abstract provider → Abstract provider: selects and combines (evidence: `src/main/java/gizmo385/jfaker/providers/AbstractProvider.java`)
- XML data builder → Locale name data: imports data (evidence: `Python Data Migration/BuildXML.py`)
- XML data builder → Locale text outputs: writes locale data (evidence: `Python Data Migration/BuildXML.py`)
