From bb324f739aa73f0af5d16041154a2bdc75afa8f5 Mon Sep 17 00:00:00 2001 From: nilswende Date: Fri, 25 Oct 2024 12:27:15 +0200 Subject: [PATCH] add EnumValue getters --- src/main/java/com/wn/dbml/model/EnumValue.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/wn/dbml/model/EnumValue.java b/src/main/java/com/wn/dbml/model/EnumValue.java index 18dae82..53dc706 100644 --- a/src/main/java/com/wn/dbml/model/EnumValue.java +++ b/src/main/java/com/wn/dbml/model/EnumValue.java @@ -8,8 +8,16 @@ public class EnumValue { private Note note; EnumValue(Enum anEnum, String name) { - this.anEnum = anEnum; - this.name = name; + this.anEnum = Objects.requireNonNull(anEnum); + this.name = Objects.requireNonNull(name); + } + + public Enum getEnum() { + return anEnum; + } + + public String getName() { + return name; } public Note getNote() {