|
||||||||||
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(String oid,
String[] matchExprArray)
Creates a Syntax validator for a specific Syntax using Perl5 matching rules for validation. |
Method Summary | |
---|---|
void |
assertSyntax(Object value)
Asserts whether or not the attribute's value conforms to the attribute syntax. |
String |
getSyntaxOid()
Gets the OID of the attribute syntax. |
boolean |
isValidSyntax(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(String oid, String[] matchExprArray)
oid
- the oid of the Syntax values checkedmatchExprArray
- the array of matching expressionsMethod Detail |
---|
public String getSyntaxOid()
SyntaxChecker
getSyntaxOid
in interface SyntaxChecker
SyntaxChecker.getSyntaxOid()
public boolean isValidSyntax(Object value)
SyntaxChecker
isValidSyntax
in interface SyntaxChecker
value
- the value of some attribute with the syntax
SyntaxChecker.isValidSyntax(java.lang.Object)
public void assertSyntax(Object value) throws NamingException
SyntaxChecker
assertSyntax
in interface SyntaxChecker
value
- the value of some attribute with the syntax
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 |