public class DitStructureRuleDescriptionSchemaParser 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 |
|---|
DitStructureRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
DitStructureRule |
parse(String schemaDescription)
Parses a DitStructureRule description.
|
DitStructureRule |
parseDITStructureRuleDescription(String ditStructureRuleDescription)
Parses a DIT structure rule description according to RFC 4512:
|
isQuirksMode, reset, setParserMonitor, setQuirksMode, updateSchemaNamepublic 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)public DitStructureRule parse(String schemaDescription) throws ParseException
parse in class AbstractSchemaParserschemaDescription - The DitStructureRule description to parseParseException - If the parsing failedCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.