Class ADModelTranslationHelper

java.lang.Object
de.mid.innovator.srv2api.icw2meta.ADModelTranslationHelper

public abstract class ADModelTranslationHelper extends Object
This is a utility class for ADModelTranslation that provides static methods for creation or other purposes.
See Also:
  • Method Details

    • getTextTranslations

      public static ARG_GetTextTranslationsOut getTextTranslations(SrvContext srvCtx, List<? extends ADModelTranslation> seqLang, List<? extends MMTextAble> seqElem) throws InoNetException, SrvErrorException
      Returns all text values and translations for each element and language.
      Parameters:
      srvCtx - The context of the related innovator server.
      seqLang - list of translation languages
      seqElem - list of text able elements
      Throws:
      InoNetException
      SrvErrorException
    • 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 languages
      seqElem - list of text able elements
      onlyFlow - true, if only flow text definitions are required
      onlyUsed - true, if only existing text values are required, all configured text definitions otherwise
      noTrans - true, if no translations are required for text values
      withSync - true, if synced text definitions are added, withSync is ignored if onlyUsed, onlyFlow or allArea is activated
      addElem - true, if connected elements are added
      withLock - true, if lock units are necessary
      allArea - true, if text definitions of all areas are required, only the specified area otherwise
      kArea - area of the required text definitions
      Throws:
      InoNetException
      SrvErrorException