All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jsftoolkit.utils.serial.DomSerializerManager Maven / Gradle / Ivy

Go to download

The core classes for the JSF Toolkit Component Framework. Includes all framework base and utility classes as well as component kick-start/code-generation and registration tools. Also includes some classes for testing that are reused in other projects. They cannot be factored out into a separate project because they are referenced by the tests and they reference this code (circular dependence).

The newest version!
package com.jsftoolkit.utils.serial;

import org.w3c.dom.Document;
import org.w3c.dom.Node;

/**
 * 
 * @author noah
 * 
 */
public interface DomSerializerManager extends Serializer {

	/**
	 * Called by {@link DomSerializer}s when they wish to delegate processing
	 * of a branch to another serializer. The manager is expected to pick
	 * another serializer to continue processing.
	 * 
	 * @param obj
	 *            the object to convert
	 * @param doc
	 *            the document
	 * @return the node
	 */
	Node nextToDom(Object obj, Document doc);

	/**
	 * For converting attributes to string values.
	 */
	String serialize(Object obj);
}