hudson.plugins.cpptest.parser
Class Cpptest

java.lang.Object
  extended by hudson.plugins.cpptest.parser.Cpptest

public class Cpptest
extends Object

Java Bean class for a errors and other collection of the Cpptest format.

Author:
Ulli Hafner NQH: adapt for Cpptest NQH: add rule description & category implementation & location

Constructor Summary
Cpptest()
           
 
Method Summary
 boolean addCategory(Category e)
           
 void addFile(StdViol file)
          Adds a new file to this bug collection.
 boolean addLocation(Location e)
           
 boolean addRuleDesc(RuleDesc e)
           
 Collection<Category> getCategories()
          Returns all categories of this violations collection.
 Collection<StdViol> getFiles()
          Returns all files of this violations collection.
 Collection<Location> getLocations()
          Returns all locations of this violations collection.
 Collection<RuleDesc> getRuleDescs()
          Returns all rule descriptions of this violations collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cpptest

public Cpptest()
Method Detail

addFile

public void addFile(StdViol file)
Adds a new file to this bug collection.

Parameters:
file - the file to add

getFiles

public Collection<StdViol> getFiles()
Returns all files of this violations collection. The returned collection is read-only.

Returns:
all files of this bug collection

getRuleDescs

public Collection<RuleDesc> getRuleDescs()
Returns all rule descriptions of this violations collection. The returned collection is read-only.

Returns:
all descriptions of this bug collection

getCategories

public Collection<Category> getCategories()
Returns all categories of this violations collection. The returned collection is read-only.

Returns:
all categories of this bug collection

getLocations

public Collection<Location> getLocations()
Returns all locations of this violations collection. The returned collection is read-only.

Returns:
all locations of this bug collection

addCategory

public boolean addCategory(Category e)
Parameters:
e - the category
Returns:
true if OK, false otherwise
See Also:
List.add(java.lang.Object)

addRuleDesc

public boolean addRuleDesc(RuleDesc e)
Parameters:
e - the result description
Returns:
true if OK, false otherwise
See Also:
List.add(java.lang.Object)

addLocation

public boolean addLocation(Location e)
Parameters:
e - the result description
Returns:
true if OK, false otherwise
See Also:
List.add(java.lang.Object)


Copyright © 2004-2013. All Rights Reserved.