Exemplo n.º 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>
 }
Exemplo n.º 2
0
 public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
   writer.setValue(toString(source));
 }