public final class AttributeTypeHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
A logger for this class
|
| Modifier | Constructor and Description |
|---|---|
private |
AttributeTypeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToRegistries(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Inject the AttributeType into the Registries, updating the references to
other SchemaObject
If one of the referenced SchemaObject does not exist (SUP, EQUALITY, ORDERING, SUBSTR, SYNTAX),
an exception is thrown.
|
private static void |
buildEquality(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Build the EQUALITY MR reference for an AttributeType
|
private static void |
buildOrdering(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Build the ORDERING MR reference for an AttributeType
|
private static void |
buildSubstring(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Build the SUBSTR MR reference for an AttributeType
|
private static boolean |
buildSuperior(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Build the Superior AttributeType reference for an AttributeType
|
private static void |
buildSyntax(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Build the SYNTAX reference for an AttributeType
|
private static void |
checkCollective(AttributeType attributeType,
SchemaErrorHandler errorHandler)
Check the constraints for the Collective field.
|
private static void |
checkUsage(AttributeType attributeType,
SchemaErrorHandler errorHandler)
Check the constraints for the Usage field.
|
static void |
removeFromRegistries(AttributeType attributeType,
SchemaErrorHandler errorHandler,
Registries registries)
Remove the AttributeType from the registries, updating the references to
other SchemaObject.
|
public static void addToRegistries(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries) throws LdapException
attributeType - The AttributeType to add to the RegistrieserrorHandler - Error handlerregistries - The RegistriesLdapException - If the AttributeType is not validprivate static boolean buildSuperior(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
attributeType - The AttributeType to processerrorHandler - The error handlerregistries - The Registries instanceprivate static void buildSyntax(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
attributeType - The AttributeType to processerrorHandler - The error handlerregistries - The Registries instanceprivate static void buildEquality(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
attributeType - The AttributeType to processerrorHandler - The error handlerregistries - The Registries instanceprivate static void buildSubstring(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
attributeType - The AttributeType to processerrorHandler - The error handlerregistries - The Registries instanceprivate static void buildOrdering(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries)
attributeType - The AttributeType to processerrorHandler - The error handlerregistries - The Registries instanceprivate static void checkUsage(AttributeType attributeType, SchemaErrorHandler errorHandler)
attributeType - The AttributeType to checkerrorHandler - The error handlerprivate static void checkCollective(AttributeType attributeType, SchemaErrorHandler errorHandler)
attributeType - The AttributeType to checkerrorHandler - The error handlerpublic static void removeFromRegistries(AttributeType attributeType, SchemaErrorHandler errorHandler, Registries registries) throws LdapException
attributeType - The AttributeType to remove from the RegistrieserrorHandler - Error handlerregistries - The RegistriesLdapException - If the AttributeType is not validCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.