public class DefaultDitStructureRuleRegistry extends DefaultSchemaObjectRegistry<DitStructureRule> implements DitStructureRuleRegistry
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, getErrorHandler, getOidByName, getSchemaName, getType, isRelaxed, isStrict, lookup, oidsIterator, setErrorHandler, setRelaxed, setStrict, size, toString, unregister, unregister
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, contains, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, unregister, unregister
forEach, spliterator
public DefaultDitStructureRuleRegistry()
public boolean contains(int ruleId)
contains
in interface DitStructureRuleRegistry
ruleId
- the rule identifier of the DitStructureRulepublic Iterator<DitStructureRule> iterator()
iterator
in interface Iterable<DitStructureRule>
iterator
in interface DitStructureRuleRegistry
iterator
in interface SchemaObjectRegistry<DitStructureRule>
iterator
in class DefaultSchemaObjectRegistry<DitStructureRule>
public Iterator<Integer> ruleIdIterator()
ruleIdIterator
in interface DitStructureRuleRegistry
public String getSchemaName(int ruleId) throws LdapException
getSchemaName
in interface DitStructureRuleRegistry
ruleId
- the object identifierLdapException
- if the schema object does not existpublic void register(DitStructureRule ditStructureRule) throws LdapException
register
in interface DitStructureRuleRegistry
register
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 DitStructureRuleRegistry
ruleId
- the rule identifier for the DitStructureRuleLdapException
- if the DitStructureRule does not existpublic void unregister(int ruleId) throws LdapException
unregister
in interface DitStructureRuleRegistry
ruleId
- the rule identifier for the DitStructureRule to unregisterLdapException
- if no such DitStructureRule existspublic void unregisterSchemaElements(String schemaName)
unregisterSchemaElements
in interface DitStructureRuleRegistry
unregisterSchemaElements
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 DitStructureRuleRegistry
renameSchema
in interface SchemaObjectRegistry<DitStructureRule>
renameSchema
in class DefaultSchemaObjectRegistry<DitStructureRule>
originalSchemaName
- The original Schema namenewSchemaName
- The new Schema namepublic DefaultDitStructureRuleRegistry copy()
copy
in interface DitStructureRuleRegistry
copy
in interface SchemaObjectRegistry<DitStructureRule>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.