public abstract class AbstractSchemaLoader extends Object implements SchemaLoader
Modifier and Type | Field and Description |
---|---|
protected Map<String,Schema> |
schemaMap
A map of all available schema names to schema objects.
|
Constructor and Description |
---|
AbstractSchemaLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addSchema(Schema schema)
Add a new schema to the schema's list
|
Collection<Schema> |
getAllEnabled() |
Collection<Schema> |
getAllSchemas() |
protected Schema |
getSchema(Entry entry)
Gets the schema.
|
Schema |
getSchema(String schemaName)
Gets a schema object based on it's name.
|
List<Entry> |
loadAttributeTypes(String... schemaNames)
Build a list of AttributeTypes read from the underlying storage for
a list of specific schema, using their name
|
List<Entry> |
loadComparators(String... schemaNames)
Build a list of Comparators read from the underlying storage for
a list of specific schema, using their name
|
List<Entry> |
loadDitContentRules(String... schemaNames)
Build a list of DitContentRules read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadDitStructureRules(String... schemaNames)
Build a list of DitStructureRules read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadMatchingRules(String... schemaNames)
Build a list of MatchingRules read from the underlying storage for
a list of specific schema, using their name
|
List<Entry> |
loadMatchingRuleUses(String... schemaNames)
Build a list of MatchingRuleUses read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadNameForms(String... schemaNames)
Build a list of NameForms read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadNormalizers(String... schemaNames)
Build a list of Normalizers read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadObjectClasses(String... schemaNames)
Build a list of ObjectClasses read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadSyntaxCheckers(String... schemaNames)
Build a list of SyntaxCheckers read from the underlying storage for
a list of specified schema names
|
List<Entry> |
loadSyntaxes(String... schemaNames)
Build a list of Syntaxes read from the underlying storage for
a list of specified schema names
|
void |
removeSchema(Schema schema)
Remove a schema from the schema's list
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes
public AbstractSchemaLoader()
public final Collection<Schema> getAllEnabled() throws Exception
getAllEnabled
in interface SchemaLoader
Exception
- TODOpublic final Collection<Schema> getAllSchemas() throws Exception
getAllSchemas
in interface SchemaLoader
Exception
- TODOpublic Schema getSchema(String schemaName)
getSchema
in interface SchemaLoader
schemaName
- the name of the schema to loadpublic void addSchema(Schema schema)
addSchema
in interface SchemaLoader
public void removeSchema(Schema schema)
removeSchema
in interface SchemaLoader
protected Schema getSchema(Entry entry) throws Exception
entry
- the entryException
- the exceptionpublic List<Entry> loadAttributeTypes(String... schemaNames) throws Exception
loadAttributeTypes
in interface SchemaLoader
schemaNames
- the schema names from which AttributeTypes are loadedException
- if there are failures accessing AttributeType informationpublic List<Entry> loadComparators(String... schemaNames) throws Exception
loadComparators
in interface SchemaLoader
schemaNames
- the schema names from which Comparators are loadedException
- if there are failures accessing Comparator informationpublic List<Entry> loadDitContentRules(String... schemaNames) throws Exception
loadDitContentRules
in interface SchemaLoader
schemaNames
- the schema names from which DitContentRules are loadedException
- if there are failures accessing DitContentRule informationpublic List<Entry> loadDitStructureRules(String... schemaNames) throws Exception
loadDitStructureRules
in interface SchemaLoader
schemaNames
- the schema names from which DitStructureRules are loadedException
- if there are failures accessing DitStructureRule informationpublic List<Entry> loadMatchingRules(String... schemaNames) throws Exception
loadMatchingRules
in interface SchemaLoader
schemaNames
- the schema names from which MatchingRules are loadedException
- if there are failures accessing MatchingRule informationpublic List<Entry> loadMatchingRuleUses(String... schemaNames) throws Exception
loadMatchingRuleUses
in interface SchemaLoader
schemaNames
- the schema names from which MatchingRuleUses are loadedException
- if there are failures accessing MatchingRuleUses informationpublic List<Entry> loadNameForms(String... schemaNames) throws Exception
loadNameForms
in interface SchemaLoader
schemaNames
- the schema names from which NameForms are loadedException
- if there are failures accessing NameForms informationpublic List<Entry> loadNormalizers(String... schemaNames) throws Exception
loadNormalizers
in interface SchemaLoader
schemaNames
- the schema names from which Normalizers are loadedException
- if there are failures accessing Normalizer informationpublic List<Entry> loadObjectClasses(String... schemaNames) throws Exception
loadObjectClasses
in interface SchemaLoader
schemaNames
- the schema names from which ObjectClasses are loadedException
- if there are failures accessing ObjectClasses informationpublic List<Entry> loadSyntaxes(String... schemaNames) throws Exception
loadSyntaxes
in interface SchemaLoader
schemaNames
- the schema names from which Syntaxes are loadedException
- if there are failures accessing Syntax informationpublic List<Entry> loadSyntaxCheckers(String... schemaNames) throws Exception
loadSyntaxCheckers
in interface SchemaLoader
schemaNames
- the schema names from which SyntaxCheckers are loadedException
- if there are failures accessing SyntaxChecker informationCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.