Java Doc for SortedBugCollection.java in  » Code-Analyzer » findbugs » edu » umd » cs » findbugs » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » findbugs » edu.umd.cs.findbugs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.umd.cs.findbugs.SortedBugCollection

SortedBugCollection
public class SortedBugCollection implements BugCollection(Code)
An implementation of BugCollection that keeps the BugInstances sorted by class (using the native comparison ordering of BugInstance's compareTo() method as a tie-breaker).
See Also:   BugInstance
author:
   David Hovemeyer

Inner Class :public static class BugInstanceComparator implements Comparator<BugInstance>
Inner Class :public static class MultiversionBugInstanceComparator extends BugInstanceComparator

Field Summary
 longanalysisTimestamp
    
 StringanalysisVersion
    

Constructor Summary
public  SortedBugCollection()
     Constructor.
public  SortedBugCollection(Comparator<BugInstance> comparator)
     Constructor.
public  SortedBugCollection(ProjectStats projectStats)
     Constructor.
public  SortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator)
     Constructor.

Method Summary
public  booleanadd(BugInstance bugInstance)
     Add a BugInstance to this BugCollection.
public  booleanadd(BugInstance bugInstance, boolean updateActiveTime)
    
public  voidaddAll(Collection<BugInstance> collection)
     Add a Collection of BugInstances to this BugCollection object.
public  voidaddAll(Collection<BugInstance> collection, boolean updateActiveTime)
     Add a Collection of BugInstances to this BugCollection object.
public  voidaddAppVersion(AppVersion appVersion)
    
public  voidaddError(String message)
     Add an analysis error.
public  voidaddError(String message, Throwable exception)
    
public  voidaddError(AnalysisError error)
    
public  voidaddMissingClass(String className)
    
public  Iterator<AppVersion>appVersionIterator()
    
public  Iterator<ClassFeatureSet>classFeatureSetIterator()
    
public  voidclearAppVersions()
    
public  voidclearBugInstances()
    
public  voidclearClassFeatures()
    
public static  voidcloneAll(Collection<BugInstance> dest, Collection<BugInstance> source)
     Clone all of the BugInstance objects in the source Collection and add them to the destination Collection.
public  voidcomputeBugHashes()
    
public  booleancontains(BugInstance bugInstance)
    
public  SortedBugCollectioncreateEmptyCollectionWithMetadata()
    
public  SortedBugCollectionduplicate()
    
public  Iterator<AnalysisError>errorIterator()
    
public  BugInstancefindBug(String instanceHash, String bugType, int lineNumber)
    
public  longgetAnalysisTimestamp()
    
public  AppVersiongetAppVersionFromSequenceNumber(long target)
    
public  ClassFeatureSetgetClassFeatureSet(String className)
    
public  Collection<BugInstance>getCollection()
    
public  AppVersiongetCurrentAppVersion()
     Get the current AppVersion.
public  BugInstancegetMatching(BugInstance bugInstance)
    
public  ProjectStatsgetProjectStats()
    
public  StringgetReleaseName()
    
public  longgetSequenceNumber()
    
public  StringgetSummaryHTML()
    
public  longgetTimestamp()
    
public  booleangetWithMessages()
    
public  Iterator<BugInstance>iterator()
    
public  BugInstancelookupFromUniqueId(String uniqueId)
    
public  Iterator<String>missingClassIterator()
    
public  voidreadXML(String fileName, Project project)
     Read XML data from given file into this object, populating given Project as a side effect.
public  voidreadXML(File file, Project project)
     Read XML data from given file into this object, populating given Project as a side effect.
public  voidreadXML(InputStream in, Project project, File base)
     Read XML data from given input stream into this object, populating the Project as a side effect.
public  voidreadXML(InputStream in, Project project)
    
public  booleanremove(BugInstance bugInstance)
    
public  voidsetAnalysisTimestamp(long timestamp)
    
public  voidsetAnalysisVersion(String version)
    
public  voidsetClassFeatureSet(ClassFeatureSet classFeatureSet)
    
public  voidsetReleaseName(String releaseName)
    
public  voidsetSequenceNumber(long sequence)
    
