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