Class TextDirectionValidationsBuilder

java.lang.Object
com.shaft.validation.internal.TextDirectionValidationsBuilder

public class TextDirectionValidationsBuilder extends Object
Fluent builder for validating text direction metadata (LTR/RTL).
  • Method Details

    • is

      Validates that text direction metadata equals the target direction.
      Parameters:
      direction - expected direction (LTR/RTL)
      Returns:
      validations executor for optional custom message and perform
    • isNot

      Validates that text direction metadata is not equal to the target direction.
      Parameters:
      direction - unexpected direction (LTR/RTL)
      Returns:
      validations executor for optional custom message and perform
    • isLeftToRight

      public ValidationsExecutor isLeftToRight()
      Convenience alias for asserting left-to-right direction.
      Returns:
      validations executor for optional custom message and perform
    • isRightToLeft

      public ValidationsExecutor isRightToLeft()
      Convenience alias for asserting right-to-left direction.
      Returns:
      validations executor for optional custom message and perform