public  voidsetTimestamp(long timestamp)
    
public  voidsetWithMessages(boolean withMessages)
    
public  DocumenttoDocument(Project project)
     Convert the BugCollection into a dom4j Document object.
public  voidwriteEpilogue(XMLOutput xmlOutput)
    
public  voidwritePrologue(XMLOutput xmlOutput, Project project)
    
public  voidwriteXML(String fileName, Project project)
     Write this BugCollection to a file as XML.
public  voidwriteXML(File file, Project project)
     Write this BugCollection to a file as XML.
public  voidwriteXML(OutputStream out, Project project)
     Write the BugCollection to given output stream as XML.
public  voidwriteXML(XMLOutput xmlOutput, Project project)
     Write the BugCollection to an XMLOutput object.

Field Detail
analysisTimestamp
long analysisTimestamp(Code)



analysisVersion
String analysisVersion(Code)




Constructor Detail
SortedBugCollection
public SortedBugCollection()(Code)
Constructor. Creates an empty object.



SortedBugCollection
public SortedBugCollection(Comparator<BugInstance> comparator)(Code)
Constructor. Creates an empty object.



SortedBugCollection
public SortedBugCollection(ProjectStats projectStats)(Code)
Constructor. Creates an empty object given an existing ProjectStats.
Parameters:
  projectStats - the ProjectStats



SortedBugCollection
public SortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator)(Code)
Constructor. Creates an empty object given an existing ProjectStats.
Parameters:
  projectStats - the ProjectStats
Parameters:
  comparator - to use for sorting bug instances




Method Detail
add
public boolean add(BugInstance bugInstance)(Code)
Add a BugInstance to this BugCollection. This just calls add(bugInstance, true).
Parameters:
  bugInstance - the BugInstance true if the BugInstance was added, or false if a matchingBugInstance was already in the BugCollection



add
public boolean add(BugInstance bugInstance, boolean updateActiveTime)(Code)



addAll
public void addAll(Collection<BugInstance> collection)(Code)
Add a Collection of BugInstances to this BugCollection object. This just calls add(BugInstance) for each instance in the input collection.
Parameters:
  collection - the Collection of BugInstances to add



addAll
public void addAll(Collection<BugInstance> collection, boolean updateActiveTime)(Code)
Add a Collection of BugInstances to this BugCollection object.
Parameters:
  collection - the Collection of BugInstances to add
Parameters:
  updateActiveTime - true if active time of added BugInstances shouldbe updated to match collection: false if not



addAppVersion
public void addAppVersion(AppVersion appVersion)(Code)



addError
public void addError(String message)(Code)
Add an analysis error.
Parameters:
  message - the error message



addError
public void addError(String message, Throwable exception)(Code)



addError
public void addError(AnalysisError error)(Code)



addMissingClass
public void addMissingClass(String className)(Code)



appVersionIterator
public Iterator<AppVersion> appVersionIterator()(Code)



classFeatureSetIterator
public Iterator<ClassFeatureSet> classFeatureSetIterator()(Code)



clearAppVersions
public void clearAppVersions()(Code)



clearBugInstances
public void clearBugInstances()(Code)



clearClassFeatures
public void clearClassFeatures()(Code)



cloneAll
public static void cloneAll(Collection<BugInstance> dest, Collection<BugInstance> source)(Code)
Clone all of the BugInstance objects in the source Collection and add them to the destination Collection.
Parameters:
  dest - the destination Collection
Parameters:
  source - the source Collection



computeBugHashes
public void computeBugHashes()(Code)



contains
public boolean contains(BugInstance bugInstance)(Code)



createEmptyCollectionWithMetadata
public SortedBugCollection createEmptyCollectionWithMetadata()(Code)



duplicate
public SortedBugCollection duplicate()(Code)



errorIterator
public Iterator<AnalysisError> errorIterator()(Code)



findBug
public BugInstance findBug(String instanceHash, String bugType, int lineNumber)(Code)



getAnalysisTimestamp
public long getAnalysisTimestamp()(Code)



getAppVersionFromSequenceNumber
public AppVersion getAppVersionFromSequenceNumber(long target)(Code)



