Class ObjectClassDescriptionSchemaParser
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser<ObjectClass>
-
- org.apache.directory.api.ldap.model.schema.parsers.ObjectClassDescriptionSchemaParser
-
public class ObjectClassDescriptionSchemaParser extends AbstractSchemaParser<ObjectClass>
A parser for RFC 4512 object class descriptons- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser
fastParser, LOG
-
-
Constructor Summary
Constructors Constructor Description ObjectClassDescriptionSchemaParser()Creates a schema parser instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectClassparse(String objectClassDescription)Parses a object class definition according to RFC 4512:-
Methods inherited from class org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser
getObjectIdentifiers, isQuirksMode, setQuirksMode, updateSchemaName
-
-
-
-
Method Detail
-
parse
public ObjectClass parse(String objectClassDescription) throws ParseException
Parses a object class definition according to RFC 4512: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 )- Specified by:
parsein classAbstractSchemaParser<ObjectClass>- Parameters:
objectClassDescription- the object class description to be parsed- Returns:
- the parsed ObjectClassDescription bean
- Throws:
ParseException- if there are any recognition errors (bad syntax)
-
-