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