org.apache.directory.server.core.schema
Class SchemaEntityFactory

java.lang.Object
  extended by org.apache.directory.server.core.schema.SchemaEntityFactory

public class SchemaEntityFactory
extends java.lang.Object

Showing how it's done ...

Version:
$Rev$
Author:
Apache Directory Project

Constructor Summary
SchemaEntityFactory(Registries bootstrapRegistries)
           
 
Method Summary
 org.apache.directory.shared.ldap.schema.AttributeType getAttributeType(ServerEntry entry, Registries targetRegistries, java.lang.String schema)
           
 java.util.Comparator getComparator(org.apache.directory.shared.ldap.schema.syntax.ComparatorDescription comparatorDescription, Registries targetRegistries)
           
 java.util.Comparator getComparator(ServerEntry entry, Registries targetRegistries)
          Retrieve and load a Comparator class from the DIT.
 org.apache.directory.shared.ldap.schema.MatchingRule getMatchingRule(ServerEntry entry, Registries targetRegistries, java.lang.String schema)
           
 org.apache.directory.shared.ldap.schema.Normalizer getNormalizer(org.apache.directory.shared.ldap.schema.syntax.NormalizerDescription normalizerDescription, Registries targetRegistries)
           
 org.apache.directory.shared.ldap.schema.Normalizer getNormalizer(ServerEntry entry, Registries targetRegistries)
          Retrieve and load a Normalizer class from the DIT.
 org.apache.directory.shared.ldap.schema.ObjectClass getObjectClass(ServerEntry entry, Registries targetRegistries, java.lang.String schema)
           
 Schema getSchema(ServerEntry entry)
           
 org.apache.directory.shared.ldap.schema.Syntax getSyntax(ServerEntry entry, Registries targetRegistries, java.lang.String schema)
           
 org.apache.directory.shared.ldap.schema.syntax.SyntaxChecker getSyntaxChecker(ServerEntry entry, Registries targetRegistries)
          Retrieve and load a syntaxChecker class from the DIT.
 org.apache.directory.shared.ldap.schema.syntax.SyntaxChecker getSyntaxChecker(org.apache.directory.shared.ldap.schema.syntax.SyntaxCheckerDescription syntaxCheckerDescription, Registries targetRegistries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaEntityFactory

public SchemaEntityFactory(Registries bootstrapRegistries)
                    throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

getSchema

public Schema getSchema(ServerEntry entry)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getSyntaxChecker

public org.apache.directory.shared.ldap.schema.syntax.SyntaxChecker getSyntaxChecker(ServerEntry entry,
                                                                                     Registries targetRegistries)
                                                                              throws javax.naming.NamingException
Retrieve and load a syntaxChecker class from the DIT.

Parameters:
entry - the entry to load the syntaxChecker from
Returns:
the loaded SyntaxChecker
Throws:
javax.naming.NamingException - if anything fails during loading

getSyntaxChecker

public org.apache.directory.shared.ldap.schema.syntax.SyntaxChecker getSyntaxChecker(org.apache.directory.shared.ldap.schema.syntax.SyntaxCheckerDescription syntaxCheckerDescription,
                                                                                     Registries targetRegistries)
                                                                              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getComparator

public java.util.Comparator getComparator(org.apache.directory.shared.ldap.schema.syntax.ComparatorDescription comparatorDescription,
                                          Registries targetRegistries)
                                   throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getComparator

public java.util.Comparator getComparator(ServerEntry entry,
                                          Registries targetRegistries)
                                   throws javax.naming.NamingException
Retrieve and load a Comparator class from the DIT.

Parameters:
entry - the entry to load the Comparator from
Returns:
the loaded Comparator
Throws:
javax.naming.NamingException - if anything fails during loading

getNormalizer

public org.apache.directory.shared.ldap.schema.Normalizer getNormalizer(org.apache.directory.shared.ldap.schema.syntax.NormalizerDescription normalizerDescription,
                                                                        Registries targetRegistries)
                                                                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getNormalizer

public org.apache.directory.shared.ldap.schema.Normalizer getNormalizer(ServerEntry entry,
                                                                        Registries targetRegistries)
                                                                 throws javax.naming.NamingException
Retrieve and load a Normalizer class from the DIT.

Parameters:
entry - the entry to load the Normalizer from
Returns:
the loaded Normalizer
Throws:
javax.naming.NamingException - if anything fails during loading

getSyntax

public org.apache.directory.shared.ldap.schema.Syntax getSyntax(ServerEntry entry,
                                                                Registries targetRegistries,
                                                                java.lang.String schema)
                                                         throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getMatchingRule

public org.apache.directory.shared.ldap.schema.MatchingRule getMatchingRule(ServerEntry entry,
                                                                            Registries targetRegistries,
                                                                            java.lang.String schema)
                                                                     throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getObjectClass

public org.apache.directory.shared.ldap.schema.ObjectClass getObjectClass(ServerEntry entry,
                                                                          Registries targetRegistries,
                                                                          java.lang.String schema)
                                                                   throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getAttributeType

public org.apache.directory.shared.ldap.schema.AttributeType getAttributeType(ServerEntry entry,
                                                                              Registries targetRegistries,
                                                                              java.lang.String schema)
                                                                       throws javax.naming.NamingException
Throws:
javax.naming.NamingException


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