getClassFeatureSet
public ClassFeatureSet getClassFeatureSet(String className)(Code)



getCollection
public Collection<BugInstance> getCollection()(Code)



getCurrentAppVersion
public AppVersion getCurrentAppVersion()(Code)
Get the current AppVersion.



getMatching
public BugInstance getMatching(BugInstance bugInstance)(Code)



getProjectStats
public ProjectStats getProjectStats()(Code)



getReleaseName
public String getReleaseName()(Code)



getSequenceNumber
public long getSequenceNumber()(Code)



getSummaryHTML
public String getSummaryHTML() throws IOException(Code)



getTimestamp
public long getTimestamp()(Code)



getWithMessages
public boolean getWithMessages()(Code)
Returns the withMessages.



iterator
public Iterator<BugInstance> iterator()(Code)



lookupFromUniqueId
public BugInstance lookupFromUniqueId(String uniqueId)(Code)



missingClassIterator
public Iterator<String> missingClassIterator()(Code)



readXML
public void readXML(String fileName, Project project) throws IOException, DocumentException(Code)
Read XML data from given file into this object, populating given Project as a side effect.
Parameters:
  fileName - name of the file to read
Parameters:
  project - the Project



readXML
public void readXML(File file, Project project) throws IOException, DocumentException(Code)
Read XML data from given file into this object, populating given Project as a side effect.
Parameters:
  file - the file
Parameters:
  project - the Project



readXML
public void readXML(InputStream in, Project project, File base) throws IOException, DocumentException(Code)
Read XML data from given input stream into this object, populating the Project as a side effect. An attempt will be made to close the input stream (even if an exception is thrown).
Parameters:
  in - the InputStream
Parameters:
  project - the Project



readXML
public void readXML(InputStream in, Project project) throws IOException, DocumentException(Code)



remove
public boolean remove(BugInstance bugInstance)(Code)



setAnalysisTimestamp
public void setAnalysisTimestamp(long timestamp)(Code)



setAnalysisVersion
public void setAnalysisVersion(String version)(Code)

Parameters:
  version -



setClassFeatureSet
public void setClassFeatureSet(ClassFeatureSet classFeatureSet)(Code)



setReleaseName
public void setReleaseName(String releaseName)(Code)



setSequenceNumber
public void setSequenceNumber(long sequence)(Code)



setTimestamp
public void setTimestamp(long timestamp)(Code)



setWithMessages
public void setWithMessages(boolean withMessages)(Code)

Parameters:
  withMessages - The withMessages to set.



toDocument
public Document toDocument(Project project)(Code)
Convert the BugCollection into a dom4j Document object.
Parameters:
  project - the Project from which the BugCollection was generated the Document representing the BugCollection as a dom4j tree



writeEpilogue
public void writeEpilogue(XMLOutput xmlOutput) throws IOException(Code)



writePrologue
public void writePrologue(XMLOutput xmlOutput, Project project) throws IOException(Code)



writeXML
public void writeXML(String fileName, Project project) throws IOException(Code)
Write this BugCollection to a file as XML.
Parameters:
  fileName - the file to write to
Parameters:
  project - the Project from which the BugCollection was generated



writeXML
public void writeXML(File file, Project project) throws IOException(Code)
Write this BugCollection to a file as XML.
Parameters:
  file - the file to write to
Parameters:
  project - the Project from which the BugCollection was generated



writeXML
public void writeXML(OutputStream out, Project project) throws IOException(Code)
Write the BugCollection to given output stream as XML. The output stream will be closed, even if an exception is thrown.
Parameters:
  out - the OutputStream to write to
Parameters:
  project - the Project from which the BugCollection was generated



writeXML
public void writeXML(XMLOutput xmlOutput, Project project) throws IOException(Code)
Write the BugCollection to an XMLOutput object. The finish() method of the XMLOutput object is guaranteed to be called.

To write the SummaryHTML element, set property findbugs.report.SummaryHTML to "true".


Parameters:
  xmlOutput - the XMLOutput object
Parameters:
  project - the Project from which the BugCollection was generated



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.