public class DitStructureRuleDescriptionSchemaParser extends AbstractSchemaParser<DitStructureRule>
Constructor and Description |
---|
DitStructureRuleDescriptionSchemaParser()
Creates a schema parser instance.
|
Modifier and Type | Method and Description |
---|---|
DitStructureRule |
parse(String ditStructureRuleDescription)
Parses a DIT structure rule description according to RFC 4512:
|
getObjectIdentifiers, isQuirksMode, setQuirksMode
public DitStructureRuleDescriptionSchemaParser()
public DitStructureRule parse(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
parse
in class AbstractSchemaParser<DitStructureRule>
ditStructureRuleDescription
- the DIT structure rule description to be parsedParseException
- if there are any recognition errors (bad syntax)Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.