org.apache.directory.server.core.schema.bootstrap
Class AbstractBootstrapSchema

java.lang.Object
  extended byorg.apache.directory.server.core.schema.bootstrap.AbstractBootstrapSchema
All Implemented Interfaces:
BootstrapSchema

public class AbstractBootstrapSchema
extends java.lang.Object
implements BootstrapSchema

Abstract bootstrap schema implementation.

Version:
$Rev: 434573 $
Author:
Apache Directory Project

Field Summary
protected static java.lang.String[] DEFAULT_DEPS
           
 
Constructor Summary
protected AbstractBootstrapSchema(java.lang.String schemaName)
           
protected AbstractBootstrapSchema(java.lang.String owner, java.lang.String schemaName)
           
protected AbstractBootstrapSchema(java.lang.String owner, java.lang.String schemaName, java.lang.String packageName)
           
protected AbstractBootstrapSchema(java.lang.String owner, java.lang.String schemaName, java.lang.String packageName, java.lang.String[] dependencies)
           
 
Method Summary
 java.lang.String getBaseClassName()
          Gets the base class name for bootstrap Schema class files.
 java.lang.String getDefaultBaseClassName()
          Gets the default base class name for bootstrap Schema class files.
 java.lang.String[] getDependencies()
          Gets the names of other schemas that this objects within this BootstrapSchema depends upon.
 java.lang.String getFullClassName(ProducerTypeEnum type)
          Gets the class name for bootstrap Schema class producer type.
 java.lang.String getFullDefaultBaseClassName(ProducerTypeEnum type)
          If the base class name for the target class does not resolve, we attempt to load another backup class using this default base class name which tries another package for the target class factory to load.
 java.lang.String getOwner()
          Gets the name of the owner of the schema objects within this BootstrapSchema.
 java.lang.String getPackageName()
          Gets the package name of the schema's object factories.
 java.lang.String getSchemaName()
          Gets the name of the logical schema the objects of this BootstrapSchema belong to: e.g.
 java.lang.String getUnqualifiedClassName()
          Gets the unqualified class name for Schema class.
 java.lang.String getUnqualifiedClassName(ProducerTypeEnum type)
          Gets the unqualified class name for bootstrap Schema class producer type.
protected  void setDependencies(java.lang.String[] dependencies)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DEPS

protected static final java.lang.String[] DEFAULT_DEPS
Constructor Detail

AbstractBootstrapSchema

protected AbstractBootstrapSchema(java.lang.String schemaName)

AbstractBootstrapSchema

protected AbstractBootstrapSchema(java.lang.String owner,
                                  java.lang.String schemaName)

AbstractBootstrapSchema

protected AbstractBootstrapSchema(java.lang.String owner,
                                  java.lang.String schemaName,
                                  java.lang.String packageName)

AbstractBootstrapSchema

protected AbstractBootstrapSchema(java.lang.String owner,
                                  java.lang.String schemaName,
                                  java.lang.String packageName,
                                  java.lang.String[] dependencies)
Method Detail

getOwner

public final java.lang.String getOwner()
Description copied from interface: BootstrapSchema
Gets the name of the owner of the schema objects within this BootstrapSchema.

Specified by:
getOwner in interface BootstrapSchema
Returns:
the identifier for the owner of this set's objects

getSchemaName

public final java.lang.String getSchemaName()
Description copied from interface: BootstrapSchema
Gets the name of the logical schema the objects of this BootstrapSchema belong to: e.g. krb5-kdc may be the logical LDAP schema name.

Specified by:
getSchemaName in interface BootstrapSchema
Returns:
the name of the logical schema

getDependencies

public final java.lang.String[] getDependencies()
Description copied from interface: BootstrapSchema
Gets the names of other schemas that this objects within this BootstrapSchema depends upon. These dependent schemas are those whose ConfigurationSets will be processed first.

Specified by:
getDependencies in interface BootstrapSchema
Returns:
the String names of schema dependencies

setDependencies

protected final void setDependencies(java.lang.String[] dependencies)

getBaseClassName

public java.lang.String getBaseClassName()
Description copied from interface: BootstrapSchema
Gets the base class name for bootstrap Schema class files. This name is the schema name with the first character capitalized and qualified by the package name. So for a bootstrap schema name of 'bar' within the 'foo' package would return foo.Bar as the base class name.

Specified by:
getBaseClassName in interface BootstrapSchema
Returns:
the base of all bootstrap schema class names for this schema

getDefaultBaseClassName

public java.lang.String getDefaultBaseClassName()
Description copied from interface: BootstrapSchema
Gets the default base class name for bootstrap Schema class files. This name is the schema name with the first character capitalized and qualified by the default package name. So for a bootstrap schema name of 'bar' within the 'foo' package would return foo.Bar as the base class name.

Specified by:
getDefaultBaseClassName in interface BootstrapSchema
Returns:
the default base of all bootstrap schema class names for this schema

getFullClassName

public java.lang.String getFullClassName(ProducerTypeEnum type)
Description copied from interface: BootstrapSchema
Gets the class name for bootstrap Schema class producer type.

Specified by:
getFullClassName in interface BootstrapSchema
Returns:
the bootstrap schema class name for a producer type in this schema

getFullDefaultBaseClassName

public java.lang.String getFullDefaultBaseClassName(ProducerTypeEnum type)
Description copied from interface: BootstrapSchema
If the base class name for the target class does not resolve, we attempt to load another backup class using this default base class name which tries another package for the target class factory to load.

Specified by:
getFullDefaultBaseClassName in interface BootstrapSchema
Returns:
the default base class name

getUnqualifiedClassName

public java.lang.String getUnqualifiedClassName(ProducerTypeEnum type)
Description copied from interface: BootstrapSchema
Gets the unqualified class name for bootstrap Schema class producer type.

Specified by:
getUnqualifiedClassName in interface BootstrapSchema
Returns:
the bootstrap schema class name for a producer type in this schema

getPackageName

public java.lang.String getPackageName()
Description copied from interface: BootstrapSchema
Gets the package name of the schema's object factories.

Specified by:
getPackageName in interface BootstrapSchema
Returns:
the name of the schema's package name

getUnqualifiedClassName

public java.lang.String getUnqualifiedClassName()
Description copied from interface: BootstrapSchema
Gets the unqualified class name for Schema class.

Specified by:
getUnqualifiedClassName in interface BootstrapSchema
Returns:
the bootstrap schema class name