Elexis API documentation
Version 2.1.6 as of December 11 2011

de.ralfebert.rcputils.properties
Interface IValueFormatter<FROM,TO>

All Known Implementing Classes:
PropertyValueFormatter, StringValueFormatter

public interface IValueFormatter<FROM,TO>

An IValueFormatter describes a conversion for a value in both directions. Formatters are used for display and editing, that's why both directions are there. If you implement a formatter that's only for display, let the parse method throw an UnsupportedOperationException.

Author:
Ralf Ebert

Method Summary
 TO format(FROM obj)
           
 FROM parse(TO obj)
           
 

Method Detail

format

TO format(FROM obj)

parse

FROM parse(TO obj)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis