Interface CodeFormatAvailableCharHelper
- All Known Implementing Classes:
CodeFormatAvailableCharHelperImpl
public interface CodeFormatAvailableCharHelper
Determines for a given character what the available replacement characters are.
- Author:
- bpolster
- See Also:
-
CodeGeneratorServiceImplCodeFormatAvailableCharSelectorImpl
-
Method Summary
Modifier and TypeMethodDescriptionlongcountCombinationsForFormat(String format) Takes in the passed in format and computes the number of possible combinationsgetAvailableCharactersForFormatElement(char formatElement) Determines for a given character what the available replacement characters are.
-
Method Details
-
getAvailableCharactersForFormatElement
Determines for a given character what the available replacement characters are.For example, in a codeFormat of "AB-##", the "#" characater might be replaceable with any number.
By default, Broadleaf will replace the codes "#" with numbers, "@" with letters, and "*" with alphanumerics.
In all cases, commonly confused letters and numbers are removed which include (0,O, 1, L, 5, S)
- Parameters:
formatElement-- Returns:
-
countCombinationsForFormat
Takes in the passed in format and computes the number of possible combinations- Parameters:
format-- Returns:
-