01: package com.jeta.forms.store.jml;
02:
03: import com.jeta.forms.store.jml.dom.JMLDocument;
04: import com.jeta.forms.store.jml.dom.JMLNode;
05:
06: public class StringSerializer implements JMLSerializer {
07:
08: public JMLNode serialize(JMLDocument document, Object obj)
09: throws JMLException {
10: if (obj == null)
11: return document.createTextNode("");
12: else
13: return document.createTextNode(obj.toString());
14: }
15:
16: }
|