コード例 #1
0
ファイル: FontConverter.java プロジェクト: lasbreyn/grouper
 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>
 }
コード例 #2
0
 public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
   writer.setValue(toString(source));
 }