public class OpenLdapSchemaParser extends AbstractSchemaParser
lexer, monitor, parser| Constructor and Description |
|---|
OpenLdapSchemaParser()
Creates a reusable instance of an OpenLdapSchemaParser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Reset the parser
|
List<AttributeType> |
getAttributeTypes()
Gets the attribute types.
|
List<ObjectClass> |
getObjectClassTypes()
Gets the object class types.
|
Map<String,OpenLdapObjectIdentifierMacro> |
getObjectIdentifierMacros()
Gets the object identifier macros.
|
boolean |
isResolveObjectIdentifierMacros()
Checks if object identifier macros should be resolved.
|
void |
parse(File schemaFile)
Parses a file of OpenLDAP schemaObject elements/objects.
|
void |
parse(InputStream schemaIn)
Parses a stream of OpenLDAP schemaObject elements/objects.
|
SchemaObject |
parse(String schemaObject)
Parses an OpenLDAP schemaObject element/object.
|
void |
setResolveObjectIdentifierMacros(boolean isResolveObjectIdentifierMacros)
Sets if object identifier macros should be resolved.
|
isQuirksMode, reset, setParserMonitor, setQuirksMode, setSchemaNamepublic OpenLdapSchemaParser()
throws IOException
IOException - if the pipe cannot be formedpublic void clear()
public List<AttributeType> getAttributeTypes()
public List<ObjectClass> getObjectClassTypes()
public Map<String,OpenLdapObjectIdentifierMacro> getObjectIdentifierMacros()
public SchemaObject parse(String schemaObject) throws ParseException
parse in class AbstractSchemaParserschemaObject - the String image of a complete schema objectIOException - If the schemaObject can't be transformed to a byteArrayInputStreamParseException - If the schemaObject can't be parsedpublic void parse(InputStream schemaIn) throws IOException, ParseException
schemaIn - a stream of schema objectsIOException - If the schemaObject can't be transformed to a byteArrayInputStreamParseException - If the schemaObject can't be parsedpublic void parse(File schemaFile) throws IOException, ParseException
schemaFile - a file of schema objectsIOException - If the schemaObject can't be transformed to a byteArrayInputStreamParseException - If the schemaObject can't be parsedpublic boolean isResolveObjectIdentifierMacros()
public void setResolveObjectIdentifierMacros(boolean isResolveObjectIdentifierMacros)
isResolveObjectIdentifierMacros - true if object identifier macros should be resolvedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.