org.apache.directory.shared.ldap.schema
Class BinarySyntaxChecker

java.lang.Object
  extended byorg.apache.directory.shared.ldap.schema.BinarySyntaxChecker
All Implemented Interfaces:
SyntaxChecker

public class BinarySyntaxChecker
extends java.lang.Object
implements SyntaxChecker

A binary value (universal value acceptor) syntax checker.

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

Field Summary
static SyntaxChecker INSTANCE
          an instance so we don't have to create one every time
static java.lang.String OID
          the Apache assigned internal OID for this syntax checker
 
Method Summary
 void assertSyntax(java.lang.Object value)
          Asserts whether or not the attribute's value conforms to the attribute syntax.
static SyntaxChecker getSingletonInstance()
          Gets the singleton instance for this class.
 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
 

Field Detail

INSTANCE

public static final SyntaxChecker INSTANCE
an instance so we don't have to create one every time


OID

public static final java.lang.String OID
the Apache assigned internal OID for this syntax checker

See Also:
Constant Field Values
Method Detail

getSingletonInstance

public static SyntaxChecker getSingletonInstance()
Gets the singleton instance for this class.

Returns:
the singleton instance

assertSyntax

public void assertSyntax(java.lang.Object value)
                  throws javax.naming.NamingException
Description copied from interface: SyntaxChecker
Asserts whether or not the attribute's value conforms to the attribute syntax.

Specified by:
assertSyntax in interface SyntaxChecker
Parameters:
value - the value of some attribute with the syntax
Throws:
javax.naming.NamingException - if the value does not conform to the attribute syntax.
See Also:
SyntaxChecker.assertSyntax(Object)

getSyntaxOid

public java.lang.String getSyntaxOid()
Description copied from interface: SyntaxChecker
Gets the OID of the attribute syntax.

Specified by:
getSyntaxOid in interface SyntaxChecker
Returns:
the object identifier of the Syntax this SyntaxChecker validates
See Also:
SyntaxChecker.getSyntaxOid()

isValidSyntax

public boolean isValidSyntax(java.lang.Object value)
Description copied from interface: SyntaxChecker
Determines if the attribute's value conforms to the attribute syntax.

Specified by:
isValidSyntax in interface SyntaxChecker
Parameters:
value - the value of some attribute with the syntax
Returns:
true if the value is in the valid syntax, false otherwise
See Also:
SyntaxChecker.isValidSyntax(Object)


Copyright © 2003-2006 . All Rights Reserved.