|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultSyntaxRegistry
public class DefaultSyntaxRegistry
A SyntaxRegistry service available during server startup when other resources like a syntax backing store is unavailable.
| Constructor Summary | |
|---|---|
DefaultSyntaxRegistry(OidRegistry registry)
Creates a DefaultSyntaxRegistry. |
|
| 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<org.apache.directory.shared.ldap.schema.Syntax> |
iterator()
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(org.apache.directory.shared.ldap.schema.Syntax syntax)
Registers a Syntax with this registry. |
void |
unregister(java.lang.String numericOid)
Removes the SchemaObject registered with this registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSyntaxRegistry(OidRegistry registry)
registry - used by this registry for OID to name resolution of
dependencies and to automatically register and unregister it's aliases and OIDs| Method Detail |
|---|
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 void register(org.apache.directory.shared.ldap.schema.Syntax syntax)
throws javax.naming.NamingException
SyntaxRegistry
register in interface SyntaxRegistrysyntax - the Syntax to register
javax.naming.NamingException - if the syntax is already registered or the
registration operation is not supportedpublic 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
SchemaObjectRegistry
getSchemaName in interface SchemaObjectRegistryid - the object identifier or the name
javax.naming.NamingException - if the schema object does not existpublic java.util.Iterator<org.apache.directory.shared.ldap.schema.Syntax> iterator()
SyntaxRegistry
iterator in interface SchemaObjectRegistryiterator in interface SyntaxRegistry
public void unregister(java.lang.String numericOid)
throws javax.naming.NamingException
SchemaObjectRegistry
unregister in interface SchemaObjectRegistrynumericOid - the numeric identifier
javax.naming.NamingException - if the numeric identifier is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||