public class DitStructureRuleDescriptionSchemaParser extends AbstractSchemaParser<DitStructureRule>
lexer, LOG, monitor, parser
Constructor and Description |
---|
DitStructureRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
Modifier and Type | Method and Description |
---|---|
protected DitStructureRule |
doParse()
Parse a SchemaObject description and returns back an instance of SchemaObject.
|
DitStructureRule |
parseDITStructureRuleDescription(String ditStructureRuleDescription)
Parses a DIT structure rule description according to RFC 4512:
|
isQuirksMode, parse, reset, setParserMonitor, setQuirksMode
public DitStructureRuleDescriptionSchemaParser()
public DitStructureRule parseDITStructureRuleDescription(String ditStructureRuleDescription) throws ParseException
DITStructureRuleDescription = LPAREN WSP ruleid ; rule identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active SP "FORM" SP oid ; NameForm [ SP "SUP" ruleids ] ; superior rules extensions WSP RPAREN ; extensions ruleids = ruleid / ( LPAREN WSP ruleidlist WSP RPAREN ) ruleidlist = ruleid *( SP ruleid ) ruleid = numbers
ditStructureRuleDescription
- the DIT structure rule description to be parsedParseException
- if there are any recognition errors (bad syntax)protected DitStructureRule doParse() throws antlr.RecognitionException, antlr.TokenStreamException
doParse
in class AbstractSchemaParser<DitStructureRule>
antlr.RecognitionException
- the native antlr exceptionantlr.TokenStreamException
- the native antlr exceptionCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.