Interface PropertyValidationRule

  • All Implemented Interfaces:

    
    public interface PropertyValidationRule
    
                        

    Type-safe validation rule interface for property validation. Implement this interface to create custom validation rules.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean isValid(String mention) Check if the mention is valid according to this rule.
      String failureReason(String mention) Get the failure reason for an invalid mention.
      abstract String getDescription() Human-readable description of this rule.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isValid

         abstract Boolean isValid(String mention)

        Check if the mention is valid according to this rule.

        Parameters:
        mention - The mention text to validate
        Returns:

        true if valid, false otherwise

      • failureReason

         String failureReason(String mention)

        Get the failure reason for an invalid mention.

        Parameters:
        mention - The mention text that failed validation
        Returns:

        Human-readable description of why validation failed