public class DefaultObjectClassRegistry extends DefaultSchemaObjectRegistry<ObjectClass> implements ObjectClassRegistry
byName, oidRegistry, schemaObjectType| Constructor and Description |
|---|
DefaultObjectClassRegistry()
Creates a new default ObjectClassRegistry instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the registry from all its content
|
DefaultObjectClassRegistry |
copy()
Copy the ObjectClassRegistry
|
Iterator<ObjectClass> |
descendants(String ancestorId)
Get's an iterator over the set of descendant ObjectClasses for
some ancestor's name alias or their OID.
|
boolean |
hasDescendants(String ancestorId)
Quick lookup to see if an objectClass has descendants.
|
void |
registerDescendants(ObjectClass objectClass,
List<ObjectClass> ancestors)
Store the ObjectClass into a map associating an ObjectClass to its
descendants.
|
ObjectClass |
unregister(String numericOid)
Removes the SchemaObject registered with this registry, using its
numeric OID.
|
void |
unregisterDescendants(ObjectClass attributeType,
List<ObjectClass> ancestors)
Remove the ObjectClass from the map associating an ObjectClass to its
descendants.
|
contains, copy, get, getOidByName, getSchemaName, getType, isRelaxed, isStrict, iterator, lookup, oidsIterator, register, renameSchema, setRelaxed, setStrict, size, toString, unregister, unregisterSchemaElementsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitregistercontains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister, unregisterSchemaElementsforEach, iterator, spliteratorpublic DefaultObjectClassRegistry()
public boolean hasDescendants(String ancestorId) throws LdapException
hasDescendants in interface ObjectClassRegistryancestorId - the name alias or OID for an ObjectClassLdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedpublic Iterator<ObjectClass> descendants(String ancestorId) throws LdapException
descendants in interface ObjectClassRegistryancestorId - the name alias or OID for an ObjectClassLdapException - if the ancestor ObjectClass cannot be
discerned from the ancestorId suppliedpublic void registerDescendants(ObjectClass objectClass, List<ObjectClass> ancestors) throws LdapException
registerDescendants in interface ObjectClassRegistryobjectClass - The ObjectClass to registerancestors - Its ancestorsLdapException - If something went wrongpublic void unregisterDescendants(ObjectClass attributeType, List<ObjectClass> ancestors) throws LdapException
unregisterDescendants in interface ObjectClassRegistryattributeType - The ObjectClass to unregisterancestors - its ancestorsLdapException - If something went wrongpublic ObjectClass unregister(String numericOid) throws LdapException
unregister in interface ObjectClassRegistryunregister in interface SchemaObjectRegistry<ObjectClass>unregister in class DefaultSchemaObjectRegistry<ObjectClass>numericOid - the numeric identifierLdapException - if the numeric identifier is invalidpublic DefaultObjectClassRegistry copy()
copy in interface ObjectClassRegistrycopy in interface SchemaObjectRegistry<ObjectClass>public void clear()
clear in interface SchemaObjectRegistry<ObjectClass>clear in class DefaultSchemaObjectRegistry<ObjectClass>Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.