public class MatchingRuleDescriptionSchemaParser extends AbstractSchemaParser<MatchingRule>
fastParser, LOG| Constructor and Description |
|---|
MatchingRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
MatchingRule |
parse(String matchingRuleDescription)
Parses a matching rule description according to RFC 4512:
MatchingRuleDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "SYNTAX" SP numericoid ; assertion syntax
extensions WSP RPAREN ; extensions
extensions = *( SP xstring SP qdstrings )
xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
|
getObjectIdentifiers, isQuirksMode, setQuirksMode, updateSchemaNamepublic MatchingRuleDescriptionSchemaParser()
public MatchingRule parse(String matchingRuleDescription) throws ParseException
MatchingRuleDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "SYNTAX" SP numericoid ; assertion syntax
extensions WSP RPAREN ; extensions
extensions = *( SP xstring SP qdstrings )
xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
parse in class AbstractSchemaParser<MatchingRule>matchingRuleDescription - the matching rule description to be parsedParseException - if there are any recognition errors (bad syntax)Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.