Class 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 Detail

    • 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
      • setInput

        public void setInput​(InputStream in)
        Set the inputStream mapped on the schema file
        Parameters:
        in - 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