hudson.plugins.fitnesse
Class NativePageCounts

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by hudson.plugins.fitnesse.NativePageCounts
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class NativePageCounts
extends org.xml.sax.helpers.DefaultHandler


Field Summary
static java.lang.String APPROX_RESULT_DATE
           
static java.lang.String CONTENT
           
static java.lang.String DETAIL
           
static java.lang.String DURATION
           
static java.lang.String EXCEPTIONS
           
static java.lang.String IGNORED
           
static java.lang.String PAGE
           
static java.lang.String PSEUDO_PAGE
           
static java.lang.String RIGHT
           
static java.lang.String SUMMARY
           
static java.lang.String WRONG
           
 
Constructor Summary
NativePageCounts(java.io.PrintStream logger, java.lang.String rootDirName)
           
 
Method Summary
 java.util.Collection<hudson.plugins.fitnesse.NativePageCounts.Counts> getAllCounts()
           
 java.util.List<hudson.plugins.fitnesse.NativePageCounts.Counts> getDetails()
           
 java.util.List<java.lang.String> getDetailsContents()
           
 hudson.plugins.fitnesse.NativePageCounts.Counts getSummary()
           
 java.lang.String resultsDateOf(java.lang.String approxResultDate)
           
 int size()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          Stores the actual fitnesse results.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGE

public static final java.lang.String PAGE
See Also:
Constant Field Values

PSEUDO_PAGE

public static final java.lang.String PSEUDO_PAGE
See Also:
Constant Field Values

CONTENT

public static final java.lang.String CONTENT
See Also:
Constant Field Values

APPROX_RESULT_DATE

public static final java.lang.String APPROX_RESULT_DATE
See Also:
Constant Field Values

RIGHT

public static final java.lang.String RIGHT
See Also:
Constant Field Values

WRONG

public static final java.lang.String WRONG
See Also:
Constant Field Values

IGNORED

public static final java.lang.String IGNORED
See Also:
Constant Field Values

EXCEPTIONS

public static final java.lang.String EXCEPTIONS
See Also:
Constant Field Values

DURATION

public static final java.lang.String DURATION
See Also:
Constant Field Values

SUMMARY

public static final java.lang.String SUMMARY
See Also:
Constant Field Values

DETAIL

public static final java.lang.String DETAIL
See Also:
Constant Field Values
Constructor Detail

NativePageCounts

public NativePageCounts(java.io.PrintStream logger,
                        java.lang.String rootDirName)
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
Stores the actual fitnesse results. We do not want to merge them into build.xml since the results may have size of several MB. E.g. in a suite with lots of fitnesse-tests the user usually wants to see a view results. Putting all fitnesse results into build.xml will load all results into memory which can slow down the system. The allContents is read later on. The content is written to separate files.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

resultsDateOf

public java.lang.String resultsDateOf(java.lang.String approxResultDate)

size

public int size()

getSummary

public hudson.plugins.fitnesse.NativePageCounts.Counts getSummary()

getDetailsContents

public java.util.List<java.lang.String> getDetailsContents()

getAllCounts

public java.util.Collection<hudson.plugins.fitnesse.NativePageCounts.Counts> getAllCounts()

getDetails

public java.util.List<hudson.plugins.fitnesse.NativePageCounts.Counts> getDetails()


Copyright © 2004-2014. All Rights Reserved.