Class MatchingRuleUseDescriptionSchemaParser

java.lang.Object
org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser<MatchingRuleUse>
org.apache.directory.api.ldap.model.schema.parsers.MatchingRuleUseDescriptionSchemaParser

public class MatchingRuleUseDescriptionSchemaParser extends AbstractSchemaParser<MatchingRuleUse>
A parser for RFC 4512 matching rule use descriptions.
Author:
Apache Directory Project
  • Constructor Details

    • MatchingRuleUseDescriptionSchemaParser

      public MatchingRuleUseDescriptionSchemaParser()
      Creates a schema parser instance.
  • Method Details

    • 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)