Class CreateNameStringFromDisplayNamesUtil
java.lang.Object
com.idmedia.translationstudio.impl.util.FancyFilenameOperation
com.idmedia.translationstudio.impl.util.CreateNameStringFromDisplayNamesUtil
- All Implemented Interfaces:
IOperationProcessSimple<List<String>,String>
Create fancy names
- Author:
- I-D Media AG
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Stringcontact(@Nullable List<ITranslatableFile> vpFiles, int nMaxLen) Concat all display names into a single string and remove duplicate namesstatic @NotNull StringensureXmlFileType(@NotNull String sFilename, @NotNull String sDisplayName) static @NotNull StringConcat a list of strings into a single string and ensure it does not exceed the given lengthstatic @NotNull StringremoveIllegalFilenameCharacters(@NotNull String sName) Methods inherited from class com.idmedia.translationstudio.impl.util.FancyFilenameOperation
perform
-
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
-
ensureXmlFileType
-