directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: [Boolean Valued Attributes] Should Java's "true" work?
Date Fri, 22 Jun 2007 22:42:49 GMT
Super - Thanks Martin and Emmanuel!  Have a terrific weekend,
- Ole



Emmanuel Lecharny wrote:
> Oh, very TRUE, Martin.
> 
> The syntax checker will throw an exception if you inject 'true' or 'false'.
> 
> This is compliant with the RFC...
> 
> Thanks Martin !
> 
> On 6/23/07, Martin Alderson <martin.alderson@salfordsoftware.co.uk> wrote:
>> Ole Ersoy wrote:
>> > Emmanuel Lecharny wrote:
>> >> System.out.println( true ) will *always print "true"/
>> >>
>> >> Ok, which attributeType are you using ? It seems that it might be an
>> >> H/R attribute, so in tis case, you must do :
>> >> attributes.put( "yourHRattribute", Boolean.TRUE.toString() );
>> >
>> > Hmmm - now that you mention it, it's a custom attributeType entry.
>> > Maybe when adding AttributeType entries that have the Boolean syntax I
>> > should set human readable attribute to false.  I'll give it a shot.
>>
>> I think that would have to be attributes.put( "yourHRattribute",
>> Boolean.TRUE.toString().toUpperCase() ); too.
>>
>> Martin
>>
> 
> 

Mime
View raw message