|
||||||||||
| 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.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.SyntaxChecker
public abstract class SyntaxChecker
Used to validate values of a particular syntax. This interface does not correlate to any LDAP or X.500 construct. It has been created as a means to enforce a syntax within the Eve server.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
|---|
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
| Constructor Summary | |
|---|---|
protected |
SyntaxChecker()
The SyntaxChecker default constructor where the oid is set after instantiation. |
protected |
SyntaxChecker(String oid)
The SyntaxChecker base constructor |
| Method Summary | |
|---|---|
void |
assertSyntax(Object value)
Asserts whether or not the attribute's value conforms to the attribute syntax. |
boolean |
equals(Object o)
|
abstract boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax. |
void |
setSchemaManager(SchemaManager schemaManager)
Store the SchemaManager in this instance. |
String |
toString()
|
| Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject |
|---|
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
|---|
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SyntaxChecker(String oid)
oid - The associated OIDprotected SyntaxChecker()
| Method Detail |
|---|
public abstract boolean isValidSyntax(Object value)
value - the value of some attribute with the syntax
public void assertSyntax(Object value)
throws LdapException
value - the value of some attribute with the syntax
LdapException - if the value does not conform to the attribute syntax.public void setSchemaManager(SchemaManager schemaManager)
schemaManager - the schemaManager to storepublic boolean equals(Object o)
equals in interface SchemaObjectequals in class LoadableSchemaObjectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||