Record Class StringPolicy.CharacterClassLimitation

java.lang.Object
java.lang.Record
com.evolveum.midpoint.model.common.stringpolicy.StringPolicy.CharacterClassLimitation
Enclosing class:
StringPolicy

public static record StringPolicy.CharacterClassLimitation(@NotNull CharacterClass characterClass, @Nullable StringLimitType bean, boolean mustBeFirst, boolean ignoreWhenGenerating, int minOccurrences, Integer declaredMaxOccurrences, int effectiveMaxOccurrences) extends Record
Limitation regarding a single character class: required minimum and allowed maximum occurrences of characters from within this class in the generated or checked string value.
  • Constructor Details

    • CharacterClassLimitation

      public CharacterClassLimitation(@NotNull @NotNull CharacterClass characterClass, @Nullable @Nullable StringLimitType bean, boolean mustBeFirst, boolean ignoreWhenGenerating, int minOccurrences, Integer declaredMaxOccurrences, int effectiveMaxOccurrences)
      Creates an instance of a CharacterClassLimitation record class.
      Parameters:
      characterClass - the value for the characterClass record component
      bean - the value for the bean record component
      mustBeFirst - the value for the mustBeFirst record component
      ignoreWhenGenerating - the value for the ignoreWhenGenerating record component
      minOccurrences - the value for the minOccurrences record component
      declaredMaxOccurrences - the value for the declaredMaxOccurrences record component
      effectiveMaxOccurrences - the value for the effectiveMaxOccurrences record component
  • Method Details

    • getName

      @Nullable public @Nullable PolyStringType getName()
    • getDescription

      @Nullable public @Nullable String getDescription()
    • getHumanReadableName

      public String getHumanReadableName()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • characterClass

      @NotNull public @NotNull CharacterClass characterClass()
      Returns the value of the characterClass record component.
      Returns:
      the value of the characterClass record component
    • bean

      @Nullable public @Nullable StringLimitType bean()
      Returns the value of the bean record component.
      Returns:
      the value of the bean record component
    • mustBeFirst

      public boolean mustBeFirst()
      Returns the value of the mustBeFirst record component.
      Returns:
      the value of the mustBeFirst record component
    • ignoreWhenGenerating

      public boolean ignoreWhenGenerating()
      Returns the value of the ignoreWhenGenerating record component.
      Returns:
      the value of the ignoreWhenGenerating record component
    • minOccurrences

      public int minOccurrences()
      Returns the value of the minOccurrences record component.
      Returns:
      the value of the minOccurrences record component
    • declaredMaxOccurrences

      public Integer declaredMaxOccurrences()
      Returns the value of the declaredMaxOccurrences record component.
      Returns:
      the value of the declaredMaxOccurrences record component
    • effectiveMaxOccurrences

      public int effectiveMaxOccurrences()
      Returns the value of the effectiveMaxOccurrences record component.
      Returns:
      the value of the effectiveMaxOccurrences record component