From: Falko B. <fa...@po...> - 2014-09-10 14:46:14
|
Hi all, maybe and hopefully someone can help me with the following questions regarding complex features and properties. Question: What is the semantic of: feature.getProperty("foo") == null ? 1.: the property is not initialized 2.: the property is not initialized *or* it does not exist in the type at all Until today I was assuming that 1. is the correct answer. That is, I always get a Property instance back if this property exists in the type. In case the value is not initialized then getValue() returns null. But what is the semantantic for complex property containing other properties then? If 1. is true then a complex property always returns child Property instances (even if they are not initialized and getValue() returns null). So, what is the proper way to determine if a complex Property is "not initialized" (null)? Thanks for any help! -Falko -- Falko Bräutigam http://polymap.org/polymap3 |