directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: Is 'null' ever valid syntax?
Date Fri, 04 Jun 2010 14:37:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/04/10 16:32, Stefan Seelmann wrote:
> 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.

I have no idea about the checkers, but an empty string isn't a null string.

Regards
Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwJD8IACgkQ2lZVCB08qHEKmQCdEhuBtJn4Z51HTMQ//dUOm7vz
w5IAn13NQhOfhJWOY2879a4ILMPzWEPm
=SUik
-----END PGP SIGNATURE-----

Mime
View raw message