Class MatchingRuleUseDescriptionSchemaParser

    • Method Detail

      • parse

        public MatchingRuleUse parse​(String matchingRuleUseDescription)
                              throws ParseException
        Parses a matching rule use description according to RFC 4512:
         MatchingRuleUseDescription = LPAREN WSP
            numericoid                 ; object identifier
            [ SP "NAME" SP qdescrs ]   ; short names (descriptors)
            [ SP "DESC" SP qdstring ]  ; description
            [ SP "OBSOLETE" ]          ; not active
            SP "APPLIES" SP oids       ; attribute types
            extensions WSP RPAREN      ; extensions
         
         extensions = *( SP xstring SP qdstrings )
         xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE ) 
         
        Specified by:
        parse in class AbstractSchemaParser<MatchingRuleUse>
        Parameters:
        matchingRuleUseDescription - the matching rule use description to be parsed
        Returns:
        the parsed MatchingRuleUseDescription bean
        Throws:
        ParseException - if there are any recognition errors (bad syntax)