public abstract class AbstractSchemaLoader extends java.lang.Object implements SchemaLoader
| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractSchemaLoader.LowerCaseKeyMap
a map implementation which converts the keys to lower case before inserting
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
relaxed
The flag that tells about the SchemaLoader mode : relaxed or strict
|
protected java.util.Map<java.lang.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
|
private Schema[] |
buildSchemaArray(java.lang.String... schemaNames) |
java.util.Collection<Schema> |
getAllEnabled() |
java.util.Collection<Schema> |
getAllSchemas() |
protected Schema |
getSchema(Entry entry)
Gets the schema.
|
Schema |
getSchema(java.lang.String schemaName)
Gets a schema object based on it's name.
|
boolean |
isRelaxed() |
boolean |
isStrict() |
java.util.List<Entry> |
loadAttributeTypes(java.lang.String... schemaNames)
Build a list of AttributeTypes read from the underlying storage for
a list of specific schema, using their name
|
java.util.List<Entry> |
loadComparators(java.lang.String... schemaNames)
Build a list of Comparators read from the underlying storage for
a list of specific schema, using their name
|
java.util.List<Entry> |
loadDitContentRules(java.lang.String... schemaNames)
Build a list of DitContentRules read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadDitStructureRules(java.lang.String... schemaNames)
Build a list of DitStructureRules read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadMatchingRules(java.lang.String... schemaNames)
Build a list of MatchingRules read from the underlying storage for
a list of specific schema, using their name
|
java.util.List<Entry> |
loadMatchingRuleUses(java.lang.String... schemaNames)
Build a list of MatchingRuleUses read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadNameForms(java.lang.String... schemaNames)
Build a list of NameForms read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadNormalizers(java.lang.String... schemaNames)
Build a list of Normalizers read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadObjectClasses(java.lang.String... schemaNames)
Build a list of ObjectClasses read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadSyntaxCheckers(java.lang.String... schemaNames)
Build a list of SyntaxCheckers read from the underlying storage for
a list of specified schema names
|
java.util.List<Entry> |
loadSyntaxes(java.lang.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
|
void |
setRelaxed(boolean relaxed)
Set the SchemzLoader in STRICT or RELAXED mode.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxesprotected final java.util.Map<java.lang.String,Schema> schemaMap
private boolean relaxed
public final java.util.Collection<Schema> getAllEnabled() throws java.lang.Exception
getAllEnabled in interface SchemaLoaderjava.lang.Exception - TODOpublic final java.util.Collection<Schema> getAllSchemas() throws java.lang.Exception
getAllSchemas in interface SchemaLoaderjava.lang.Exception - TODOpublic Schema getSchema(java.lang.String schemaName)
getSchema in interface SchemaLoaderschemaName - the name of the schema to loadpublic void addSchema(Schema schema)
addSchema in interface SchemaLoaderpublic void removeSchema(Schema schema)
removeSchema in interface SchemaLoaderschema - The schema to removeprotected Schema getSchema(Entry entry) throws java.lang.Exception
entry - the entryjava.lang.Exception - the exceptionprivate Schema[] buildSchemaArray(java.lang.String... schemaNames) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Entry> loadAttributeTypes(java.lang.String... schemaNames) throws java.lang.Exception
loadAttributeTypes in interface SchemaLoaderschemaNames - the schema names from which AttributeTypes are loadedjava.lang.Exception - if there are failures accessing AttributeType informationpublic java.util.List<Entry> loadComparators(java.lang.String... schemaNames) throws java.lang.Exception
loadComparators in interface SchemaLoaderschemaNames - the schema names from which Comparators are loadedjava.lang.Exception - if there are failures accessing Comparator informationpublic java.util.List<Entry> loadDitContentRules(java.lang.String... schemaNames) throws java.lang.Exception
loadDitContentRules in interface SchemaLoaderschemaNames - the schema names from which DitContentRules are loadedjava.lang.Exception - if there are failures accessing DitContentRule informationpublic java.util.List<Entry> loadDitStructureRules(java.lang.String... schemaNames) throws java.lang.Exception
loadDitStructureRules in interface SchemaLoaderschemaNames - the schema names from which DitStructureRules are loadedjava.lang.Exception - if there are failures accessing DitStructureRule informationpublic java.util.List<Entry> loadMatchingRules(java.lang.String... schemaNames) throws java.lang.Exception
loadMatchingRules in interface SchemaLoaderschemaNames - the schema names from which MatchingRules are loadedjava.lang.Exception - if there are failures accessing MatchingRule informationpublic java.util.List<Entry> loadMatchingRuleUses(java.lang.String... schemaNames) throws java.lang.Exception
loadMatchingRuleUses in interface SchemaLoaderschemaNames - the schema names from which MatchingRuleUses are loadedjava.lang.Exception - if there are failures accessing MatchingRuleUses informationpublic java.util.List<Entry> loadNameForms(java.lang.String... schemaNames) throws java.lang.Exception
loadNameForms in interface SchemaLoaderschemaNames - the schema names from which NameForms are loadedjava.lang.Exception - if there are failures accessing NameForms informationpublic java.util.List<Entry> loadNormalizers(java.lang.String... schemaNames) throws java.lang.Exception
loadNormalizers in interface SchemaLoaderschemaNames - the schema names from which Normalizers are loadedjava.lang.Exception - if there are failures accessing Normalizer informationpublic java.util.List<Entry> loadObjectClasses(java.lang.String... schemaNames) throws java.lang.Exception
loadObjectClasses in interface SchemaLoaderschemaNames - the schema names from which ObjectClasses are loadedjava.lang.Exception - if there are failures accessing ObjectClasses informationpublic java.util.List<Entry> loadSyntaxes(java.lang.String... schemaNames) throws java.lang.Exception
loadSyntaxes in interface SchemaLoaderschemaNames - the schema names from which Syntaxes are loadedjava.lang.Exception - if there are failures accessing Syntax informationpublic java.util.List<Entry> loadSyntaxCheckers(java.lang.String... schemaNames) throws java.lang.Exception
loadSyntaxCheckers in interface SchemaLoaderschemaNames - the schema names from which SyntaxCheckers are loadedjava.lang.Exception - if there are failures accessing SyntaxChecker informationpublic boolean isRelaxed()
isRelaxed in interface SchemaLoaderpublic boolean isStrict()
isStrict in interface SchemaLoaderpublic void setRelaxed(boolean relaxed)
setRelaxed in interface SchemaLoaderrelaxed - if true, the SchemaLoader will be in relaxed mode, otherwise
it will be in strict mode (the default)