*/
public void addToRegistries( List<Throwable> errors, Registries registries ) throws LdapException
{
if ( registries != null )
{
AttributeTypeRegistry attributeTypeRegistry = registries.getAttributeTypeRegistry();
// The superior
if ( !buildSuperior( errors, registries ) )
{
// We have had errors, let's stop here as we need a correct superior to continue
return;
}
// The Syntax
buildSyntax( errors, registries );
// The EQUALITY matching rule
buildEquality( errors, registries );
// The ORDERING matching rule
buildOrdering( errors, registries );
// The SUBSTR matching rule
buildSubstring( errors, registries );
// Check the USAGE
checkUsage( errors );
// Check the COLLECTIVE element
checkCollective( errors );
// Inject the attributeType into the oid/normalizer map
attributeTypeRegistry.addMappingFor( this );
// Register this AttributeType into the Descendant map
attributeTypeRegistry.registerDescendants( this, superior );
/**
* Add the AT references (using and usedBy) :
* AT -> MR (for EQUALITY, ORDERING and SUBSTR)
* AT -> S