diff --git a/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java b/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java index 86ee9d3..83376ff 100644 --- a/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java +++ b/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java @@ -27,16 +27,16 @@ public Optional getCompasPrivate(SCL scl) { return Optional.empty(); } - public Optional getCompasSclName(TPrivate compasPrivate) { - return getCompasValue(compasPrivate, SCL_NAME, String.class); + public Optional getLabels(TPrivate compasPrivate) { + return getCompasValue(compasPrivate, LABELS, TCompasLabels.class); } public Optional getCompasSclFileType(TPrivate compasPrivate) { return getCompasValue(compasPrivate, SCL_FILE_TYPE, SclFileType.class); } - public Optional getLabels(TPrivate compasPrivate) { - return getCompasValue(compasPrivate, LABELS, TCompasLabels.class); + public Optional getCompasSclName(TPrivate compasPrivate) { + return getCompasValue(compasPrivate, SCL_NAME, String.class); } private Optional getCompasValue(TPrivate compasPrivate, CompasExtensionsField field, Class clazz) { diff --git a/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java b/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java index d56bcf1..cb64acf 100644 --- a/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java +++ b/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java @@ -34,14 +34,14 @@ private Optional getCompasValue(TPrivate compasPrivate, CompasExtensionsF return Optional.empty(); } - public Optional getCompasSclName(TPrivate compasPrivate) { - return getCompasValue(compasPrivate, SCL_NAME, String.class); - } - public Optional getCompasSclFileType(TPrivate compasPrivate) { return getCompasValue(compasPrivate, SCL_FILE_TYPE, SclFileType.class); } + public Optional getCompasSclName(TPrivate compasPrivate) { + return getCompasValue(compasPrivate, SCL_NAME, String.class); + } + public Optional getLabels(TPrivate compasPrivate) { return getCompasValue(compasPrivate, LABELS, TCompasLabels.class); }