directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: Is 'null' ever valid syntax?
Date Fri, 04 Jun 2010 14:32:49 GMT
Felix Knecht wrote:
> I suppose this is either always true or false, right?
> 
> if ( attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null ) )
> 
> http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.html#916

No. For example the directory string syntax doesn't allow an empty
string, so in that case the syntax checker returns false. But the IA5
string syntax allows an empty string, in that case the syntax checker
returns false.

Kind Regards,
Stefan


Mime
View raw message