edu.umd.cs.findbugs

Class AppVersion

public class AppVersion extends Object implements 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.

Author: David Hovemeyer

Field Summary
static StringELEMENT_NAME
XML element name for a stored AppVersion object.
Constructor Summary
AppVersion(long sequence, long time, String name)
AppVersion(long sequence, Date time, String name)
AppVersion(long sequence)
Method Summary
intgetCodeSize()
intgetNumClasses()
StringgetReleaseName()
longgetSequenceNumber()
longgetTimestamp()
AppVersionsetCodeSize(int codeSize)
AppVersionsetNumClasses(int numClasses)
AppVersionsetReleaseName(String releaseName)
AppVersionsetTimestamp(long timestamp)
voidwriteXML(XMLOutput xmlOutput)

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
XML element name for a stored AppVersion object.

Constructor Detail

AppVersion

public AppVersion(long sequence, long time, String name)

AppVersion

public AppVersion(long sequence, Date time, String name)

AppVersion

public AppVersion(long sequence)

Method Detail

getCodeSize

public int getCodeSize()

Returns: Returns the codeSize.

getNumClasses

public int getNumClasses()

Returns: Returns the numClasses.

getReleaseName

public String getReleaseName()

Returns: Returns the releaseName.

getSequenceNumber

public long getSequenceNumber()

Returns: Returns the sequence.

getTimestamp

public long getTimestamp()

Returns: Returns the timestamp.

setCodeSize

public AppVersion setCodeSize(int codeSize)

Parameters: codeSize The codeSize to set.

setNumClasses

public AppVersion setNumClasses(int numClasses)

Parameters: numClasses The numClasses to set.

setReleaseName

public AppVersion setReleaseName(String releaseName)

Parameters: releaseName The releaseName to set.

setTimestamp

public AppVersion setTimestamp(long timestamp)

Parameters: timestamp The timestamp to set.

writeXML

public void writeXML(XMLOutput xmlOutput)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.