You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/09/22 12:29:56 UTC

svn commit: r1704548 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/SyntaxChecker.java

Author: elecharny
Date: Tue Sep 22 10:29:54 2015
New Revision: 1704548

URL: http://svn.apache.org/viewvc?rev=1704548&view=rev
Log:
Removed the assertSyntax method

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/SyntaxChecker.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/SyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/SyntaxChecker.java?rev=1704548&r1=1704547&r2=1704548&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/SyntaxChecker.java (original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/SyntaxChecker.java Tue Sep 22 10:29:54 2015
@@ -20,11 +20,6 @@
 package org.apache.directory.api.ldap.model.schema;
 
 
-import org.apache.directory.api.ldap.model.exception.LdapException;
-import org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException;
-import org.apache.directory.api.ldap.model.message.ResultCodeEnum;
-
-
 /**
  * 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
@@ -68,22 +63,6 @@ public abstract class SyntaxChecker exte
 
 
     /**
-     * Asserts whether or not the attribute's value conforms to the attribute
-     * syntax.
-     * 
-     * @param value the value of some attribute with the syntax
-     * @throws LdapException if the value does not conform to the attribute syntax.
-     */
-    public void assertSyntax( Object value ) throws LdapException
-    {
-        if ( !isValidSyntax( value ) )
-        {
-            throw new LdapInvalidAttributeValueException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
-        }
-    }
-
-
-    /**
      * Store the SchemaManager in this instance. It may be necessary for some
      * syntaxChecker which needs to have access to the oidNormalizer Map.
      *