Ok, so it sounds like 0 or 1 should be acceptable which will work for
me. Thanks David.

-Justin

David Zwiers wrote:
> Hmm, I'm a bit lost as to why I would force '1' to be returned, and not
> just default the value in the constructor. Probably just me getting
> sloppy at the time.
>  
> For geotools' feature model (unless it changed), the value will ALWAYS
> be 0 or 1 (the maximum will always be 1).
> 
>  
> On 11/23/06, *Andrea Aime* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     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
> 
> 
> 
> !DSPAM:1004,4565d2ec111436309890654!
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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
> 
> !DSPAM:1004,4565d2ec111436309890654!
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
> 
> 
> !DSPAM:1004,4565d2ec111436309890654!


-- 
Justin Deoliveira
[EMAIL PROTECTED]
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
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

Reply via email to