FindBugs™ 1.3.9

edu.umd.cs.findbugs
Class AppVersion

java.lang.Object
  extended by edu.umd.cs.findbugs.AppVersion
All Implemented Interfaces:
XMLWriteable, java.lang.Cloneable

public class AppVersion
extends java.lang.Object
implements XMLWriteable, java.lang.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 java.lang.String ELEMENT_NAME
          XML element name for a stored AppVersion object.
 
Constructor Summary
AppVersion(long sequence)
           
AppVersion(long sequence, java.util.Date time, java.lang.String name)
           
AppVersion(long sequence, long time, java.lang.String name)
           
 
Method Summary
 java.lang.Object clone()
           
 int getCodeSize()
           
 int getNumClasses()
           
 java.lang.String getReleaseName()
           
 long getSequenceNumber()
           
 long getTimestamp()
           
 AppVersion setCodeSize(int codeSize)
           
 AppVersion setNumClasses(int numClasses)
           
 AppVersion setReleaseName(java.lang.String releaseName)
           
 AppVersion setTimestamp(long timestamp)
           
 java.lang.String toString()
           
 void writeXML(XMLOutput xmlOutput)
          Write this object to given XMLOutput.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT_NAME

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

See Also:
Constant Field Values
Constructor Detail

AppVersion

public AppVersion(long sequence,
                  long time,
                  java.lang.String name)

AppVersion

public AppVersion(long sequence,
                  java.util.Date time,
                  java.lang.String name)

AppVersion

public AppVersion(long sequence)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getSequenceNumber

public long getSequenceNumber()
Returns:
Returns the sequence.

getTimestamp

public long getTimestamp()
Returns:
Returns the timestamp.

getReleaseName

public java.lang.String getReleaseName()
Returns:
Returns the releaseName.

setTimestamp

public AppVersion setTimestamp(long timestamp)
Parameters:
timestamp - The timestamp to set.

setReleaseName

public AppVersion setReleaseName(java.lang.String releaseName)
Parameters:
releaseName - The releaseName to set.

writeXML

public void writeXML(XMLOutput xmlOutput)
              throws java.io.IOException
Description copied from interface: XMLWriteable
Write this object to given XMLOutput.

Specified by:
writeXML in interface XMLWriteable
Parameters:
xmlOutput - the XMLOutput for the document
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setNumClasses

public AppVersion setNumClasses(int numClasses)
Parameters:
numClasses - The numClasses to set.

getNumClasses

public int getNumClasses()
Returns:
Returns the numClasses.

setCodeSize

public AppVersion setCodeSize(int codeSize)
Parameters:
codeSize - The codeSize to set.

getCodeSize

public int getCodeSize()
Returns:
Returns the codeSize.

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.