Package | Description |
---|---|
de.xima.fc.copy |
Modifier and Type | Method and Description |
---|---|
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.copySuffix(String copySuffix)
Setup the interpolator so that the generated names are like
MyEntity_Copy_4 |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.copyWithSpace(String copyName)
Setup the interpolator so that the generated names are like
MyEntity (Copy 4) |
static UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.create() |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.interpolator(BiFunction<String,Integer,String> interpolator) |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.maxAttempts(int maxAttempts) |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.maxLength(int maxLength) |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.replace(String disallowedCharactersRegex,
char replacementCharacter)
When generating the new name, replaces all matches for the given regex with the given replacement.
|
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.sanitizer(UnaryOperator<String> sanitizer) |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.startIndex(int startIndex) |
UniqueNameGenerationHelper.NameGenerationOptions |
UniqueNameGenerationHelper.NameGenerationOptions.validityCheck(Predicate<String> validityCheck) |
Modifier and Type | Method and Description |
---|---|
static String |
UniqueNameGenerationHelper.generateNewName(String originalName,
UniqueNameGenerationHelper.NameGenerationOptions options)
Sometimes a new name needs to be generated for an entity, but not all names are allowed.
|
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.