Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums@DefaultValue never tells if value is empty!
https://www.eclipse.org/forums/index.php/mv/msg/671436/1269957/#msg_1269957
when I mark a property as
@DefaultValue(text = "Hello")
I can never tell whether it is written explicitly as "Hello" or it doesn't exist and the framework is just passing me the default value!
As I understand, the ".content()" method should give me the written value itself, while ".content(true)" gives the written value, or the default value if the property doesn't exist or has empty value. Is that correct?
I understand the same concept applies to ".text()" and ".text(true)".
The problem is, once a DefaultValue annotation is there, ".content" and ".content(true)" are identical! How can I distinguish between the two cases?]]>Hazem ELRAFFIEE2014-03-12T10:55:23-00:00Re: @DefaultValue never tells if value is empty!
https://www.eclipse.org/forums/index.php/mv/msg/671436/1269975/#msg_1269975
This method returns true if empty or has default value
Sorry for disturbance ]]>Hazem ELRAFFIEE2014-03-12T11:17:25-00:00Re: @DefaultValue never tells if value is empty!
https://www.eclipse.org/forums/index.php/mv/msg/671436/1270116/#msg_1270116
Konstantin Komissarchik2014-03-12T14:09:20-00:00Re: @DefaultValue never tells if value is empty!
https://www.eclipse.org/forums/index.php/mv/msg/671436/1270611/#msg_1270611
Thanks for the clarification!]]>Hazem ELRAFFIEE2014-03-13T08:09:02-00:00