public class LdapSyntaxDescriptionSchemaParser extends AbstractSchemaParser<LdapSyntax>
lexer, LOG, monitor, parser
Constructor and Description |
---|
LdapSyntaxDescriptionSchemaParser()
Creates a schema parser instance.
|
Modifier and Type | Method and Description |
---|---|
protected LdapSyntax |
doParse()
Parse a SchemaObject description and returns back an instance of SchemaObject.
|
LdapSyntax |
parseLdapSyntaxDescription(String ldapSyntaxDescription)
Parses a LDAP syntax description according to RFC 4512:
|
isQuirksMode, parse, reset, setParserMonitor, setQuirksMode
public LdapSyntaxDescriptionSchemaParser()
public LdapSyntax parseLdapSyntaxDescription(String ldapSyntaxDescription) throws ParseException
SyntaxDescription = LPAREN WSP numericoid ; object identifier [ SP "DESC" SP qdstring ] ; description extensions WSP RPAREN ; extensions
ldapSyntaxDescription
- the LDAP syntax description to be parsedParseException
- if there are any recognition errors (bad syntax)protected LdapSyntax doParse() throws antlr.RecognitionException, antlr.TokenStreamException
doParse
in class AbstractSchemaParser<LdapSyntax>
antlr.RecognitionException
- the native antlr exceptionantlr.TokenStreamException
- the native antlr exceptionCopyright © 2018. All rights reserved.