Class DitStructureRuleDescriptionSchemaParser

    • Method Detail

      • parse

        public DitStructureRule parse​(String ditStructureRuleDescription)
                               throws ParseException
        Parses a DIT structure rule description according to RFC 4512:
         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
         
        Specified by:
        parse in class AbstractSchemaParser<DitStructureRule>
        Parameters:
        ditStructureRuleDescription - the DIT structure rule description to be parsed
        Returns:
        the parsed DITStructureRuleDescription bean
        Throws:
        ParseException - if there are any recognition errors (bad syntax)