On Dec 10, 2009, at 10:29 AM, Mattmann, Chris A (388J) wrote: > Hi Grant, > > On 12/10/09 3:16 AM, "Grant Ingersoll" <gsing...@apache.org> wrote: > >> >> I'm not sure this works, as you need to specify the type of the subfield, >> which is what Option B does. I don't think inheritance is the what is going >> on here, more like delegation, and that isn't necessarily needed for all >> implementations, but just happens to be how it is done for the example in >> question. People implementing FieldTypes could certainly just encode things >> the way they want using their own internal mechanism (or the existing ones, >> but w/o configuration). > > Well if that doesn't work then option A doesn't work either because it > doesn't specify the subFieldType. I'm also not sure that option B works too > because what if there are multiple subFieldTypes? For instance, what if I > want to store one of the polyField's subTypes as a tint,and the other as a > regular int? How would that be specified. > > Either way you need some combination of A + B, or (my preference) B + C.
I have Option B implemented at this point, minus a few tests passing. I'll put up a patch as soon as I get it working.