public class DitContentRuleDescriptionSchemaParser extends AbstractSchemaParser<DitContentRule>
lexer, LOG, monitor, parser| Constructor and Description |
|---|
DitContentRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected DitContentRule |
doParse()
Parse a SchemaObject description and returns back an instance of SchemaObject.
|
DitContentRule |
parseDITContentRuleDescription(String ditContentRuleDescription)
Parses a DIT content rule description according to RFC 4512:
|
isQuirksMode, parse, reset, setParserMonitor, setQuirksModepublic DitContentRuleDescriptionSchemaParser()
public DitContentRule parseDITContentRuleDescription(String ditContentRuleDescription) throws ParseException
DITContentRuleDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "AUX" SP oids ] ; auxiliary object classes
[ SP "MUST" SP oids ] ; attribute types
[ SP "MAY" SP oids ] ; attribute types
[ SP "NOT" SP oids ] ; attribute types
extensions WSP RPAREN ; extensions
ditContentRuleDescription - the DIT content rule description to be parsedParseException - if there are any recognition errors (bad syntax)protected DitContentRule doParse() throws antlr.RecognitionException, antlr.TokenStreamException
doParse in class AbstractSchemaParser<DitContentRule>antlr.RecognitionException - the native antlr exceptionantlr.TokenStreamException - the native antlr exceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.