Class Schema
- java.lang.Object
-
- org.apache.directory.api.ldap.schema.converter.Schema
-
public class Schema extends Object
A bean used to hold a schema. We keep its name and we associate with this object an inputStream mapped on the OpenLdap schema to read, and a writer in which the ldif file will be dumped.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Schema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInput()StringgetName()WritergetOutput()voidsetInput(InputStream in)Set the inputStream mapped on the schema filevoidsetName(String name)Set the schema name to parse.voidsetOutput(Writer out)Set a writer to dump the ldif filesStringtoString()
-
-
-
Method Detail
-
setName
public void setName(String name)
Set the schema name to parse. This name is the prefix of the schema file, which postfix is '.schema'. For instance, 'test.schema' being the file to parse, its name will be 'test'- Parameters:
name- The schema name
-
getName
public String getName()
- Returns:
- The schema name.
-
setInput
public void setInput(InputStream in)
Set the inputStream mapped on the schema file- Parameters:
in- The InputStream mapped on the schema file
-
getInput
public InputStream getInput()
- Returns:
- The InputStream mapped on the schema file
-
getOutput
public Writer getOutput()
- Returns:
- The writer in which the ldif lines will be dumped
-
setOutput
public void setOutput(Writer out)
Set a writer to dump the ldif files- Parameters:
out- The writer
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-