Class AppVersion
java.lang.Object
edu.umd.cs.findbugs.AppVersion
- All Implemented Interfaces:
XMLWriteable, Cloneable
A version of an analyzed application. Application versions are uniquely
identified by a sequence number, which represents a run of FindBugs on the
application. Timestamp is when FindBugs was run (according to
System.currentTimeMillis()), and the release name is available if the user
provided it.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAppVersion(long sequence) AppVersion(long sequence, long time, String name) AppVersion(long sequence, Date time, String name) -
Method Summary
Modifier and TypeMethodDescriptionclone()intintlonglongsetCodeSize(int codeSize) setNumClasses(int numClasses) setReleaseName(String releaseName) setTimestamp(long timestamp) toString()voidWrite this object to given XMLOutput.
-
Field Details
-
ELEMENT_NAME
-
sequence
private final long sequence -
timestamp
private long timestamp -
releaseName
-
numClasses
private int numClasses -
codeSize
private int codeSize
-
-
Constructor Details
-
AppVersion
-
AppVersion
-
AppVersion
public AppVersion(long sequence)
-
-
Method Details
-
clone
-
getSequenceNumber
public long getSequenceNumber()- Returns:
- Returns the sequence.
-
getTimestamp
public long getTimestamp()- Returns:
- Returns the timestamp.
-
getReleaseName
- Returns:
- Returns the releaseName.
-
setTimestamp
- Parameters:
timestamp- The timestamp to set.
-
setReleaseName
- Parameters:
releaseName- The releaseName to set.
-
writeXML
Description copied from interface:XMLWriteableWrite this object to given XMLOutput.- Specified by:
writeXMLin interfaceXMLWriteable- Parameters:
xmlOutput- the XMLOutput for the document- Throws:
IOException
-
toString
-
setNumClasses
- Parameters:
numClasses- The numClasses to set.
-
getNumClasses
public int getNumClasses()- Returns:
- Returns the numClasses.
-
setCodeSize
- Parameters:
codeSize- The codeSize to set.
-
getCodeSize
public int getCodeSize()- Returns:
- Returns the codeSize.
-