public class MatchingRuleDescriptionSchemaParser extends AbstractSchemaParser
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG
The LoggerFactory used by this class
|
lexer, monitor, parser| Constructor and Description |
|---|
MatchingRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
MatchingRule |
parse(String schemaDescription)
Parses a MatchingRule description
|
MatchingRule |
parseMatchingRuleDescription(String matchingRuleDescription)
Parses a matching rule description according to RFC 4512:
|
isQuirksMode, reset, setParserMonitor, setQuirksMode, setSchemaNamepublic 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)public MatchingRule parse(String schemaDescription) throws ParseException
parse in class AbstractSchemaParserThe - MatchingRule description to parseParseException - If the parsing failedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.