Class DitStructureRuleDescriptionSyntaxChecker

  • All Implemented Interfaces:
    Serializable, SchemaObject

    public final class DitStructureRuleDescriptionSyntaxChecker
    extends SyntaxChecker
    A SyntaxChecker which verifies that a value follows the DIT structure rule descripton syntax according to RFC 4512, par 4.2.7.1:
     DITStructureRuleDescription = LPAREN WSP
       ruleid                     ; rule identifier
       [ SP "NAME" SP qdescrs ]   ; short names (descriptors)
       [ SP "DESC" SP qdstring ]  ; description
       [ SP "OBSOLETE" ]          ; not active
       SP "FORM" SP oid           ; NameForm
       [ SP "SUP" ruleids ]       ; superior rules
       extensions WSP RPAREN      ; extensions
    
     ruleids = ruleid / ( LPAREN WSP ruleidlist WSP RPAREN )
     ruleidlist = ruleid *( SP ruleid )
     ruleid = numbers
     
    Author:
    Apache Directory Project
    See Also:
    Serialized Form
    • Constructor Detail

      • DitStructureRuleDescriptionSyntaxChecker

        private DitStructureRuleDescriptionSyntaxChecker​(String oid)
        Creates a new instance of DITContentRuleDescriptionSyntaxChecker.
        Parameters:
        oid - The OID to use for this SyntaxChecker
    • 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