public class ObjectClassDescriptionSchemaParser extends AbstractSchemaParser<ObjectClass>
lexer, LOG, monitor, parser| Constructor and Description |
|---|
ObjectClassDescriptionSchemaParser()
Creates a schema parser instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ObjectClass |
doParse()
Parse a SchemaObject description and returns back an instance of SchemaObject.
|
ObjectClass |
parseObjectClassDescription(String objectClassDescription)
Parses a object class definition according to RFC 4512:
|
isQuirksMode, parse, reset, setParserMonitor, setQuirksModepublic ObjectClassDescriptionSchemaParser()
public ObjectClass parseObjectClassDescription(String objectClassDescription) throws ParseException
ObjectClassDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "SUP" SP oids ] ; superior object classes
[ SP kind ] ; kind of class
[ SP "MUST" SP oids ] ; attribute types
[ SP "MAY" SP oids ] ; attribute types
extensions WSP RPAREN
kind = "ABSTRACT" / "STRUCTURAL" / "AUXILIARY"
extensions = *( SP xstring SP qdstrings )
xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
objectClassDescription - the object class description to be parsedParseException - if there are any recognition errors (bad syntax)protected ObjectClass doParse() throws antlr.RecognitionException, antlr.TokenStreamException
doParse in class AbstractSchemaParser<ObjectClass>antlr.RecognitionException - the native antlr exceptionantlr.TokenStreamException - the native antlr exceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.