|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
net.objectlab.qalab.parser.BuildStatForChartParser
public class BuildStatForChartParser
This is the parser for generating the charts from qalab.xml. Created by IntelliJ IDEA. User: xhensevalb Date: 09-Feb-2004 Time: 17:14:25
Constructor Summary | |
---|---|
BuildStatForChartParser(TaskLogger logger)
constructor, accepts the logger. |
Method Summary | |
---|---|
void |
endElement(java.lang.String ignoreNamespaceURI,
java.lang.String localName,
java.lang.String qualifiedname)
Called when a closing element tag is encountered, it generates the chart each time it moves from a file or summary. |
void |
error(org.xml.sax.SAXParseException ex)
Error. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Fatal error. |
int |
getChartHeight()
|
int |
getChartWidth()
|
java.lang.String |
getFilePrefix()
|
int |
getMovingAverage()
|
java.lang.String |
getToDir()
|
java.lang.String |
getXAxisSummaryTitle()
|
java.lang.String |
getXAxisTitle()
|
java.lang.String |
getYAxisSummaryTitle()
|
java.lang.String |
getYAxisTitle()
|
boolean |
isQuiet()
|
boolean |
isSummaryOnly()
|
void |
setAcceptedStyle(java.lang.String acceptedStyleStr)
set the accepted styles for charts, each type will be a line/series on the chart. |
void |
setChartHeight(int height)
|
void |
setChartWidth(int width)
|
void |
setFilePrefix(java.lang.String filePrefix)
|
void |
setMovingAverage(int average)
|
void |
setQuiet(boolean noLog)
|
void |
setSummaryOnly(boolean summary)
|
void |
setSummaryStyle(java.lang.String acceptedStyleStr)
set the accepted styles for SUMMARY charts, each type will be a line/series on the chart. |
void |
setToDir(java.lang.String outputDirectory)
|
void |
setXAxisSummaryTitle(java.lang.String axisSummaryTitle)
|
void |
setXAxisTitle(java.lang.String axisTitle)
|
void |
setYAxisSummaryTitle(java.lang.String axisSummaryTitle)
|
void |
setYAxisTitle(java.lang.String axisTitle)
|
void |
startElement(java.lang.String ignoreNamespaceURI,
java.lang.String localname,
java.lang.String qualifiedname,
org.xml.sax.Attributes attrs)
Start element, called when each new tag is encountered. |
void |
warning(org.xml.sax.SAXParseException ex)
Warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildStatForChartParser(TaskLogger logger)
logger
- the looger for this task, will vary if ant/maven/other.Method Detail |
---|
public final void setAcceptedStyle(java.lang.String acceptedStyleStr)
acceptedStyleStr
- a comma separated string with styles.public final void setSummaryStyle(java.lang.String acceptedStyleStr)
acceptedStyleStr
- a comma separated string with styles.public final void startElement(java.lang.String ignoreNamespaceURI, java.lang.String localname, java.lang.String qualifiedname, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
ignoreUri
- ignore, this is due to sax interface.local
- local name of the tag.ignoreRaw
- ignore, this is due to sax interface.attrs
- the element attributes.
org.xml.sax.SAXException
- any SAX parser exception.public final void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
ex
- the SAX Parser Exception.
org.xml.sax.SAXException
- any SAX Parser Exception.public final void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
ex
- the SAX Parser Exception.
org.xml.sax.SAXException
- any SAX Parser Exception.public final void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
ex
- the SAX Parser Exception.
org.xml.sax.SAXException
- any SAX Parser Exception.public final void endElement(java.lang.String ignoreNamespaceURI, java.lang.String localName, java.lang.String qualifiedname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
ignoreUri
- ignore, this is due to sax interface.localName
- local name of the tag.ignoreQName
- ignore, this is due to sax interface.
org.xml.sax.SAXException
- any SAX exceptions.public java.lang.String getYAxisSummaryTitle()
public void setYAxisSummaryTitle(java.lang.String axisSummaryTitle)
axisSummaryTitle
- The yAxisSummaryTitle to set.public final int getChartWidth()
public final void setChartWidth(int width)
width
- in pixels.public final int getChartHeight()
public final void setChartHeight(int height)
height
- in pixels.public final java.lang.String getToDir()
public final void setToDir(java.lang.String outputDirectory)
outputDirectory
- output directory.public final int getMovingAverage()
public final void setMovingAverage(int average)
average
- number of points to take into account in moving average, no
moving average if <= 0.public java.lang.String getXAxisSummaryTitle()
public void setXAxisSummaryTitle(java.lang.String axisSummaryTitle)
axisSummaryTitle
- The xAxisSummaryTitle to set.public final boolean isSummaryOnly()
public final void setSummaryOnly(boolean summary)
summary
- true if we require only summary chart.public final boolean isQuiet()
public final void setQuiet(boolean noLog)
noLog
- true if no debug log required.public java.lang.String getFilePrefix()
public void setFilePrefix(java.lang.String filePrefix)
filePrefix
- The filePrefix to set.public java.lang.String getXAxisTitle()
public void setXAxisTitle(java.lang.String axisTitle)
axisTitle
- The xAxisTitle to set.public java.lang.String getYAxisTitle()
public void setYAxisTitle(java.lang.String axisTitle)
axisTitle
- The yAxisTitle to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |