org.apache.directory.shared.ldap.schema.loader.ldif
Class LdifSchemaLoader

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.registries.AbstractSchemaLoader
      extended by org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader
All Implemented Interfaces:
SchemaLoader

public class LdifSchemaLoader
extends AbstractSchemaLoader

Loads schema data from LDIF files containing entries representing schema objects, using the meta schema format. This class is used only for tests.

Version:
$Revision$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.schema.registries.AbstractSchemaLoader
listener, schemaMap
 
Constructor Summary
LdifSchemaLoader(java.io.File baseDirectory)
          Creates a new LDIF based SchemaLoader.
 
Method Summary
 java.util.List<Entry> loadAttributeTypes(Schema... schemas)
          
 java.util.List<Entry> loadComparators(Schema... schemas)
          
 java.util.List<Entry> loadDitContentRules(Schema... schemas)
          
 java.util.List<Entry> loadDitStructureRules(Schema... schemas)
          
 java.util.List<Entry> loadMatchingRules(Schema... schemas)
          
 java.util.List<Entry> loadMatchingRuleUses(Schema... schemas)
          
 java.util.List<Entry> loadNameForms(Schema... schemas)
          
 java.util.List<Entry> loadNormalizers(Schema... schemas)
          
 java.util.List<Entry> loadObjectClasses(Schema... schemas)
          
 java.util.List<Entry> loadSyntaxCheckers(Schema... schemas)
          
 java.util.List<Entry> loadSyntaxes(Schema... schemas)
          
 
Methods inherited from class org.apache.directory.shared.ldap.schema.registries.AbstractSchemaLoader
addSchema, getAllEnabled, getAllSchemas, getDao, getSchema, getSchema, loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes, notifyListenerOrRegistries, removeSchema, setListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdifSchemaLoader

public LdifSchemaLoader(java.io.File baseDirectory)
                 throws java.lang.Exception
Creates a new LDIF based SchemaLoader. The constructor checks to make sure the supplied base directory exists and contains a schema.ldif file and if not complains about it.

Parameters:
baseDirectory - the schema LDIF base directory
Throws:
java.lang.Exception - if the base directory does not exist or does not a valid schema.ldif file
Method Detail

loadComparators

public java.util.List<Entry> loadComparators(Schema... schemas)
                                      throws java.lang.Exception

Throws:
java.lang.Exception

loadSyntaxCheckers

public java.util.List<Entry> loadSyntaxCheckers(Schema... schemas)
                                         throws java.lang.Exception

Throws:
java.lang.Exception

loadNormalizers

public java.util.List<Entry> loadNormalizers(Schema... schemas)
                                      throws java.lang.Exception

Throws:
java.lang.Exception

loadMatchingRules

public java.util.List<Entry> loadMatchingRules(Schema... schemas)
                                        throws java.lang.Exception

Throws:
java.lang.Exception

loadSyntaxes

public java.util.List<Entry> loadSyntaxes(Schema... schemas)
                                   throws java.lang.Exception

Throws:
java.lang.Exception

loadAttributeTypes

public java.util.List<Entry> loadAttributeTypes(Schema... schemas)
                                         throws java.lang.Exception

Throws:
java.lang.Exception

loadMatchingRuleUses

public java.util.List<Entry> loadMatchingRuleUses(Schema... schemas)
                                           throws java.lang.Exception

Throws:
java.lang.Exception

loadNameForms

public java.util.List<Entry> loadNameForms(Schema... schemas)
                                    throws java.lang.Exception

Throws:
java.lang.Exception

loadDitContentRules

public java.util.List<Entry> loadDitContentRules(Schema... schemas)
                                          throws java.lang.Exception

Throws:
java.lang.Exception

loadDitStructureRules

public java.util.List<Entry> loadDitStructureRules(Schema... schemas)
                                            throws java.lang.Exception

Throws:
java.lang.Exception

loadObjectClasses

public java.util.List<Entry> loadObjectClasses(Schema... schemas)
                                        throws java.lang.Exception

Throws:
java.lang.Exception


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