wsrcom.izforge.izpack.PackFilekw$ Z isDirectoryJlengthJmtimeJoffsetInPreviousPackIoverrideZ pack200JarL additionalstLjava/util/Map;L conditiontLjava/lang/String;L osConstraintstLjava/util/List;LpreviousPackIdq~L relativePathq~L targetPathq~xpG'*ppsrjava.util.ArrayListxaIsizexpw xpptk$INSTALL_PATH/Hammurapi/reporters/html/doc/api/com/hammurapi/review/report/html/class-use/HtmlReporter.htmlz Uses of Class com.hammurapi.review.report.html.HtmlReporter

Uses of Class
com.hammurapi.review.report.html.HtmlReporter

No usage of com.hammurapi.review.report.html.HtmlReporter


zG

sq~'*$ppq~pptb$INSTALL_PATH/Hammurapi/reporters/html/doc/api/com/hammurapi/review/report/html/package-frame.htmlz com.hammurapi.review.report.html com.hammurapi.review.report.html
Classes 
HtmlReporter
sq~ '*ppq~ppt]$INSTALL_PATH/Hammurapi/reporters/html/src/com/hammurapi/review/report/html/HtmlReporter.javazpackage com.hammurapi.review.report.html; import java.io.File; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import com.hammurapi.config.ObjectDefinition; import com.hammurapi.config.bootstrap.ConfigurationException; import com.hammurapi.config.runtime.ConfigurationContext; import com.hammurapi.render.RenderingConstants; import com.hammurapi.render.RenderingException; import com.hammurapi.render.ReportGenerator; import com.hammurapi.review.Module; import com.hammurapi.review.ObservationSink; import com.hammurapi.review.Reporter; import com.hammurapi.review.ReviewException; import com.hammurapi.review.Summary; /** * This class produces review report in HTML format. * @author Pavel Vlasov * */ public class HtmlReporter implements Reporter, com.hammurapi.config.runtime.Component { private static final Logger logger = Logger.getLogger(HtmlReporter.class.getName()); private Summary sumzmary; private boolean http; private File outputDir; private String title; private long start; private ConfigurationContext context; /** * @param http True indicates that report will be served over http and AJAX can be used. */ public HtmlReporter(File outputDir, String title, boolean http) { summary = new Summary(); this.outputDir = outputDir; this.title = title; this.http = http; this.start = System.currentTimeMillis(); File[] children = outputDir.listFiles(); if (children!=null) { for (File child: children) { delete(child); } } } private void delete(File file) { if (file.isDirectory()) { for (File child: file.listFiles()) { delete(child); } } file.delete(); } @Override public void close() throws ReviewException { ReportGenerator reportGenerator = new ReportGenerator(); reportGenerator.setContext(context); Map env = new HashMap(); env.put(RendzeringConstants.RENDER_START, start); reportGenerator.setEnvironment(env); try { reportGenerator.generate(summary, outputDir, title, http); } catch (RenderingException e) { logger.log(Level.SEVERE, "Failed to render report: "+e, e); throw new ReviewException(e); } } @Override public synchronized ObservationSink createObservationSink(Module module) throws ReviewException { return summary.getObservationSink(module); } @Override public void onException(Exception e) { summary.onException(e); } @Override public void init(ConfigurationContext context) throws ConfigurationException { this.context = context; } } sq~ '*ppq~pptO$INSTALL_PATH/Hammurapi/reporters/html/lib/com.hammurapi.review.report.html.jarzPK Yy< META-INF/PK Xy<&\ YfMETA-INF/MANIFEST.MFMLK-. K-*ϳR03rCq,HLHU%AE%)N@zIF y Eŕ% yz\\PK Yy<com/PK Yy<com/hammurapi/PK Yy<com/hammurapi/review/PK Yy<com/hammurapi/review/report/PK Yy<!com/hammurapi/review/report/html/PK Yy<>`3com/hammurapi/review/report/html/HtmlReporter.classW[T~lwfn((5 1Hh0JAK^+\3wzj%-m.6] `Bj'}䧤9w0a9;|{o9]F)5|81+l<U9u|$GcOıI9Oш|xdE _kWU _c\uC6ߔͷ6qm~k Dlgvt.FYvZʬlzL lp telzfҮ9oW<[NM_63ްyYrA_{pk1ON!gVmrbvt'i'cSk02\ww]4d9N7g]ys^NgsF}+zwGI0+F^(3 ?0L3mzlK\m; 5fL7}FufZ+J7I3g)k5h%kQM7WR{=BKj}V&O35)_7e\SӝW4a${cܙ)JVUOɭ%В(ƴMS:Rƴ@_}) 7?I{պ>E+?Pϯdp6USt31[Sn4@y#:u<>A +Zc8qO-^X'mt<~iZ67 sƒmBg GѯxQ-^w5,XĒ;ZdS1tzN/ :ټcixeWfaZKT*5]?_yc90 lQ>Ui %IWV"U_/xf)ݛQm[scOT@Jj I#gA`zC+wCեAX|93HڼaShrrZV~9%ԁIViHnr\VߘFTəTqΛ˜7m3# z2F^F>t`&jHֈJtj}*G=g%̶%jrEzGĺ@yNιUyC++ʩYӫn7T㲓F^qb ".S|WwdYUϺzVjճX%Z8 XپD3gSKe-!P{T"h;. ֽx5pkn_$ا5iMhn 7iͷsx'Fg@Il"mJ@%w\y(=! #LP1 '9$  @$B$!5T(@m*j0pߤyt DПG$d`/zjp5,)rɆk`3com/hammurapi/review/report/html/HtmlReporter.classPK( sq~')ppq~pptF$INSTALL_PATH/Hammurapi/reporters/html/doc/api/allclasses-noframe.htmlz All Classes All Classes
HtmlReporter
sq~'*3ppq~ppta$INSTALL_PATH/Hammurapi/reporters/html/doc/api/com/hammurapi/review/report/html/package-tree.htmlz com.hammurapi.review.report.html Class Hierarchy

Hierarchy For Package com.hammurapzi.review.report.html

Class Hierarchy



sq~'*Cppq~ppt`$INSTALL_PATH/Hammurapi/reporters/html/doc/api/com/hammurapi/review/report/html/package-use.htmlz Uses of Package com.hammurapi.review.report.html

Uses of Package
com.hammurapi.review.report.html
No usage of com.hammurapi.review.report.html



sq~'*ppq~pptG$INSTALL_PATH/Hammurapi/reporters/html/doc/api/index-files/index-3.htmlz I-Index
z
C H I O

Iz

init(ConfigurationContext<ObjectDefinition>) - Method in class com.hammurapi.review.report.html.HtmlReporter
 

C H I O
sq~'*ppq~ppt=$INSTALL_PATH/Hammurapi/reporters/html/doc/api/stylesheet.cssz/* Javadoc style sheet */ /* Define colors, fonts and other style attributes here to override the defaults */ /* Page background color */ body { background-color: #FFFFFF; color:#000000 } /* Headings */ h1 { font-size: 145% } /* Table colors */ .TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ .TableRowColor { background: #FFFFFF; color:#000000 } /* White */ /* Font used in left-hand frame lists */ .FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } .FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } .FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } /* Navigation bar fonts and colors */ .NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ .NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */z .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} sq~'*ppq~pptA$INSTALL_PATH/Hammurapi/reporters/html/doc/api/overview-tree.htmlz Class Hierarchy

Hierarchy For All Packages

Package Hierarchies:
com.hammurapi.review.report.html

Class Hierarchy



sq~VM'*ppq~ppta$INSTALL_PATH/Hammurapi/reporters/html/doc/api/com/hammurapi/review/report/html/HtmlReporter.htmlz HtmlReporter

com.hammurapi.review.report.html
Class HtmlReporter

java.lang.Object
  extended by com.hammurapi.review.report.html.HtmlReporter
All Implemented Interfaces:
Component<ObjectDefinition>, Reporter<Object>

public class HtmlReporter
extends Object
implements Reporter<Object>, Component<ObjectDefinition>

This class produces review report in HTML format.

Author:
Pavel Vlasov

Constructor Summarzy
HtmlReporter(File outputDir, String title, boolean http)
           
 
Method Summary
 void close()
           
 ObservationSink createObservationSink(Module module)
           
 void init(ConfigurationContext<ObjectDefinition> context)
           
 void onException(Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlReporter

public HtmlReporter(File outputDir,
                    String title,
                    boolean http)
Parameters:
http - True indicates that report will be served over http and AJAX can be used.
Method Detail

close

public void close()
           throws ReviewException
Specified by:
close in interface Reporter<Object>
Throws:
ReviewException

createObservationSink

public ObservationSink createObservationSink(Module module)
                                      throws ReviewException
Specizfied by:
createObservationSink in interface Reporter<Object>
Throws:
ReviewException

onException

public void onException(Exception e)
Specified by:
onException in interface Reporter<Object>

init

public void init(ConfigurationContext<ObjectDefinition> context)
          throws ConfigurationException
Specified by:
init in interface Component<ObjectDefinition>
Throws:
ConfigurationException


sq~"'*ppq~ppt;$INSTALL_PATH/Hammurapi/reporters/html/doc/api/package-listw"com.hammurapi.review.report.html sq~<'*ppq~pptG$INSTALL_PATH/Hammurapi/reporters/html/doc/api/index-files/index-2.htmlz H-Index
z
C H I O

Hz

HtmlReporter - Class in com.hammurapi.review.report.html
This class produces review report in HTML format.
HtmlReporter(File, String, boolean) - Constructor for class com.hammurapi.review.report.html.HtmlReporter
 

C H Iw< O
sq~%|'*rppq~ppt<$INSTALL_PATH/Hammurapi/reporters/html/doc/api/help-doc.htmlz API Help
z

How This API Document Is Organized

This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

Package

Each packazge has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types

Class/Interface

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary

  • Field Detail
  • Constructor Detail
  • Method Detail
Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the ordezr they appear in the source code. This preserves the logical groupings established by the programmer.

Annotation Type

Each annotation type has its own separate page with the following sections:

  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail

Enum

Each enum has its own separate page with the following sections:

  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail

Use

Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parazmeters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

Tree (Class Hierarchy)

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.

Deprecated API

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to izmprovements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

Index

The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

Prev/Next

These links take you to the next or previous class, interface, package, or related page.

Frames/No Frames

These links show and hide the HTML frames. All pages are available with or without frames.

Serialized Form

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

Constant Field Values

The Constant Field Values page lists the static final fields and their values.

This help file applies to API documentation generated using the standard doclet.



sq~9'*ppq~pptD$INSTALL_PATH/Hammurapi/reporters/html/doc/api/resources/inherit.gifw9GIF89a, DrjԐ;߀Q@N;sq~'*$ppq~pptd$INSTALL_PATH/Hammurapi/reporters/html/doc/api/com/hammurapi/review/report/html/package-summary.htmlz com.hammurapi.review.report.html

z

Package com.hammurapi.review.report.html

Class Summary
HtmlReporter This class produces review report in HTML format.
 



sq~'*ppq~pptG$INSTALL_PATH/Hammurapi/reporters/html/doc/api/index-files/index-4.htmlz O-Index
z
C H I O

O

onException(Exception) - Method in class com.hammurapi.review.report.html.HtmlReporter
 

C H I O
sq~l'*Sppq~pptC$INSTALL_PATH/Hammurapi/reporters/html/doc/api/constant-values.htmlz Constant Field Values

Constant Field Values


Contents


sq~#'*ppq~pptj$INSTALL_PATH/Hammurapi/reporters/html/doc/api/src-html/com/hammurapi/review/report/html/HtmlReporter.htmlz
001    package com.hammurapi.review.report.html;
002    
003    import java.io.File;
004    import java.util.HashMap;
005    import java.util.Map;
006    import java.util.logging.Level;
007    import java.util.logging.Logger;
008    
009    import com.hammurapi.config.ObjectDefinition;
010    import com.hammurapi.config.bootstrap.ConfigurationException;
011    import com.hammurapi.config.runtime.ConfigurationContext;
012z    import com.hammurapi.render.RenderingConstants;
013    import com.hammurapi.render.RenderingException;
014    import com.hammurapi.render.ReportGenerator;
015    import com.hammurapi.review.Module;
016    import com.hammurapi.review.ObservationSink;
017    import com.hammurapi.review.Reporter;
018    import com.hammurapi.review.ReviewException;
019    import com.hammurapi.review.Summary;
020    
021    /**
022     * This class produces review report in HTML format.
z023     * @author Pavel Vlasov
024     *
025     */
026    public class HtmlReporter implements Reporter<Object>, com.hammurapi.config.runtime.Component<ObjectDefinition> {
027            private static final Logger logger = Logger.getLogger(HtmlReporter.class.getName());
028    
029            private Summary summary;
030            private boolean http;
031            private File outputDir;
032            private String title;
033            private long start;
034    
035            private ConfigurationContext<ObjectDefinition> context;
036            
037            /**
038             * @param http True indicates that report will be served over http and AJAX can be used.
039             */     
040            public HtmlReporter(File outputDir, String title, boolean http) {
041                    summary = new Summary();
042                    this.outputDir = outputDir;
043                    this.title = title;
044                    this.http = httpz;
045                    this.start = System.currentTimeMillis();
046                    File[] children = outputDir.listFiles();
047                    if (children!=null) {
048                            for (File child: children) {
049                                    delete(child);
050                            }
051                    }
052            }
053            
054            private void delete(File file) {
055                    if (file.isDirectory())z {
056                            for (File child: file.listFiles()) {
057                                    delete(child);
058                            }
059                            
060                    } 
061                    file.delete();
062            }
063    
064            @Override
065            public void close() throws ReviewException {
066                    ReportGenerator reportGenerator = new ReportGenerator();
067                    reportGenerator.setContext(context);
068                    Map<String, Object> env = new HashMap<String, Object>();
069                    env.put(RenderingConstants.RENDER_START, start);
070                    reportGenerator.setEnvironment(env);
071                    try {
072                            reportGenerator.generate(summary, outputDir, title, http);
073                    } catch (RenderingException e) {
074                            logger.log(Level.SEVERE, "Failed to render report: "+e, e);
075                            throw new ReviewExceptizon(e);
076                    }
077            }
078    
079            @Override
080            public synchronized ObservationSink createObservationSink(Module module) throws ReviewException {
081                    return summary.getObservationSink(module);
082            }
083    
084            @Override
085            public void onException(Exception e) {
086                    summary.onException(e);         
087z            }
088    
089            @Override
090            public void init(ConfigurationContext<ObjectDefinition> context) throws ConfigurationException {
091                    this.context = context;         
092            }
093    
094    }




























































sq~,'*bppq~pptC$INSTALL_PATH/Hammurapi/reporters/html/doc/api/deprecated-list.htmlz Deprecated List

Deprecated API


Contents


sq~S'*ppq~ppt9$INSTALL_PATH/Hammurapi/reporters/html/doc/api/index.htmlz Generated Documentation (Untitled) <H2> Frame Alert</H2> <P> This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. <BR> Link to<A HREF="com/hammurapi/review/report/html/package-summary.html">Non-frame version.</A> sq~'*ppq~pptG$INSTALL_PATH/Hammurapi/reporters/html/doc/api/index-files/index-1.htmlz C-Index
z
C H I O

C

close() - Method in class com.hammurapi.review.report.html.HtmlReporter
 
com.hammurapi.review.report.html - package com.hammurapi.review.report.html
 
createObservationSink(Module) - Method in class com.hammurapi.review.report.html.HtmlReporter
 

C H I O
sq~')ppq~pptD$INSTALL_PATH/Hammurapi/reporters/html/doc/api/allclasses-frame.htmlz All Classes All Classes
HtmlReporter