com.hammurapi.render
Class MultiFileJxpRenderer

java.lang.Object
  extended by com.hammurapi.render.MultiFileJxpRenderer
All Implemented Interfaces:
MultiFileRenderer, RenderingConstants

public class MultiFileJxpRenderer
extends java.lang.Object
implements MultiFileRenderer, RenderingConstants

If profile is "outline" or "outline_http" this renderer also renders e<element id>.html with default profile and e<element id>_contents.html with contents or contents_http profile.

Author:
Pavel Vlasov

Field Summary
 
Fields inherited from interface com.hammurapi.render.RenderingConstants
CONTENTS, CONTENTS_HTTP, GIF, IMAGES, OUTLINE, OUTLINE_HTTP, RENDER_HELPER, RENDER_START, TO_RENDER
 
Constructor Summary
MultiFileJxpRenderer(java.lang.Object obj)
           
 
Method Summary
 java.util.List<java.io.File> render(java.io.File out, java.util.Map<java.lang.String,java.lang.Object> environment, Context context, java.lang.String profile, java.util.Locale locale)
          Renders to the primary file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiFileJxpRenderer

public MultiFileJxpRenderer(java.lang.Object obj)
Method Detail

render

public java.util.List<java.io.File> render(java.io.File out,
                                           java.util.Map<java.lang.String,java.lang.Object> environment,
                                           Context context,
                                           java.lang.String profile,
                                           java.util.Locale locale)
                                    throws RenderingException
Description copied from interface: MultiFileRenderer
Renders to the primary file. May create additional files. the primary file.

Specified by:
render in interface MultiFileRenderer
Parameters:
out - Primary output file.
environment - Environment.
context - Context
profile - Rendering "profile", e.g. "outline", "embedded". Can be null.
locale - Locale. If null then the system default locale is used.
Returns:
List of created files, the primary file always comes first.
Throws:
RenderingException