From b73fe18c905967262afed412e26da11be66a7edb Mon Sep 17 00:00:00 2001 From: Tony Walmsley Date: Wed, 19 Oct 2022 09:45:58 +0100 Subject: [PATCH] Add createEnumeratedClass method --- .../gchq/magmacore/hqdm/services/ClassServices.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hqdm/src/main/java/uk/gov/gchq/magmacore/hqdm/services/ClassServices.java b/hqdm/src/main/java/uk/gov/gchq/magmacore/hqdm/services/ClassServices.java index 0c5b8e20..e054fc9e 100644 --- a/hqdm/src/main/java/uk/gov/gchq/magmacore/hqdm/services/ClassServices.java +++ b/hqdm/src/main/java/uk/gov/gchq/magmacore/hqdm/services/ClassServices.java @@ -798,6 +798,16 @@ public static ClassOfSystemComponent createClassOfSystemComponent(final String i return new ClassOfSystemComponentImpl(id); } + /** + * Create a {@link EnumeratedClass} with an String. + * + * @param id ID of the EnumeratedClass. + * @return A EnumeratedClass instance. + */ + public static EnumeratedClass createEnumeratedClass(final String id) { + return new EnumeratedClassImpl(id); + } + /** * Create a {@link KindOfActivity} with an String. *