@Override public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { return Quality.fromName(reader.getValue()); }
@Override public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) { Quality q = (Quality) source; writer.setValue(q == null ? "" : q.toString()); }