org.apache.directory.api.converter.schema
Class Schema

java.lang.Object
  extended by org.apache.directory.api.converter.schema.Schema

public class Schema
extends Object

A bean used to hold a schema. We keep its name and we associate whith 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
Schema()
           
 
Method Summary
 InputStream getInput()
           
 String getName()
           
 Writer getOutput()
           
 void setInput(InputStream in)
          Set the inputStream mapped on the schema file
 void setName(String name)
          Set the schema name to parse.
 void setOutput(Writer out)
          Set a writer to dump the ldif files
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

public Schema()
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


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.