com.publicobject.misc.xml.Converter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glazedlists_java15 Show documentation
Show all versions of glazedlists_java15 Show documentation
Event-driven lists for dynamically filtered and sorted tables
The newest version!
/* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package com.publicobject.misc.xml;
/**
* A Converter is a simple interface to convert raw String data collected by a
* {@link Parser} into a more usable, type-safe Object appropriate for use in
* the Objects being created from the XML Document.
*
* Common example include converting date strings to {@link java.util.Date}
* objects and integer strings to {@link Integer} objects.
*
* @author James Lemieux
*/
public interface Converter {
/**
* Convert the given value
to a more appropriate, type-safe
* value for use in the Objects being created from the XML Document.
*/
public T convert(S value);
}