org.sonar.core.duplication
Class DuplicationUnitDto

java.lang.Object
  extended by org.sonar.core.duplication.DuplicationUnitDto

public final class DuplicationUnitDto
extends Object

A simple DTO (Data Transfer Object) class that provides the mapping of data to a table.


Constructor Summary
DuplicationUnitDto()
           
DuplicationUnitDto(Integer projectSnapshotId, Integer snapshotId, String hash, Integer indexInFile, Integer startLine, Integer endLine)
           
 
Method Summary
 int getEndLine()
           
 String getHash()
           
 int getIndexInFile()
           
 Integer getProjectSnapshotId()
           
 String getResourceKey()
           
 Integer getSnapshotId()
           
 int getStartLine()
           
 void setEndLine(int endLine)
           
 void setHash(String hash)
           
 void setIndexInFile(int indexInFile)
           
 void setProjectSnapshotId(Integer projectSnapshotId)
           
 void setResourceKey(String resourceKey)
           
 void setSnapshotId(Integer snapshotId)
           
 void setStartLine(int startLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicationUnitDto

public DuplicationUnitDto()

DuplicationUnitDto

public DuplicationUnitDto(Integer projectSnapshotId,
                          Integer snapshotId,
                          String hash,
                          Integer indexInFile,
                          Integer startLine,
                          Integer endLine)
Method Detail

getSnapshotId

public Integer getSnapshotId()

setSnapshotId

public void setSnapshotId(Integer snapshotId)

getProjectSnapshotId

public Integer getProjectSnapshotId()

setProjectSnapshotId

public void setProjectSnapshotId(Integer projectSnapshotId)

getHash

public String getHash()

setHash

public void setHash(String hash)

getIndexInFile

public int getIndexInFile()

setIndexInFile

public void setIndexInFile(int indexInFile)

getStartLine

public int getStartLine()

setStartLine

public void setStartLine(int startLine)

getEndLine

public int getEndLine()

setEndLine

public void setEndLine(int endLine)

getResourceKey

public String getResourceKey()

setResourceKey

public void setResourceKey(String resourceKey)


Copyright © 2009-2012 SonarSource. All Rights Reserved.