/** * Add all the Schema's AttributeTypes * * @param schema The schema in which the AttributeTypes will be added * @param registries The Registries to process * @throws LdapException If the AttributeTypes cannot be added * @throws IOException If the AttributeTypes cannot be loaded */ private void addAttributeTypes( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadAttributeTypes( schema ) ) { AttributeType attributeType = factory.getAttributeType( this, entry, registries, schema.getSchemaName() ); addSchemaObject( registries, attributeType, schema ); } }
/** * Add all the Schema's AttributeTypes * * @param schema The schema in which the AttributeTypes will be added * @param registries The Registries to process * @throws LdapException If the AttributeTypes cannot be added * @throws IOException If the AttributeTypes cannot be loaded */ private void addAttributeTypes( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadAttributeTypes( schema ) ) { AttributeType attributeType = factory.getAttributeType( this, entry, registries, schema.getSchemaName() ); addSchemaObject( registries, attributeType, schema ); } }
/** * Add all the Schema's AttributeTypes * * @param schema The schema in which the AttributeTypes will be added * @param registries The Registries to process * @throws LdapException If the AttributeTypes cannot be added * @throws IOException If the AttributeTypes cannot be loaded */ private void addAttributeTypes( Schema schema, Registries registries ) throws LdapException, IOException { if ( schema.getSchemaLoader() == null ) { return; } for ( Entry entry : schema.getSchemaLoader().loadAttributeTypes( schema ) ) { AttributeType attributeType = factory.getAttributeType( this, entry, registries, schema.getSchemaName() ); addSchemaObject( registries, attributeType, schema ); } }