public interface DitStructureRuleRegistry extends SchemaObjectRegistry<DitStructureRule>, Iterable<DitStructureRule>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int ruleId)
Checks to see if an DitStructureRule exists in the registry, by its
ruleId.
|
DitStructureRuleRegistry |
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 descriptions 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 DitStructureRule with this registry.
|
void |
renameSchema(String originalSchemaName,
String newSchemaName)
Modify all the DitStructureRule 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 DITStructureRules defined for a specific schema from
this registry.
|
clear, contains, get, getOidByName, getSchemaName, getType, lookup, oidsIterator, size, unregister, unregisterforEach, spliteratorboolean contains(int ruleId)
ruleId - the rule identifier of the DitStructureRuleIterator<DitStructureRule> iterator()
iterator in interface Iterable<DitStructureRule>iterator in interface SchemaObjectRegistry<DitStructureRule>Iterator<Integer> ruleIdIterator()
String getSchemaName(int ruleId) throws LdapException
ruleId - the object identifierLdapException - if the schema object does not existvoid register(DitStructureRule ditStructureRule) throws LdapException
register in interface SchemaObjectRegistry<DitStructureRule>ditStructureRule - the DitStructureRule to registerLdapException - if the DitStructureRule is already registered or
the registration operation is not supportedDitStructureRule lookup(int ruleId) throws LdapException
ruleId - the rule identifier for the DitStructureRuleLdapException - if the DitStructureRule does not existvoid unregister(int ruleId)
throws LdapException
ruleId - the rule identifier for the DitStructureRule to unregisterLdapException - if no such DitStructureRule existsvoid unregisterSchemaElements(String schemaName) throws LdapException
unregisterSchemaElements in interface SchemaObjectRegistry<DitStructureRule>schemaName - the name of the schema whose syntaxCheckers will be removed fromLdapException - if no such SchemaElement existsvoid renameSchema(String originalSchemaName, String newSchemaName) throws LdapException
renameSchema in interface SchemaObjectRegistry<DitStructureRule>originalSchemaName - The original Schema namenewSchemaName - The new Schema nameLdapException - if the schema can't be renamedDitStructureRuleRegistry copy()
copy in interface SchemaObjectRegistry<DitStructureRule>Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.