Class Formatter

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    GeneratedItemFormatter, GeneratedMediaFormatter

    public abstract class Formatter
    extends GeneratedFormatter
    Abstract super class of all Formatter classes. Contains the attribute outputMimeType. Each Formatter holds internal a datascript (e.g. the XSL Script or a velocity template) which have to be set by the initialisation of the Formatter
    See Also:
    Serialized Form
    • Constructor Detail

      • Formatter

        public Formatter()
    • Method Detail

      • getScript

        public java.lang.String getScript​(SessionContext ctx)
        Description copied from class: GeneratedFormatter
        Generated method - Getter of the Formatter.script attribute.
        Specified by:
        getScript in class GeneratedFormatter
        Returns:
        the content (mostly the xsl script) of this Formatter as String
      • setScript

        public void setScript​(SessionContext ctx,
                              java.lang.String txt)
        Sets the Script for the given Formatter.
        Specified by:
        setScript in class GeneratedFormatter
        Parameters:
        txt - The script to set.
        ctx - the session context