com.cassinidivision.oce.htmlrepresentation
Class C_Content_HTML

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

public class C_Content_HTML
extends Object
implements RenderingFormatter

Default HTML formatter for rendering C_ContentHyperlink instances.
Also contains some shared rendering utility methods.


Constructor Summary
C_Content_HTML()
           
 
Method Summary
static String idAttribute(C_Content someContent)
          Create a HTML "ID=<>" argument for various constructs (HTML 4.0 onwards).
static String nameAttribute(C_Content someContent)
          Create a HTML "NAME=<>" argument for various constructs (pre-HTML 4.0).
 Object representationForObject(Object anObject, RenderingContext aContext)
          Build a rendered representation of an object, taking into account any contextual information provided.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C_Content_HTML

public C_Content_HTML()
Method Detail

nameAttribute

public static String nameAttribute(C_Content someContent)
Create a HTML "NAME=<>" argument for various constructs (pre-HTML 4.0).

Parameters:
someContent - Input content.
Returns:
String describing the rendered NAME argument.

idAttribute

public static String idAttribute(C_Content someContent)
Create a HTML "ID=<>" argument for various constructs (HTML 4.0 onwards).

Parameters:
someContent - Input content.
Returns:
String describing the rendered ID argument.

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.