Class SchemaLoader
- java.lang.Object
-
- org.opends.guitools.controlpanel.util.SchemaLoader
-
- Direct Known Subclasses:
RemoteSchemaLoader
public class SchemaLoader extends Object
Class used to retrieve the schema from the schema files.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<MatchingRule>matchingRulesToKeepList of matching rules to keep in the schema.protected List<Syntax>syntaxesToKeepList of attribute syntaxes to keep in the schema.
-
Constructor Summary
Constructors Constructor Description SchemaLoader()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SchemagetBaseSchema()Returns a basic version of the schema.SchemagetSchema()Returns the schema that was read.SchemareadSchema()Reads and returns the schema.
-
-
-
Field Detail
-
matchingRulesToKeep
protected final List<MatchingRule> matchingRulesToKeep
List of matching rules to keep in the schema.
-
-
Method Detail
-
readSchema
public Schema readSchema() throws DirectoryException, ConfigException, InitializationException
Reads and returns the schema.- Returns:
- the schema
- Throws:
ConfigException- if an error occurs reading the schema.InitializationException- if an error occurs trying to find out the schema files.DirectoryException- if there is an error registering the minimal objectclasses.
-
getBaseSchema
protected Schema getBaseSchema() throws DirectoryException
Returns a basic version of the schema. The schema is created and contains enough definitions for the schema to be loaded.- Returns:
- a basic version of the schema.
- Throws:
DirectoryException- if there is an error registering the minimal objectclasses.
-
getSchema
public Schema getSchema()
Returns the schema that was read.- Returns:
- the schema that was read.
-
-