Skip to content

Commit 6106f5b

Browse files
committed
javadoc
1 parent 2fe80ff commit 6106f5b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/utils/MdoReferences.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,19 @@
2626
import com.github._1c_syntax.bsl.mdo.support.ScriptVariant;
2727
import lombok.experimental.UtilityClass;
2828

29+
/**
30+
* Класс с методами-утилитами для MdoReference.
31+
*/
2932
@UtilityClass
3033
public class MdoReferences {
3134

35+
/**
36+
* Получить mdoRef в языке конфигурации
37+
*
38+
* @param documentContext the document context
39+
* @param mdo the mdo
40+
* @return the locale mdoRef
41+
*/
3242
public String getLocaleMdoRef(DocumentContext documentContext, MD mdo) {
3343
final var mdoReference = mdo.getMdoReference();
3444
if (documentContext.getServerContext().getConfiguration().getScriptVariant() == ScriptVariant.ENGLISH) {
@@ -37,6 +47,13 @@ public String getLocaleMdoRef(DocumentContext documentContext, MD mdo) {
3747
return mdoReference.getMdoRefRu();
3848
}
3949

50+
/**
51+
* Получить имя родителя метаданного в языке конфигурации.
52+
*
53+
* @param documentContext the document context
54+
* @param mdo the mdo
55+
* @return the locale owner mdo name
56+
*/
4057
public String getLocaleOwnerMdoName(DocumentContext documentContext, MD mdo) {
4158
final var names = getLocaleMdoRef(documentContext, mdo).split("\\.");
4259
return names[0].concat(".").concat(names[1]);

0 commit comments

Comments
 (0)