Class RegexSyntaxChecker

    • Field Detail

      • expressions

        private String[] expressions
        the set of regular expressions
    • Constructor Detail

      • RegexSyntaxChecker

        private RegexSyntaxChecker​(String oid,
                                   String[] matchExprArray)
        Creates a Syntax validator for a specific Syntax using Perl5 matching rules for validation.
        Parameters:
        oid - the oid of the Syntax values checked
        matchExprArray - the array of matching expressions
    • Method Detail

      • 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