public class DefaultDitStructureRuleRegistry extends DefaultSchemaObjectRegistry<DitStructureRule> implements DitStructureRuleRegistry
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,DitStructureRule> |
byRuleId
a map of DitStructureRule looked up by RuleId
|
byName, oidRegistry, schemaObjectType| Constructor and Description |
|---|
DefaultDitStructureRuleRegistry()
Creates a new default NormalizerRegistry instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int ruleId)
Checks to see if an DitStructureRule exists in the registry, by its
ruleId.
|
DefaultDitStructureRuleRegistry |
copy()
Copy the DitStructureRuleRegistry
|
String |
getSchemaName(int ruleId)
Gets the name of the schema this schema object is associated with.
|
Iterator<DitStructureRule> |
iterator()
Gets an iterator over the registered schema objects in the registry.
|
DitStructureRule |
lookup(int ruleId)
Looks up an dITStructureRule by its unique Object IDentifier or by its
name.
|
void |
register(DitStructureRule ditStructureRule)
Registers a new SchemaObject with this registry.
|
void |
renameSchema(String originalSchemaName,
String newSchemaName)
Modify all the SchemaObject using a schemaName when this name changes.
|
Iterator<Integer> |
ruleIdIterator()
Gets an iterator over the registered ruleId in the registry.
|
void |
unregister(int ruleId)
Unregisters a DitStructureRule using it's rule identifier.
|
void |
unregisterSchemaElements(String schemaName)
Unregisters all SchemaObjects defined for a specific schema from
this registry.
|
clear, contains, copy, get, getOidByName, getSchemaName, getType, isRelaxed, isStrict, lookup, oidsIterator, setRelaxed, setStrict, size, toString, unregister, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, contains, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, unregister, unregisterforEach, spliteratorprotected Map<Integer,DitStructureRule> byRuleId
public DefaultDitStructureRuleRegistry()
public boolean contains(int ruleId)
contains in interface DitStructureRuleRegistryruleId - the rule identifier of the DitStructureRulepublic Iterator<DitStructureRule> iterator()
iterator in interface Iterable<DitStructureRule>iterator in interface DitStructureRuleRegistryiterator in interface SchemaObjectRegistry<DitStructureRule>iterator in class DefaultSchemaObjectRegistry<DitStructureRule>public Iterator<Integer> ruleIdIterator()
ruleIdIterator in interface DitStructureRuleRegistrypublic String getSchemaName(int ruleId) throws LdapException
getSchemaName in interface DitStructureRuleRegistryruleId - the object identifierLdapException - if the schema object does not existpublic void register(DitStructureRule ditStructureRule) throws LdapException
register in interface DitStructureRuleRegistryregister in interface SchemaObjectRegistry<DitStructureRule>register in class DefaultSchemaObjectRegistry<DitStructureRule>ditStructureRule - the SchemaObject to registerLdapException - if the SchemaObject is already registered or
the registration operation is not supportedpublic DitStructureRule lookup(int ruleId) throws LdapException
lookup in interface DitStructureRuleRegistryruleId - the rule identifier for the DitStructureRuleLdapException - if the DitStructureRule does not existpublic void unregister(int ruleId)
throws LdapException
unregister in interface DitStructureRuleRegistryruleId - the rule identifier for the DitStructureRule to unregisterLdapException - if no such DitStructureRule existspublic void unregisterSchemaElements(String schemaName)
unregisterSchemaElements in interface DitStructureRuleRegistryunregisterSchemaElements in interface SchemaObjectRegistry<DitStructureRule>unregisterSchemaElements in class DefaultSchemaObjectRegistry<DitStructureRule>schemaName - the name of the schema whose SchemaObjects will be removed frompublic void renameSchema(String originalSchemaName, String newSchemaName)
renameSchema in interface DitStructureRuleRegistryrenameSchema in interface SchemaObjectRegistry<DitStructureRule>renameSchema in class DefaultSchemaObjectRegistry<DitStructureRule>originalSchemaName - The original Schema namenewSchemaName - The new Schema namepublic DefaultDitStructureRuleRegistry copy()
copy in interface DitStructureRuleRegistrycopy in interface SchemaObjectRegistry<DitStructureRule>Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.