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

com.floreysoft.jmte.NamedRenderer Maven / Gradle / Ivy

Go to download

To build and locally install jar, javadoc and sources, please use: mvn clean javadoc:jar source:jar install -Dmaven.test.skip=true Tested on Maven 2.0.9, JDK 1.7

There is a newer version: 7.0.3
Show newest version
package com.floreysoft.jmte;

import java.util.Locale;


/**
 * A renderer addressed by its name, not by its type.
 * 
 * @see Renderer
 * @see RenderFormatInfo
 */
public interface NamedRenderer {
	/**
	 * Renders an object of a type supported by the renderer.
	 * 
	 * @param o
	 *            the object to render
	 * @param format
	 *            anything that tells the renderer how to do its work
	 * @param locale
	 *            the locale used in transformation
	 * @return the rendered object
	 */
	public String render(Object o, String format, Locale locale);

	/**
	 * Gets the name of the renderer.
	 */
	public String getName();

	/**
	 * Gives information about what can be passed as a format parameter to the
	 * {@link #render(Object, String)} method.
	 */
	public RenderFormatInfo getFormatInfo();

	/**
	 * Returns which classes are support by this renderer, i.e. which ones you
	 * can pass to the {@link #render(Object, String)} method.
	 */
	public Class[] getSupportedClasses();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy