Justin Deoliveira wrote:
Question about nillable attributes. The latest geoapi model changes
have moved the isNillable() method from The type to its descriptor.
Which makes sense,
Aside: it was only part of type by way of assisting those working
against the SimpleFeature complex type.
however it begs the question that when the descriptor is null (ie.
this attribute is not contained within another attribute) do we
assume that isNillable() is true?
It almost does not matter what we assume - seriously. Nillable was only
about what role the value plays in a larger context, since there is no
larger context we basically have no information - so isNillable() true
If so, what about a convenience method on Attribute that woudl do the
following:
boolean nillable() {
if (getDescriptor() == null)
return true; not contained within another attribute
return getDescriptor().isNillable();
}
Sounds good,
Jody
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel