org.apache.directory.shared.ldap.schema
Interface SyntaxChecker

All Known Implementing Classes:
AcceptAllSyntaxChecker, BinarySyntaxChecker, DnSyntaxChecker, RegexSyntaxChecker

public interface 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.

Version:
$Rev: 379008 $
Author:
Apache Directory Project

Method Summary
 void assertSyntax(java.lang.Object a_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 a_value)
          Determines if the attribute's value conforms to the attribute syntax.
 

Method Detail

getSyntaxOid

public java.lang.String getSyntaxOid()
Gets the OID of the attribute syntax.

Returns:
the object identifier of the Syntax this SyntaxChecker validates

isValidSyntax

public boolean isValidSyntax(java.lang.Object a_value)
Determines if the attribute's value conforms to the attribute syntax.

Parameters:
a_value - the value of some attribute with the syntax
Returns:
true if the value is in the valid syntax, false otherwise

assertSyntax

public void assertSyntax(java.lang.Object a_value)
                  throws javax.naming.NamingException
Asserts whether or not the attribute's value conforms to the attribute syntax.

Parameters:
a_value - the value of some attribute with the syntax
Throws:
javax.naming.NamingException - if the value does not conform to the attribute syntax.


Copyright © 2003-2006 . All Rights Reserved.