|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.bootstrap.BootstrapSyntaxRegistry
public class BootstrapSyntaxRegistry
A SyntaxRegistry service available during server startup when other resources like a syntax backing store is unavailable.
Constructor Summary | |
---|---|
BootstrapSyntaxRegistry(OidRegistry registry)
Creates a BootstrapSyntaxRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasSyntax(java.lang.String id)
Checks to see if a Syntax exists. |
java.util.Iterator |
list()
Lists all the Syntaxes within this registry. |
Syntax |
lookup(java.lang.String id)
Looks up a Syntax by its unique Object Identifier or by name. |
void |
register(java.lang.String schema,
Syntax syntax)
Registers a Syntax with this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapSyntaxRegistry(OidRegistry registry)
Method Detail |
---|
public Syntax lookup(java.lang.String id) throws javax.naming.NamingException
SyntaxRegistry
lookup
in interface SyntaxRegistry
id
- the object identifier or name
javax.naming.NamingException
- if there is a backing store failure or the Syntax
does not exist.SyntaxRegistry.lookup(java.lang.String)
public void register(java.lang.String schema, Syntax syntax) throws javax.naming.NamingException
SyntaxRegistry
register
in interface SyntaxRegistry
schema
- the name of the schema the Syntax is associated withsyntax
- the Syntax to register
javax.naming.NamingException
- if the syntax is already registered or the
registration operation is not supportedSyntaxRegistry.register(String,Syntax)
public boolean hasSyntax(java.lang.String id)
SyntaxRegistry
hasSyntax
in interface SyntaxRegistry
id
- the object identifier or name
SyntaxRegistry.hasSyntax(java.lang.String)
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
SyntaxRegistry
getSchemaName
in interface SyntaxRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
SyntaxRegistry
list
in interface SyntaxRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |