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, updateSchemaName
protected static final org.slf4j.Logger LOG
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)public DITStructureRule parse(String schemaDescription) throws ParseException
parse
in class AbstractSchemaParser
schemaDescription
- The DITStructureRule description to parseParseException
- If the parsing failedCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.