Class XhtmlFormatter

java.lang.Object
rife.cmf.format.XhtmlFormatter
All Implemented Interfaces:
Formatter<String,String>

public class XhtmlFormatter extends Object implements Formatter<String,String>
Formats raw Content data as valid Xhtml.

No content attributes are supported:

Since:
1.0
See Also:
  • Constructor Details

    • XhtmlFormatter

      public XhtmlFormatter()
  • Method Details

    • format

      public String format(Content content, ContentTransformer<String> transformer) throws FormatException
      Description copied from interface: Formatter
      Formats raw data and returns it in a DataType that's supported by the back-end stores.
      Specified by:
      format in interface Formatter<String,String>
      Parameters:
      content - a Content instance that contains the raw data with additional information that describes the storage and formatting of the processed data
      transformer - a transformer that will be used to modify raw data after it has been loaded; or

      null if the data shouldn't be transformed

      Returns:
      the result of the formatting of the raw data
      Throws:
      FormatException