public class DITContentRuleDescriptionSchemaParser 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 |
|---|
DITContentRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
DITContentRule |
parse(String schemaDescription)
Parses a DITContentRule description
|
DITContentRule |
parseDITContentRuleDescription(String ditContentRuleDescription)
Parses a DIT content rule description according to RFC 4512:
|
isQuirksMode, reset, setParserMonitor, setQuirksMode, setSchemaNamepublic 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)public DITContentRule parse(String schemaDescription) throws ParseException
parse in class AbstractSchemaParserThe - DITContentRule description to parseParseException - If the parsing failedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.