public class NameFormDescriptionSchemaParser extends AbstractSchemaParser<NameForm>
lexer, LOG, monitor, parser
Constructor and Description |
---|
NameFormDescriptionSchemaParser()
Creates a schema parser instance.
|
Modifier and Type | Method and Description |
---|---|
protected NameForm |
doParse()
Parse a SchemaObject description and returns back an instance of SchemaObject.
|
NameForm |
parseNameFormDescription(String nameFormDescription)
Parses a name form description according to RFC 4512:
|
isQuirksMode, parse, reset, setParserMonitor, setQuirksMode
public NameFormDescriptionSchemaParser()
public NameForm parseNameFormDescription(String nameFormDescription) throws ParseException
NameFormDescription = LPAREN WSP numericoid ; object identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active SP "OC" SP oid ; structural object class SP "MUST" SP oids ; attribute types [ SP "MAY" SP oids ] ; attribute types extensions WSP RPAREN ; extensions
nameFormDescription
- the name form description to be parsedParseException
- if there are any recognition errors (bad syntax)protected NameForm doParse() throws antlr.RecognitionException, antlr.TokenStreamException
doParse
in class AbstractSchemaParser<NameForm>
antlr.RecognitionException
- the native antlr exceptionantlr.TokenStreamException
- the native antlr exceptionCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.