Package de.hybris.platform.commons.jalo
package de.hybris.platform.commons.jalo
-
ClassDescriptionThis extension contains some useful logic for the platform.
These are:
Formatter (via Velocity, FOP, etc.) Translator (Supports translation of e.g.This is a sample implementation for the abstract classItemFormatter.This class Document is always bound to aFormat.This Implementation of theFormatterclass transform a given xml-fo file (as parameter of the methodFOPFormatter.format(Media)) with the given xslt file (the media of this class, useMedia.setData(java.io.DataInputStream)andMedia.getData()for access) into a pdf file (stored as return media)The main Item/Class of the extension commons.
The Format item contains oneItemFormatter(set withGeneratedFormat.setInitial(de.hybris.platform.commons.jalo.ItemFormatter)) and a Collection with at least oneMediaFormatter(set withGeneratedFormat.setChained(java.util.Collection)).
After calling the methodFormat.format(Item)there will be an ItemDocumentattached to this instance which contains the result of the format process (as media).Abstract super class of all Formatter classes.Generated class for typeCommonsManager.Generated class for typeCustomOrder2XML.Generated class for typeDocument.Generated class for typeFOPFormatter.Generated class for typeFormat.Generated class for typeFormatter.Generated class for typeItemFormatter.Generated class for typeMediaFormatter.Generated class for typeVelocityFormatter.Generated class for typeXMLTransformFormatter.This abstract class ItemFormatter is for transforming an item of the platform into a media (for example the media could contain a xml file).This abstract class MediaFormatter allows transforming media types (fromItemFormatter) or other MediaFormatter(s)) into other media types (for example: pdfs).This class provides Exception handling for XSL Based transformationsFormats the given item with a given Velocity template.Transforms the specified XML file (parameter media of the format method) data into a new media via the given XSL script ( set viaFormatter.getScript(de.hybris.platform.jalo.SessionContext)).