Hi Nick, I realize this is ancient, but did you get any further with it? (didn't see a response when searching the list)
My vote would be to always store the value as close to the spec as possible, so integers in this case, then work out a way for pulling out a localized 'display' string of that value. Regards, Ray > On Dec 14, 2014, at 11:54 PM, Nick Burch <n...@apache.org> wrote: > > Hi All > > I'm trying to add photoshop:ColorMode as a new Metadata Property. It's on > page 32 of the XMP spec part 2: > http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/cc-201306/XMPSpecificationPart2.pdf > > photoshop:ColorMode > * Closed Choice of Integer > * The colour mode. One of: > 0 = Bitmap > 1 = Gray scale > 2 = Indexed colour > 3 = RGB colour > 4 = CMYK colour > 7 = Multi-channel > 8 = Duotone > 9 = LAB colour > > My problem is that Property.internalClosedChoise stores the choices as a set, > not an ordered list, so I have no easy way to get from a 3 to "RGB Colour" or > vice-versa > > Anyone have any thoughts on the right way to handle these indexed property > types? I think we want to be setting String values like "Duotone", to be > helpful for external applications, but we want to not loose that that > corresponds to a value of 8, especially when reading an 8 from the file in > the parser > > Any thoughts? > > Nick