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

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

public class AcceptAllSyntaxChecker
extends java.lang.Object
implements SyntaxChecker

A SyntaxChecker implementation which accepts all values as valid.

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

Constructor Summary
AcceptAllSyntaxChecker(java.lang.String oid)
          Creates a SyntaxChecker which accepts all values.
 
Method Summary
 void assertSyntax(java.lang.Object value)
          Does nothing but return immediately and no exceptions are ever thrown.
 java.lang.String getSyntaxOid()
          Gets the OID of the attribute syntax.
 boolean isValidSyntax(java.lang.Object a_value)
          Returns true every time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptAllSyntaxChecker

public AcceptAllSyntaxChecker(java.lang.String oid)
Creates a SyntaxChecker which accepts all values.

Parameters:
oid - the oid of the Syntax this checker is associated with
Method Detail

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 a_value)
Returns true every time.

Specified by:
isValidSyntax in interface SyntaxChecker
Parameters:
a_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)

assertSyntax

public void assertSyntax(java.lang.Object value)
                  throws javax.naming.NamingException
Does nothing but return immediately and no exceptions are ever thrown.

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)


Copyright © 2003-2006 . All Rights Reserved.