|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.tools.schema.OpenLdapSchemaParser
public class OpenLdapSchemaParser
A reusable wrapper for antlr generated OpenLDAP schema parsers.
Constructor Summary | |
---|---|
OpenLdapSchemaParser()
Creates a reusable instance of an OpenLdapSchemaParser. |
Method Summary | |
---|---|
void |
clear()
|
java.util.List |
getAttributeTypes()
|
java.util.List |
getObjectClassTypes()
|
void |
init()
Initializes a parser and its plumbing. |
void |
parse(java.io.File schemaFile)
Thread safe method parses a file of OpenLDAP schemaObject elements/objects. |
void |
parse(java.io.InputStream schemaIn)
Thread safe method parses a stream of OpenLDAP schemaObject elements/objects. |
void |
parse(java.lang.String schemaObject)
Thread safe method parses an OpenLDAP schemaObject element/object. |
void |
setParserMonitor(ParserMonitor monitor)
|
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 formedMethod Detail |
---|
public void init() throws java.io.IOException
java.io.IOException
- if a pipe cannot be formed.public void clear()
public java.util.List getAttributeTypes()
public java.util.List getObjectClassTypes()
public void parse(java.lang.String schemaObject) throws java.io.IOException, java.text.ParseException
schemaObject
- the String image of a complete schema object
java.io.IOException
java.text.ParseException
public void parse(java.io.InputStream schemaIn) throws java.io.IOException, java.text.ParseException
schemaIn
- a stream of schema objects
java.io.IOException
java.text.ParseException
public void parse(java.io.File schemaFile) throws java.io.IOException, java.text.ParseException
schemaFile
- a file of schema objects
java.io.IOException
java.text.ParseException
public void setParserMonitor(ParserMonitor monitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |