Class ADModelTranslationHelper
java.lang.Object
de.mid.innovator.srv2api.icw2meta.ADModelTranslationHelper
This is a utility class for ADModelTranslation that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ARG_GetTextTranslationsOutgetTextTranslations(SrvContext srvCtx, List<? extends ADModelTranslation> seqLang, List<? extends MMTextAble> seqElem) static ARG_GetTextTranslationsOutgetTextWithTranslations(SrvContext srvCtx, List<? extends ADModelTranslation> seqLang, List<? extends MMTextAble> seqElem, boolean onlyFlow, boolean onlyUsed, boolean noTrans, boolean withSync, boolean addElem, boolean withLock, boolean allArea, K_TEXT_VISIBILITY kArea)
-
Method Details
-
getTextTranslations
public static ARG_GetTextTranslationsOut getTextTranslations(SrvContext srvCtx, List<? extends ADModelTranslation> seqLang, List<? extends MMTextAble> seqElem) throws InoNetException, SrvErrorException - Parameters:
srvCtx- The context of the related innovator server.seqLang- list of translation languagesseqElem- list of text able elements- Throws:
InoNetExceptionSrvErrorException
-
getTextWithTranslations
public static ARG_GetTextTranslationsOut getTextWithTranslations(SrvContext srvCtx, List<? extends ADModelTranslation> seqLang, List<? extends MMTextAble> seqElem, boolean onlyFlow, boolean onlyUsed, boolean noTrans, boolean withSync, boolean addElem, boolean withLock, boolean allArea, K_TEXT_VISIBILITY kArea) throws InoNetException, SrvErrorException Returns all text values and translations for each element and language. The result may be influenced by several parameters.- Parameters:
srvCtx- The context of the related innovator server.seqLang- list of translation languagesseqElem- list of text able elementsonlyFlow- true, if only flow text definitions are requiredonlyUsed- true, if only existing text values are required, all configured text definitions otherwisenoTrans- true, if no translations are required for text valueswithSync- true, if synced text definitions are added, withSync is ignored if onlyUsed, onlyFlow or allArea is activatedaddElem- true, if connected elements are addedwithLock- true, if lock units are necessaryallArea- true, if text definitions of all areas are required, only the specified area otherwisekArea- area of the required text definitions- Throws:
InoNetExceptionSrvErrorException
-