com.neotys.nl.controller.report.transform
Class NeoLoadReportDoc

java.lang.Object
  extended by com.neotys.nl.controller.report.transform.NeoLoadReportDoc

public class NeoLoadReportDoc
extends java.lang.Object

A wrapper for an xml document.

Author:
ajohnson

Field Summary
static java.util.Date DATE_1970
          A default return value when a valid date can't be found (January 1, 1970, 00:00:00 GMT).
static java.lang.String STANDARD_TIME_FORMAT
          A time format that is used for all languages in the context of this plugin.
 
Constructor Summary
NeoLoadReportDoc(org.w3c.dom.Document doc)
           
NeoLoadReportDoc(java.lang.String xmlFilePath)
          Constructor.
 
Method Summary
 java.lang.Float getAverageResponseTime()
           
 org.w3c.dom.Document getDoc()
           
 java.lang.Float getErrorRatePercentage()
           
 boolean hasCorrespondingDate(hudson.model.AbstractBuild<?,?> build)
           
 boolean isValidReportDoc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_1970

public static final java.util.Date DATE_1970
A default return value when a valid date can't be found (January 1, 1970, 00:00:00 GMT).


STANDARD_TIME_FORMAT

public static final java.lang.String STANDARD_TIME_FORMAT
A time format that is used for all languages in the context of this plugin.

See Also:
Constant Field Values
Constructor Detail

NeoLoadReportDoc

public NeoLoadReportDoc(java.lang.String xmlFilePath)
Constructor.

Parameters:
xmlFilePath -
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

NeoLoadReportDoc

public NeoLoadReportDoc(org.w3c.dom.Document doc)
Method Detail

isValidReportDoc

public boolean isValidReportDoc()
                         throws javax.xml.xpath.XPathExpressionException
Returns:
true if this is a valid NeoLoad report document. false otherwise.
Throws:
javax.xml.xpath.XPathExpressionException

getAverageResponseTime

public java.lang.Float getAverageResponseTime()
                                       throws javax.xml.xpath.XPathExpressionException
Returns:
Throws:
javax.xml.xpath.XPathExpressionException

getErrorRatePercentage

public java.lang.Float getErrorRatePercentage()
                                       throws javax.xml.xpath.XPathExpressionException
Returns:
Throws:
javax.xml.xpath.XPathExpressionException

getDoc

public org.w3c.dom.Document getDoc()
Returns:
the doc

hasCorrespondingDate

public boolean hasCorrespondingDate(hudson.model.AbstractBuild<?,?> build)
                             throws javax.xml.xpath.XPathExpressionException
Parameters:
cal -
Returns:
Throws:
javax.xml.xpath.XPathExpressionException


Copyright © 2004-2014. All Rights Reserved.