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

All Known Implementing Classes:
AcceptAllSyntaxChecker, BinarySyntaxChecker, 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: 434411 $
Author:
Apache Directory Project

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

Method Detail

getSyntaxOid

String getSyntaxOid()
Gets the OID of the attribute syntax.

Returns:
the object identifier of the Syntax this SyntaxChecker validates

isValidSyntax

boolean isValidSyntax(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

void assertSyntax(Object a_value)
                  throws 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:
NamingException - if the value does not conform to the attribute syntax.


Copyright © 2004-2012. All Rights Reserved.