From 23a46b4be35277e06ec89f48730eeb694e686be8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 15:40:06 +0000
Subject: [PATCH] add fdx-commons and fdx-consultation
---
fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/enums/FileExtension.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/enums/FileExtension.java b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/enums/FileExtension.java
new file mode 100644
index 0000000..58e650b
--- /dev/null
+++ b/fdx-commons/fdxcommons-model/src/main/java/com/megatim/fdxcommons/model/integration/enums/FileExtension.java
@@ -0,0 +1,28 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.megatim.fdxcommons.model.integration.enums;
+
+/**
+ *
+ * @author ASUS
+ */
+public enum FileExtension {
+ CSV, TXT, XLS, XLSX;
+
+ public static FileExtension fromValeur(String value) {
+ switch (value.toUpperCase()) {
+ case "CSV":
+ return FileExtension.CSV;
+ case "TXT":
+ return FileExtension.TXT;
+ case "XLS":
+ return FileExtension.XLS;
+ case "XLSX":
+ return FileExtension.XLSX;
+ default:
+ return null;
+ }
+ }
+}
--
Gitblit v1.10.0