|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.schema.GlobalSyntaxRegistry
public class GlobalSyntaxRegistry
A plain old java object implementation of an SyntaxRegistry.
| Constructor Summary | |
|---|---|
GlobalSyntaxRegistry(BootstrapSyntaxRegistry bootstrap,
OidRegistry oidRegistry)
Creates an empty 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. |
org.apache.directory.shared.ldap.schema.Syntax |
lookup(java.lang.String id)
Looks up a Syntax by its unique Object Identifier or by name. |
void |
register(java.lang.String schema,
org.apache.directory.shared.ldap.schema.Syntax dITContentRule)
Registers a Syntax with this registry. |
void |
setMonitor(SyntaxRegistryMonitor monitor)
Sets the monitor that is to be notified via callback events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalSyntaxRegistry(BootstrapSyntaxRegistry bootstrap,
OidRegistry oidRegistry)
| Method Detail |
|---|
public void setMonitor(SyntaxRegistryMonitor monitor)
monitor - the new monitor to notify of notable events
public void register(java.lang.String schema,
org.apache.directory.shared.ldap.schema.Syntax dITContentRule)
throws javax.naming.NamingException
SyntaxRegistry
register in interface SyntaxRegistryschema - the name of the schema the Syntax is associated withdITContentRule - the Syntax to register
javax.naming.NamingException - if the syntax is already registered or the
registration operation is not supported
public org.apache.directory.shared.ldap.schema.Syntax lookup(java.lang.String id)
throws javax.naming.NamingException
SyntaxRegistry
lookup in interface SyntaxRegistryid - the object identifier or name
javax.naming.NamingException - if there is a backing store failure or the Syntax
does not exist.public boolean hasSyntax(java.lang.String id)
SyntaxRegistry
hasSyntax in interface SyntaxRegistryid - the object identifier or name
public java.lang.String getSchemaName(java.lang.String id)
throws javax.naming.NamingException
SyntaxRegistry
getSchemaName in interface SyntaxRegistryid - 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 | |||||||||