public interface SchemaExtensionIF
Classes that implement this interface must have a zero argument constructor since they will be instantiated by the SchemaManager.
To make use of a schema extension, simply specify it in the schema you're defining, for example:
SchemaDefinition name someSchema schemaExtension org.dmd.dmr.server.ldap.util.LDAPSchemaExtension
Whenever a definition is added to the SchemaManager, either via the SchemaParser or when a schema is managed, all available schema extensions will be notified. This allows them to perform any additional error checking, augmentation of the definitions (for example via the addition of auxiliary classes) or any other behaviour that's required.
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(ActionDefinition def)
This method will be called when an action is added to the schema manager.
|
void |
addAttribute(AttributeDefinition def)
This method will be called when an attribute is added to the schema manager.
|
void |
addClass(ClassDefinition def)
This method will be called when a class is added to the schema manager.
|
void |
addEnum(EnumDefinition def)
This method will be called when an enum is added to the schema manager.
|
void |
addSchema(SchemaDefinition def)
This method will be called when a schema is added to the schema manager.
|
void |
addType(TypeDefinition def)
This method will be called when a type is added to the schema manager.
|
void |
definitionPreAdd(DmcUncheckedObject uco)
This method is called whenever we're about to add the specified definition
to a schema.
|
SchemaDefinition |
getExtensionSchema()
This methods allows the schema manager to access and manage the schema of the
the schema extension.
|
void |
schemaBeingLoaded(SchemaDefinition sd)
This method is called whenever we're about to start loading definitions from
the specified schema.
|
void |
setManager(SchemaManager sm)
This method will be called when the implementing class is first instantiated
so that it has a handle to the schema manager with which its associated.
|
void setManager(SchemaManager sm)
sm - The schema manager.SchemaDefinition getExtensionSchema()
void addAttribute(AttributeDefinition def) throws ResultException, DmcValueException
def - The definition.ResultExceptionDmcValueExceptionvoid addClass(ClassDefinition def) throws ResultException, DmcValueException
def - The definition.ResultExceptionDmcValueExceptionvoid addType(TypeDefinition def) throws ResultException, DmcValueException
def - The definition.ResultExceptionDmcValueExceptionvoid addAction(ActionDefinition def) throws ResultException, DmcValueException
def - The definition.ResultExceptionDmcValueExceptionvoid addEnum(EnumDefinition def) throws ResultException, DmcValueException
def - The definition.ResultExceptionDmcValueExceptionvoid addSchema(SchemaDefinition def) throws ResultException, DmcValueException
def - The definition.ResultExceptionDmcValueExceptionvoid schemaBeingLoaded(SchemaDefinition sd) throws ResultException
sd - The schema definition.ResultExceptionvoid definitionPreAdd(DmcUncheckedObject uco) throws DmcValueException
uco - DmcValueExceptionCopyright © 2023. All rights reserved.