|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.GlobalSyntaxCheckerRegistry
A simple POJO implementation of the SyntaxCheckerRegistry service interface.
Constructor Summary | |
GlobalSyntaxCheckerRegistry(BootstrapSyntaxCheckerRegistry bootstrap)
Creates a default SyntaxCheckerRegistry by initializing the map and the montior. |
Method Summary | |
java.lang.String |
getSchemaName(java.lang.String oid)
Gets the name of the schema this schema object is associated with. |
boolean |
hasSyntaxChecker(java.lang.String oid)
Checks to see if a SyntaxChecker exists. |
SyntaxChecker |
lookup(java.lang.String oid)
Looks up a SyntaxChecker by its unique Object Identifier. |
void |
register(java.lang.String schema,
java.lang.String oid,
SyntaxChecker syntaxChecker)
Registers a SyntaxChecker with this registry. |
void |
setMonitor(SyntaxCheckerRegistryMonitor monitor)
Sets the monitor used by this registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GlobalSyntaxCheckerRegistry(BootstrapSyntaxCheckerRegistry bootstrap)
Method Detail |
public void setMonitor(SyntaxCheckerRegistryMonitor monitor)
monitor
- the monitor to set for registry event callbackspublic void register(java.lang.String schema, java.lang.String oid, SyntaxChecker syntaxChecker) throws javax.naming.NamingException
SyntaxCheckerRegistry
register
in interface SyntaxCheckerRegistry
schema
- the name of the schema the SyntaxChecker is associated withsyntaxChecker
- the SyntaxChecker to register
javax.naming.NamingException
- if the SyntaxChecker is already registered or the
registration operation is not supportedpublic SyntaxChecker lookup(java.lang.String oid) throws javax.naming.NamingException
SyntaxCheckerRegistry
lookup
in interface SyntaxCheckerRegistry
oid
- the object identifier
javax.naming.NamingException
- if there is a backing store failure or the
SyntaxChecker does not exist.public boolean hasSyntaxChecker(java.lang.String oid)
SyntaxCheckerRegistry
hasSyntaxChecker
in interface SyntaxCheckerRegistry
oid
- the object identifier
public java.lang.String getSchemaName(java.lang.String oid) throws javax.naming.NamingException
SyntaxCheckerRegistry
getSchemaName
in interface SyntaxCheckerRegistry
oid
- the object identifier
javax.naming.NamingException
- if the schema object does not exist
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |