|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser
org.apache.directory.api.ldap.model.schema.parsers.OpenLdapSchemaParser
public class OpenLdapSchemaParser
A reusable wrapper for antlr generated OpenLDAP schema parsers.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser |
|---|
lexer, monitor, parser |
| Constructor Summary | |
|---|---|
OpenLdapSchemaParser()
Creates a reusable instance of an OpenLdapSchemaParser. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.parsers.AbstractSchemaParser |
|---|
isQuirksMode, reset, setParserMonitor, setQuirksMode, updateSchemaName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenLdapSchemaParser()
throws IOException
IOException - if the pipe cannot be formed| Method Detail |
|---|
public 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 AbstractSchemaParserschemaObject - the String image of a complete schema object
ParseException - If the schemaObject can't be parsed
public void parse(InputStream schemaIn)
throws IOException,
ParseException
schemaIn - a stream of schema objects
IOException - If the schemaObject can't be transformed to a byteArrayInputStream
ParseException - If the schemaObject can't be parsed
public void parse(File schemaFile)
throws IOException,
ParseException
schemaFile - a file of schema objects
IOException - If the schemaObject can't be transformed to a byteArrayInputStream
ParseException - If the schemaObject can't be parsedpublic boolean isResolveObjectIdentifierMacros()
public void setResolveObjectIdentifierMacros(boolean resolveObjectIdentifierMacros)
resolveObjectIdentifierMacros - true if object identifier macros should be resolved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||