Class ObjectNameSyntaxChecker

  • All Implemented Interfaces:
    Serializable, SchemaObject

    public final class ObjectNameSyntaxChecker
    extends SyntaxChecker
    A SyntaxChecker which verifies that a name is valid for an ObjectClass or an AttributeType

     <m-name> = <keystring> 
    <keystring> = <leadkeychar> *<keychar>
    <leadkeychar> = <ALPHA>
    <keychar> = <ALPHA> / <DIGIT> / <HYPHEN> / <SEMI>
    <ALPHA> = %x41-5A / %x61-7A ; "A"-"Z" / "a"-"z"
    <DIGIT> = %x30 / <LDIGIT ; "0"-"9"
    <LDIGIT> = %x31-39 ; "1"-"9"
    <HYPHEN> = %x2D ; hyphen ("-")
    <SEMI> = %x3B ; semicolon (";")
    Author:
    Apache Directory Project
    See Also:
    Serialized Form
    • 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