Class RegexSyntaxChecker

All Implemented Interfaces:
Serializable, SchemaObject

public final class RegexSyntaxChecker extends SyntaxChecker
A SyntaxChecker implemented using Perl5 regular expressions to constrain values.
Author:
Apache Directory Project
See Also:
  • Method Details

    • builder

      public static RegexSyntaxChecker.Builder builder()
      Returns:
      An instance of the Builder for this class
    • isValidSyntax

      public boolean isValidSyntax(Object value)
      Determines if the attribute's value conforms to the attribute syntax.
      Overrides:
      isValidSyntax in class SyntaxChecker
      Parameters:
      value - the value of some attribute with the syntax
      Returns:
      true if the value is in the valid syntax, false otherwise
    • getExpressions

      public String[] getExpressions()
      Get the list of regexp stored into this SyntaxChecker
      Returns:
      AN array containing all the stored regexp