|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.schema.RegexSyntaxChecker
public class RegexSyntaxChecker
A SyntaxChecker implemented using Perl5 regular expressions to constrain values.
| Constructor Summary | |
|---|---|
RegexSyntaxChecker(java.lang.String oid,
java.lang.String[] matchExprArray)
Creates a Syntax validator for a specific Syntax using Perl5 matching rules for validation. |
|
| Method Summary | |
|---|---|
void |
assertSyntax(java.lang.Object value)
Asserts whether or not the attribute's value conforms to the attribute syntax. |
java.lang.String |
getSyntaxOid()
Gets the OID of the attribute syntax. |
boolean |
isValidSyntax(java.lang.Object value)
Determines if the attribute's value conforms to the attribute syntax. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexSyntaxChecker(java.lang.String oid,
java.lang.String[] matchExprArray)
oid - the oid of the Syntax values checkedmatchExprArray - the array of matching expressions| Method Detail |
|---|
public java.lang.String getSyntaxOid()
SyntaxChecker
getSyntaxOid in interface SyntaxCheckerSyntaxChecker.getSyntaxOid()public boolean isValidSyntax(java.lang.Object value)
SyntaxChecker
isValidSyntax in interface SyntaxCheckervalue - the value of some attribute with the syntax
SyntaxChecker.isValidSyntax(java.lang.Object)
public void assertSyntax(java.lang.Object value)
throws javax.naming.NamingException
SyntaxChecker
assertSyntax in interface SyntaxCheckervalue - the value of some attribute with the syntax
javax.naming.NamingException - if the value does not conform to the attribute syntax.SyntaxChecker.assertSyntax(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||