publisherxmlmarshaller.java
来自「OR Mapping工具」· Java 代码 · 共 50 行
JAVA
50 行
package org.ephman.junit.generated;import org.ephman.xml.XmlNode;import java.util.Vector;/** * a XmlMarshaller for Publisher * @version Thu Jun 30 15:12:42 EDT 2005 * @author generated by Dave Knull */public class PublisherXmlMarshaller { public static String marshal (Publisher publisher) { return marshal (publisher, "Publisher", ""); } public static String marshal (Publisher publisher, String node_name, String indent_tabs) { StringBuffer result = new StringBuffer (indent_tabs).append ("<").append(node_name); result.append (marshalAttributes (publisher)); String these_els = marshalElements (publisher, indent_tabs+"\t"); if (these_els != null && these_els.length()>0) result.append (these_els).append ("\n").append (indent_tabs).append ("</").append (node_name).append (">\n"); else result.append ("/>"); return result.toString (); } public static Publisher unmarshal (XmlNode thisNode) { Publisher publisher = new Publisher (); unmarshal (thisNode, publisher); return publisher; } /** unmarshal passing Xmlnode + pre-formed * Publisher to populate */ public static void unmarshal (XmlNode thisNode, Publisher publisher) { } protected static String marshalAttributes (Publisher publisher) { StringBuffer result = new StringBuffer (); return result.toString (); } protected static String marshalElements (Publisher publisher, String indent_tabs) { StringBuffer result = new StringBuffer (indent_tabs); return result.toString (); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?