From 915c84e404a730728ebdd6dc7708d2cb03c97e29 Mon Sep 17 00:00:00 2001 From: gleizesDor <115622893+gleizesDor@users.noreply.github.com> Date: Tue, 8 Oct 2024 16:09:53 +0200 Subject: [PATCH] feat(#427): Add TcompasLdevice private creation Signed-off-by: gleizesDor <115622893+gleizesDor@users.noreply.github.com> --- .../lfenergy/compas/sct/commons/util/PrivateUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sct-commons/src/main/java/org/lfenergy/compas/sct/commons/util/PrivateUtils.java b/sct-commons/src/main/java/org/lfenergy/compas/sct/commons/util/PrivateUtils.java index ed0f095b9..049f1e48a 100644 --- a/sct-commons/src/main/java/org/lfenergy/compas/sct/commons/util/PrivateUtils.java +++ b/sct-commons/src/main/java/org/lfenergy/compas/sct/commons/util/PrivateUtils.java @@ -153,6 +153,15 @@ public static TPrivate createPrivate(TCompasSystemVersion compasSystemVersion) { return createPrivate(objectFactory.createSystemVersion(compasSystemVersion)); } + /** + * Create Private of given type as parameter + * @param tCompasLDevice type of Private to create + * @return created Private + */ + public static TPrivate createPrivate(TCompasLDevice tCompasLDevice) { + return createPrivate(objectFactory.createLDevice(tCompasLDevice)); + } + /** * Create a single Private of type COMPAS-Topo * containing all given TCompasTopo