Justin Deoliveira ha scritto: > Hi all, > > The method in question always returns 1 even though the field on the > class is mutable. I would like to change the method to return the actual > field, however I am weary of doing so. > > Given our feature model I understand the feature model. But I cant > imagine any code actually depends on this behavior, as the model ignores > it internally. > > My rationale for doing so is that I need the attribute type to carry > enough information to be able to encode it in a gml schema.
I'm not sure I understand... getMinOccurs = 1 implies the attributes will always have a single value (which means also it's required, otherwise minOccurs would have to be 0, no, which is ok for primitives, but not for objects?). MinOccurs > 1 would imply the attribute is really a collection, but I guess in this case we would declare the attribute type as String[]... oh well, it could cover the case where we do return a collection, since we cannot declare we return a List<String> (not even in java 5 I guess due to generic erasure at run time?). What was your question anyways? :-p Cheers Andrea ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
