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:
  • Method Details

    • getAvailableCharactersForFormatElement

      String getAvailableCharactersForFormatElement(char formatElement)
      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

      long countCombinationsForFormat(String format)
      Takes in the passed in format and computes the number of possible combinations
      Parameters:
      format -
      Returns: