org.sonar.batch.components
Class PastSnapshot

java.lang.Object
  extended by org.sonar.batch.components.PastSnapshot

public class PastSnapshot
extends Object


Constructor Summary
PastSnapshot(String mode)
          See SONAR-2428 : even if previous analysis does not exist (no snapshot and no target date), we should perform comparison.
PastSnapshot(String mode, Date targetDate)
           
PastSnapshot(String mode, Date targetDate, Snapshot projectSnapshot)
           
 
Method Summary
 PastSnapshot clonePastSnapshot()
           
 Date getDate()
           
 int getIndex()
           
 String getMode()
           
 String getModeParameter()
           
 Snapshot getProjectSnapshot()
           
 String getQualifier()
           
 Date getTargetDate()
          Deprecated. in 4.2. Target date should only be used in labels.
 boolean isRelatedToSnapshot()
           
 PastSnapshot setIndex(int index)
           
 PastSnapshot setMode(String mode)
           
 PastSnapshot setModeParameter(String s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PastSnapshot

public PastSnapshot(String mode,
                    @Nullable
                    Date targetDate,
                    @Nullable
                    Snapshot projectSnapshot)

PastSnapshot

public PastSnapshot(String mode,
                    @Nullable
                    Date targetDate)

PastSnapshot

public PastSnapshot(String mode)
See SONAR-2428 : even if previous analysis does not exist (no snapshot and no target date), we should perform comparison.

Method Detail

setIndex

public PastSnapshot setIndex(int index)

getIndex

public int getIndex()

isRelatedToSnapshot

public boolean isRelatedToSnapshot()

getProjectSnapshot

public Snapshot getProjectSnapshot()

getDate

public Date getDate()

setMode

public PastSnapshot setMode(String mode)

getMode

public String getMode()

getModeParameter

public String getModeParameter()

setModeParameter

public PastSnapshot setModeParameter(String s)

getQualifier

public String getQualifier()

getTargetDate

@Deprecated
public Date getTargetDate()
Deprecated. in 4.2. Target date should only be used in labels.


clonePastSnapshot

public PastSnapshot clonePastSnapshot()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2015 SonarSource. All rights reserved.