Interface Schema
-
- All Known Implementing Classes:
DefaultSchema
public interface Schema
Base schema interface.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDependencies(String... dependencies)
Add a set of dependencies this schema uses.void
disable()
Disable the schemavoid
enable()
Enable the schemaSet<SchemaObjectWrapper>
getContent()
Gets the set of SchemaObject elements declared in this schemaString[]
getDependencies()
Gets the names of other schemas that the objects within this Schema depends upon.String
getOwner()
Gets the name of the owner of the schema objects within this Schema.SchemaLoader
getSchemaLoader()
Gets the SchemaLoader this Schema has to be loaded withString
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.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
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
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
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(String... dependencies)
Add a set of dependencies this schema uses.- Parameters:
dependencies
- The dependencies to add
-
getContent
Set<SchemaObjectWrapper> getContent()
Gets the set of SchemaObject elements declared in this schema- Returns:
- The Set of associated SchemaObjects
-
getSchemaLoader
SchemaLoader getSchemaLoader()
Gets the SchemaLoader this Schema has to be loaded with- Returns:
- The SchemaLoader in use
-
-