|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.registries.DefaultSchema
public class DefaultSchema
The default Schema interface implementation.
| Field Summary | |
|---|---|
protected Set<SchemaObjectWrapper> |
content
The set of SchemaObjects declared in this schema |
protected static String |
DEFAULT_OWNER
The default schema's owner |
protected String[] |
dependencies
Contains the list of schema it depends on |
protected boolean |
disabled
Tells if this schema is disabled |
protected String |
name
The schema name |
protected String |
owner
The schema owner |
| Constructor Summary | |
|---|---|
DefaultSchema(String name)
Creates a new instance of DefaultSchema. |
|
DefaultSchema(String name,
String owner)
Creates a new instance of DefaultSchema. |
|
DefaultSchema(String name,
String owner,
String[] dependencies)
Creates a new instance of DefaultSchema. |
|
DefaultSchema(String name,
String owner,
String[] dependencies,
boolean disabled)
Creates a new instance of DefaultSchema. |
|
| Method Summary | |
|---|---|
void |
addDependencies(String... dependenciesToAdd)
Add a set of dependencies this schema uses. |
void |
disable()
Disable the schema |
void |
enable()
Enable the schema |
Set<SchemaObjectWrapper> |
getContent()
Gets the set of SchemaObject elements declared in this schema |
String[] |
getDependencies()
Gets the names of other schemas that the objects within this Schema depends upon. |
String |
getOwner()
Gets the name of the owner of the schema objects within this Schema. |
String |
getSchemaName()
Gets the name of the logical schema the objects of this Schema belong to: e.g. |
boolean |
isDisabled()
Checks whether or not this schema is enabled or disabled. |
boolean |
isEnabled()
Checks whether or not this schema is enabled or disabled. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String DEFAULT_OWNER
protected boolean disabled
protected String[] dependencies
protected String owner
protected String name
protected Set<SchemaObjectWrapper> content
| Constructor Detail |
|---|
public DefaultSchema(String name)
name - The schema's name
public DefaultSchema(String name,
String owner)
name - The schema's nameowner - the schema's owner
public DefaultSchema(String name,
String owner,
String[] dependencies)
name - The schema's nameowner - the schema's ownerdependencies - The list of schemas it depends on
public DefaultSchema(String name,
String owner,
String[] dependencies,
boolean disabled)
name - The schema's nameowner - the schema's ownerdependencies - The list of schemas it depends ondisabled - Set the status for this schema| Method Detail |
|---|
public String[] getDependencies()
getDependencies in interface Schemapublic void addDependencies(String... dependenciesToAdd)
addDependencies in interface SchemadependenciesToAdd - The dependencies to addpublic String getOwner()
getOwner in interface Schemapublic String getSchemaName()
getSchemaName in interface Schemapublic boolean isDisabled()
isDisabled in interface Schemapublic boolean isEnabled()
isEnabled in interface Schemapublic void disable()
disable in interface Schemapublic void enable()
enable in interface Schemapublic Set<SchemaObjectWrapper> getContent()
getContent in interface Schemapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||