/** * {@inheritDoc} */ public void clear() { // Clear all the schemaObjects for ( SchemaObject schemaObject : oidRegistry ) { // Don't clear LoadableSchemaObject if ( !( schemaObject instanceof LoadableSchemaObject ) ) { schemaObject.clear(); } } // Remove the byName elements byName.clear(); // Clear the OidRegistry oidRegistry.clear(); } }
/** * {@inheritDoc} */ public void clear() { // Clear the contained SchemaObjects for ( SchemaObject objectClass : oidRegistry ) { objectClass.clear(); } // First clear the shared elements super.clear(); // and clear the descendant for ( String oid : oidToDescendants.keySet() ) { Set<ObjectClass> descendants = oidToDescendants.get( oid ); if ( descendants != null ) { descendants.clear(); } } oidToDescendants.clear(); } }