Class CreateNameStringFromDisplayNamesUtil

java.lang.Object
com.idmedia.translationstudio.impl.util.FancyFilenameOperation
com.idmedia.translationstudio.impl.util.CreateNameStringFromDisplayNamesUtil
All Implemented Interfaces:
IOperationProcessSimple<List<String>,String>

public class CreateNameStringFromDisplayNamesUtil extends FancyFilenameOperation
Create fancy names
Author:
I-D Media AG
  • Method Details

    • contact

      @NotNull public static @NotNull String contact(@Nullable @Nullable List<ITranslatableFile> vpFiles, int nMaxLen)
      Concat all display names into a single string and remove duplicate names
      Parameters:
      vpFiles -
      nMaxLen -
      Returns:
    • get

      @NotNull public static @NotNull String get(@NotNull @NotNull List<String> vsDisplayNames, int nMaxLength)
      Concat a list of strings into a single string and ensure it does not exceed the given length
      Parameters:
      vsDisplayNames -
      nMaxLength -
      Returns:
    • removeIllegalFilenameCharacters

      @NotNull public static @NotNull String removeIllegalFilenameCharacters(@NotNull @NotNull String sName)
    • ensureXmlFileType

      @NotNull public static @NotNull String ensureXmlFileType(@NotNull @NotNull String sFilename, @NotNull @NotNull String sDisplayName)