|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.converter.schema.SchemaParser
public class SchemaParser
A reusable wrapper for antlr generated schema parsers.
| Constructor Summary | |
|---|---|
SchemaParser()
Creates a reusable instance of an SchemaParser. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the parser. |
void |
init()
Initializes a parser and its plumbing. |
void |
parse(File schemaFile)
Thread safe method parses a file of OpenLDAP schemaObject elements/objects. |
List<SchemaElement> |
parse(InputStream schemaIn)
Thread safe method parses a stream of OpenLDAP schemaObject elements/objects. |
List<SchemaElement> |
parse(String schemaObject)
Thread safe method parses an OpenLDAP schemaObject element/object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaParser()
throws IOException
IOException - if the pipe cannot be formed| Method Detail |
|---|
public void init()
throws IOException
IOException - if a pipe cannot be formed.public void clear()
public List<SchemaElement> parse(String schemaObject)
throws IOException,
ParseException
schemaObject - the String image of a complete schema object
IOException - If the schema file can't be processed
ParseException - If we weren't able to parse the schema
public List<SchemaElement> parse(InputStream schemaIn)
throws IOException,
ParseException
schemaIn - a stream of schema objects
IOException - If the schema file can't be processed
ParseException - If we weren't able to parse the schema
public void parse(File schemaFile)
throws IOException,
ParseException
schemaFile - a file of schema objects
IOException - If the schema file can't be processed
ParseException - If we weren't able to parse the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||