1 package com.loribel.commons.abstraction; 2 3 import org.w3c.dom.*; 4 5 /*** 6 * Interface to object that can build Node from an object. 7 * No default implementation. 8 * This interface is just made to facilitate the settings of other class. 9 * 10 * @author Grégory Borelli 11 */ 12 public interface GB_NodeFactory 13 { 14 15 /*** 16 * Return a new node to represent the model <tt>a_model</tt>. 17 * 18 * @param a_model Object - the data to represent into an XML Node 19 * @param a_document Document - the document used to create the node 20 * 21 * @return Node 22 */ 23 Node newNode( 24 Object a_model, 25 Document a_document); 26 27 }