org.apache.directory.shared.ldap.schema.registries
Interface Schema

All Known Implementing Classes:
DefaultSchema

public interface Schema

Base schema interface.

Version:
$Rev$
Author:
Apache Directory Project

Method Summary
 void addDependencies(java.lang.String... dependencies)
          Add a set of dependencies this schema uses.
 void disable()
          Disable the schema
 void enable()
          Enable the schema
 java.util.Set<SchemaObjectWrapper> getContent()
          Gets the set of SchemaObject elements declared in this schema
 java.lang.String[] getDependencies()
          Gets the names of other schemas that the objects within this Schema depends upon.
 java.lang.String getOwner()
          Gets the name of the owner of the schema objects within this Schema.
 java.lang.String getSchemaName()
          Gets the name of the logical schema the objects of this Schema belong to: e.g.
 boolean isDisabled()
          Checks whether or not this schema is enabled or disabled.
 boolean isEnabled()
          Checks whether or not this schema is enabled or disabled.
 

Method Detail

isDisabled

boolean isDisabled()
Checks whether or not this schema is enabled or disabled.

Returns:
true if this schema is disabled, false otherwise

disable

void disable()
Disable the schema


isEnabled

boolean isEnabled()
Checks whether or not this schema is enabled or disabled.

Returns:
true if this schema is enabled, false otherwise

enable

void enable()
Enable the schema


getOwner

java.lang.String getOwner()
Gets the name of the owner of the schema objects within this Schema.

Returns:
the identifier for the owner of this set's objects

getSchemaName

java.lang.String getSchemaName()
Gets the name of the logical schema the objects of this Schema belong to: e.g. krb5-kdc may be the logical LDAP schema name.

Returns:
the name of the logical schema

getDependencies

java.lang.String[] getDependencies()
Gets the names of other schemas that the objects within this Schema depends upon.

Returns:
the String names of schema dependencies

addDependencies

void addDependencies(java.lang.String... dependencies)
Add a set of dependencies this schema uses.

Parameters:
strings - The dependencies to add

getContent

java.util.Set<SchemaObjectWrapper> getContent()
Gets the set of SchemaObject elements declared in this schema

Returns:
The Set of associated SchemaObjects


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