|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.bootstrap.BootstrapAttributeTypeRegistry
A plain old java object implementation of an AttributeTypeRegistry.
Constructor Summary | |
BootstrapAttributeTypeRegistry(OidRegistry oidRegistry)
Creates an empty BootstrapAttributeTypeRegistry. |
Method Summary | |
java.util.Iterator |
descendants(java.lang.String ancestorId)
Get's an iterator over the set of descendant attributeTypes for some ancestor's name alias or their OID. |
java.util.Map |
getNormalizerMapping()
Gets an oid/name to normalizer mapping used to normalize distinguished names. |
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasAttributeType(java.lang.String id)
Checks to see if an AttributeType exists. |
boolean |
hasDescendants(java.lang.String ancestorId)
Quick lookup to see if an attribute has descendants. |
java.util.Iterator |
list()
Gets an Iterator over the AttributeTypes within this registry. |
AttributeType |
lookup(java.lang.String id)
Looks up an AttributeType by its unique Object Identifier or by its unique name. |
protected void |
onRegisterAddToAncestorDescendants(AttributeType newType,
AttributeType ancestor)
Recursively adds a new attributeType to the descendant's list of all ancestors until top is reached. |
void |
register(java.lang.String schema,
AttributeType attributeType)
Registers a new AttributeType with this registry. |
void |
registerDescendants(AttributeType attributeType)
|
void |
setMonitor(AttributeTypeRegistryMonitor monitor)
Sets the monitor that is to be notified via callback events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BootstrapAttributeTypeRegistry(OidRegistry oidRegistry)
Method Detail |
public void setMonitor(AttributeTypeRegistryMonitor monitor)
monitor
- the new monitor to notify of notable eventspublic void register(java.lang.String schema, AttributeType attributeType) throws javax.naming.NamingException
AttributeTypeRegistry
register
in interface AttributeTypeRegistry
schema
- the name of the schema the AttributeType is associated withattributeType
- the AttributeType to register
javax.naming.NamingException
- if the AttributeType is already registered or
the registration operation is not supportedpublic void registerDescendants(AttributeType attributeType) throws javax.naming.NamingException
javax.naming.NamingException
protected void onRegisterAddToAncestorDescendants(AttributeType newType, AttributeType ancestor) throws javax.naming.NamingException
newType
- the new attributeType being addedancestor
- some anscestor from superior up to and including top
javax.naming.NamingException
public AttributeType lookup(java.lang.String id) throws javax.naming.NamingException
AttributeTypeRegistry
lookup
in interface AttributeTypeRegistry
id
- the object identifier or name of the AttributeType
javax.naming.NamingException
- if the AttributeType does not existpublic boolean hasAttributeType(java.lang.String id)
AttributeTypeRegistry
hasAttributeType
in interface AttributeTypeRegistry
id
- the object identifier or name of the AttributeType
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
AttributeTypeRegistry
getSchemaName
in interface AttributeTypeRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
AttributeTypeRegistry
list
in interface AttributeTypeRegistry
public java.util.Map getNormalizerMapping() throws javax.naming.NamingException
AttributeTypeRegistry
getNormalizerMapping
in interface AttributeTypeRegistry
javax.naming.NamingException
public java.util.Iterator descendants(java.lang.String ancestorId) throws javax.naming.NamingException
AttributeTypeRegistry
descendants
in interface AttributeTypeRegistry
ancestorId
- the name alias or OID for an attributeType
javax.naming.NamingException
- if the ancestor attributeType cannot be
discerned from the ancestorId suppliedpublic boolean hasDescendants(java.lang.String ancestorId) throws javax.naming.NamingException
AttributeTypeRegistry
hasDescendants
in interface AttributeTypeRegistry
ancestorId
- the name alias or OID for an attributeType
javax.naming.NamingException
- if the ancestor attributeType cannot be
discerned from the ancestorId supplied
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |