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

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

public class Schema
extends java.lang.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.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
Schema()
           
 
Method Summary
 java.io.InputStream getInput()
           
 java.lang.String getName()
           
 java.io.Writer getOutput()
           
 void setInput(java.io.InputStream in)
          Set the inputStream mapped on the schema file
 void setName(java.lang.String name)
          Set the schema name to parse.
 void setOutput(java.io.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(java.lang.String name)
Set the schema name to parse. This name is the prefix of the schema file, which postifx is '.schema'. For instance, 'test.schema' being the file to parse, its name will be 'test'

Parameters:
name -

getName

public java.lang.String getName()
Returns:
The schema name.

setInput

public void setInput(java.io.InputStream in)
Set the inputStream mapped on the schema file

Parameters:
in - The InputStream mapped on the schema file

getInput

public java.io.InputStream getInput()
Returns:
The InputStream mapped on the schema file

getOutput

public java.io.Writer getOutput()
Returns:
The writer in which the ldif lines will be dumped

setOutput

public void setOutput(java.io.Writer out)
Set a writer to dump the ldif files

Parameters:
out - The writer


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.