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, unregister
boolean 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-2014 The Apache Software Foundation. All Rights Reserved.