Example #1
0
 public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
   Font font = (Font) source;
   Map attributes = font.getAttributes();
   writer.startNode("attributes"); // <attributes>
   context.convertAnother(attributes);
   writer.endNode(); // </attributes>
 }
 public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
   writer.setValue(toString(source));
 }