|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser
org.apache.directory.shared.ldap.schema.parsers.OpenLdapSchemaParser
public class OpenLdapSchemaParser
A reusable wrapper for antlr generated OpenLDAP schema parsers.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser |
|---|
lexer, monitor, parser |
| Constructor Summary | |
|---|---|
OpenLdapSchemaParser()
Creates a reusable instance of an OpenLdapSchemaParser. |
|
| Method Summary | |
|---|---|
void |
clear()
Reset the parser |
java.util.List<AttributeTypeLiteral> |
getAttributeTypes()
Gets the attribute types. |
java.util.List<ObjectClassLiteral> |
getObjectClassTypes()
Gets the object class types. |
java.util.Map<java.lang.String,OpenLdapObjectIdentifierMacro> |
getObjectIdentifierMacros()
Gets the object identifier macros. |
boolean |
isResolveObjectIdentifierMacros()
Checks if object identifier macros should be resolved. |
void |
parse(java.io.File schemaFile)
Parses a file of OpenLDAP schemaObject elements/objects. |
void |
parse(java.io.InputStream schemaIn)
Parses a stream of OpenLDAP schemaObject elements/objects. |
AbstractSchemaDescription |
parse(java.lang.String schemaObject)
Parses an OpenLDAP schemaObject element/object. |
void |
setResolveObjectIdentifierMacros(boolean isResolveObjectIdentifierMacros)
Sets if object identifier macros should be resolved. |
| Methods inherited from class org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaParser |
|---|
isQuirksMode, reset, setParserMonitor, setQuirksMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenLdapSchemaParser()
throws java.io.IOException
java.io.IOException - if the pipe cannot be formed| Method Detail |
|---|
public void clear()
public java.util.List<AttributeTypeLiteral> getAttributeTypes()
public java.util.List<ObjectClassLiteral> getObjectClassTypes()
public java.util.Map<java.lang.String,OpenLdapObjectIdentifierMacro> getObjectIdentifierMacros()
public AbstractSchemaDescription parse(java.lang.String schemaObject)
throws java.text.ParseException
parse in class AbstractSchemaParserschemaObject - the String image of a complete schema object
java.io.IOException - If the schemaObject can't be transformed to a byteArrayInputStream
java.text.ParseException - If the schemaObject can't be parsed
public void parse(java.io.InputStream schemaIn)
throws java.io.IOException,
java.text.ParseException
schemaIn - a stream of schema objects
java.io.IOException - If the schemaObject can't be transformed to a byteArrayInputStream
java.text.ParseException - If the schemaObject can't be parsed
public void parse(java.io.File schemaFile)
throws java.io.IOException,
java.text.ParseException
schemaFile - a file of schema objects
java.io.IOException - If the schemaObject can't be transformed to a byteArrayInputStream
java.text.ParseException - If the schemaObject can't be parsedpublic boolean isResolveObjectIdentifierMacros()
public void setResolveObjectIdentifierMacros(boolean isResolveObjectIdentifierMacros)
isResolveObjectIdentifierMacros - true if object identifier macros should be resolved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||