com.cassinidivision.oce.htmlrepresentation
Class HTMLFormatter

java.lang.Object
  extended bycom.cassinidivision.oce.htmlrepresentation.HTMLFormatter
All Implemented Interfaces:
RenderingFormatter

public class HTMLFormatter
extends Object
implements RenderingFormatter

The default HTML formatter class for rendering OCE hierarchical content.


Constructor Summary
HTMLFormatter()
           
 
Method Summary
 RenderingFormatter formatterForObject(Object anObject)
          Retrieve the OCE content class-specific formatter for the requested OCE content object.
 Object representationForObject(Object anObject, RenderingContext aContext)
          Build a rendered representation of an object, taking into account any contextual information provided.
static HTMLFormatter sharedInstance()
          Retrieve the default shared HTML formatter instance (singleton).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLFormatter

public HTMLFormatter()
Method Detail

sharedInstance

public static HTMLFormatter sharedInstance()
Retrieve the default shared HTML formatter instance (singleton).

Returns:
The shared HTML formatter.

formatterForObject

public RenderingFormatter formatterForObject(Object anObject)
Retrieve the OCE content class-specific formatter for the requested OCE content object.


representationForObject

public Object representationForObject(Object anObject,
                                      RenderingContext aContext)
Description copied from interface: RenderingFormatter
Build a rendered representation of an object, taking into account any contextual information provided.

Specified by:
representationForObject in interface RenderingFormatter
Parameters:
anObject - The object from which to build a representation.
aContext - The environment or context in which to build the representation.
Returns:
The new representation.