Methods Summary |
---|
protected com.vladium.emma.report.ReportCfg$Element | addCfgElement(java.lang.String type, com.vladium.emma.report.ReportCfg$Element cfg)
if (m_reportTypes.contains (type))
{
setFailure ((BuildException) SuppressableTask.newBuildException (m_task.getTaskName ()
+ ": duplicate configuration for report type [" + type + "]" ,
m_task.getLocation ()).fillInStackTrace ());
}
else
{
m_reportTypes.add (type);
m_cfgList.add (cfg);
}
return cfg;
|
public com.vladium.emma.report.ReportCfg$Element_HTML | createHtml()
return (Element_HTML) addCfgElement (Element_HTML.TYPE,
new Element_HTML (m_task, m_settings));
|
public org.apache.tools.ant.types.Path | createSourcepath()
if (m_srcpath == null)
m_srcpath = new Path (m_project);
return m_srcpath.createPath ();
|
public com.vladium.emma.report.ReportCfg$Element_TXT | createTxt()
return (Element_TXT) addCfgElement (Element_TXT.TYPE,
new Element_TXT (m_task, m_settings));
|
public com.vladium.emma.report.ReportCfg$Element_XML | createXml()
return (Element_XML) addCfgElement (Element_XML.TYPE,
new Element_XML (m_task, m_settings));
|
private org.apache.tools.ant.BuildException | getFailure()
return m_settingsFailure;
|
public com.vladium.util.IProperties | getReportSettings()
final BuildException failure = getFailure ();
if (failure != null)
throw failure;
else
{
if (! m_processed)
{
// collect all nested elements' generic settins into m_settings:
for (Iterator i = m_cfgList.iterator (); i.hasNext (); )
{
final Element cfg = (Element) i.next ();
cfg.processGenericSettings ();
}
m_processed = true;
}
return m_settings; // no clone
}
|
public java.lang.String[] | getReportTypes()
final BuildException failure = getFailure ();
if (failure != null)
throw failure;
else
{
if (m_reportTypes.isEmpty ())
return IConstants.EMPTY_STRING_ARRAY;
else
{
final String [] result = new String [m_reportTypes.size ()];
m_reportTypes.toArray (result);
return result;
}
}
|
public org.apache.tools.ant.types.Path | getSourcepath()
return m_srcpath;
|
public void | setColumns(java.lang.String columns)
m_settings.setProperty (PREFIX.concat (COLUMNS), columns);
|
public void | setDepth(com.vladium.emma.report.IReportEnums.DepthAttribute depth)
m_settings.setProperty (PREFIX.concat (DEPTH), depth.getValue ());
|
public void | setEncoding(java.lang.String encoding)
m_settings.setProperty (PREFIX.concat (OUT_ENCODING), encoding);
|
private void | setFailure(org.apache.tools.ant.BuildException failure)
if (m_settingsFailure == null) m_settingsFailure = failure; // record the first one only
|
public void | setMetrics(java.lang.String metrics)
m_settings.setProperty (PREFIX.concat (METRICS), metrics);
|
public void | setOutfile(java.lang.String fileName)
m_settings.setProperty (PREFIX.concat (OUT_FILE), fileName);
|
public void | setSort(java.lang.String sort)
m_settings.setProperty (PREFIX.concat (SORT), sort);
|
public void | setSourcepath(org.apache.tools.ant.types.Path path)
if (m_srcpath == null)
m_srcpath = path;
else
m_srcpath.append (path);
|
public void | setSourcepathRef(org.apache.tools.ant.types.Reference ref)
createSourcepath ().setRefid (ref);
|
public void | setUnits(com.vladium.emma.report.IReportEnums.UnitsTypeAttribute units)
m_settings.setProperty (PREFIX.concat (UNITS_TYPE), units.getValue ());
|