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

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.syntax.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: 664290 $
Author:
Apache Directory Project

Constructor Summary
AcceptAllSyntaxChecker()
           
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 value)
          Returns true every time.
 void setSyntaxOid(java.lang.String oid)
           
 
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

AcceptAllSyntaxChecker

public AcceptAllSyntaxChecker()
Method Detail

setSyntaxOid

public void setSyntaxOid(java.lang.String oid)

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 OID syntax
See Also:
SyntaxChecker.getSyntaxOid()

isValidSyntax

public boolean isValidSyntax(java.lang.Object value)
Returns true every time.

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)

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-2011 Apache Software Foundation. All Rights Reserved.