Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community
Interface DocumentFieldFormatter


public interface DocumentFieldFormatter

Document field formatters format a document field for display to the end user. For example, a formatter might format numbers for a user in a US locale as 1,2345.01 but in another locale as 1 2345,00.


Method Summary
 String format(String value, User user)
          Format a document field for display to the end user with the given AuthToken.
 

Method Detail

format

String format(String value,
              User user)
Format a document field for display to the end user with the given AuthToken.

Parameters:
value - the value to format.
user - the user to format the document field for.
Returns:
a formatted String for the document field getValue.

Clearspace Project Page

Copyright © 1999-2007 Jive Software.