Class CharacterClass

java.lang.Object
com.evolveum.midpoint.model.common.stringpolicy.CharacterClass

@VisibleForTesting public class CharacterClass extends Object
Set of characters to be used when generating or checking a string value. May be derived from the configuration or created artificially. Supports basic operations such as random character selection and counting occurrences of characters in a string. More complex algorithms are implemented in e.g. ValueGenerator.
  • Method Details

    • unnamed

      public static CharacterClass unnamed(Set<Character> characters)
    • parse

      public static CharacterClass parse(@NotNull @NotNull CharacterClassType bean)
      Converts the bean into parsed form, taking into account also embedded classes. NOT dealing with references!
    • getCharacters

      @NotNull public @NotNull Set<Character> getCharacters()
    • getCharactersAsString

      @VisibleForTesting @NotNull public @NotNull String getCharactersAsString()
    • toString

      public String toString()
      Overrides:
      toString in class Object