public class MatchingRuleDescriptionSchemaParser extends AbstractSchemaParser<MatchingRule>
lexer, LOG, monitor, parser| Constructor and Description |
|---|
MatchingRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected MatchingRule |
doParse()
Parse a SchemaObject description and returns back an instance of SchemaObject.
|
MatchingRule |
parseMatchingRuleDescription(String matchingRuleDescription)
Parses a matching rule description according to RFC 4512:
|
isQuirksMode, parse, reset, setParserMonitor, setQuirksModepublic MatchingRuleDescriptionSchemaParser()
public MatchingRule parseMatchingRuleDescription(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 )
matchingRuleDescription - the matching rule description to be parsedParseException - if there are any recognition errors (bad syntax)protected MatchingRule doParse() throws antlr.RecognitionException, antlr.TokenStreamException
doParse in class AbstractSchemaParser<MatchingRule>antlr.RecognitionException - the native antlr exceptionantlr.TokenStreamException - the native antlr exceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.