public class OpenLdapSchemaParser extends AbstractSchemaParser<SchemaObject>
Constructor and Description |
---|
OpenLdapSchemaParser()
Creates a reusable instance of an OpenLdapSchemaParser.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset the parser
|
List<MutableAttributeType> |
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 resolveObjectIdentifierMacros)
Sets if object identifier macros should be resolved.
|
isQuirksMode, setParserMonitor, setQuirksMode
public OpenLdapSchemaParser() throws IOException
IOException
- if the pipe cannot be formedpublic void clear()
public List<MutableAttributeType> getAttributeTypes()
public List<ObjectClass> getObjectClassTypes()
public Map<String,OpenLdapObjectIdentifierMacro> getObjectIdentifierMacros()
public SchemaObject parse(String schemaObject) throws ParseException
parse
in class AbstractSchemaParser<SchemaObject>
schemaObject
- the String image of a complete schema objectParseException
- 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 resolveObjectIdentifierMacros)
resolveObjectIdentifierMacros
- true if object identifier macros should be resolvedCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.