On 16/07/12 21:17, Stephen Allen wrote:
  An
option may be to make a breaking change in Jena 3 and require Lang
with no String overload.

Come Jena3, absolutely!

If we wanted to make this functionality extensible by end users (but I
don't see this being a common use case), that is also addressed by
having the enum extend an interface (Effective Java Item 34).

[ Stephen is referring to:

  public enum BasicThing implements Thing { }

and extend Thing, not the enum itself. ]

I agree, not a common case, although maybe dispatching on the Lang in a switch statement is the key useage for an enum and then it's an internal matter. Usually, it's just a symbol to label things.

The cases I can think of are JSON-LD, RDFa, GRDDL (?? has other requirements; you have to know it's a GRDDLable document really).

If it's a fixed(ish) list, we can just add everything into the enum and be done.

        Andy

Reply via email to