CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto
Class SourceFileDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.base.NamedDto
          extended by com.intland.codebeamer.persistence.dto.SourceFileDto
All Implemented Interfaces:
BaseDto, IndexableDto, ProjectAwareDto, ReferableDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class SourceFileDto
extends NamedDto
implements ProjectAwareDto, ReferableDto, IndexableDto

Wraps a source code file.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
NamedDto.NameComparator
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Nested classes/interfaces inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto
ReferableDto.DescriptionComparator
 
Field Summary
static java.lang.String INTERWIKI_LINK_TYPE
           
 
Fields inherited from interface com.intland.codebeamer.persistence.dto.base.ReferableDto
HEAD_VERSION, SECTION_DELIMITER, VERSION_DELIMITER
 
Constructor Summary
SourceFileDto()
           
SourceFileDto(java.lang.String[] data)
          Parses string like below: files;169;33206;947;1117653497;27;3;1;18 files;170;1;18;35;33206;2983;1117654683;166
 
Method Summary
 int compareTo(java.lang.Object obj)
          Caution: NamedDto compareTo violates the rule that a.equals(b) is equivalent to a.compareTo(b) == 0, because only the names are compared
 java.lang.Integer getCommentLines()
           
 java.lang.Integer getComments()
           
 SourceDirectoryDto getDirectory()
           
 java.lang.Integer getEmptyLines()
           
 java.lang.String getFileTypeId()
           
 java.lang.String getIconUrl()
          Returns the URL of the (small) icon image that represents this DTO type.
 java.lang.String getInterwikiLink()
          Returns the interwiki link that points to the web page where this DTO is managed.
 java.util.Date getLastModifiedAt()
           
 java.lang.Long getLength()
           
 java.lang.Long getMode()
           
 java.util.Date getParsedAt()
           
 java.lang.String getPath()
          Returns its full path using '/' as delimiter, but without a leading '/'!.
 ProjectDto getProject()
           
 java.lang.String getShortDescription()
          Returns the short description that represent this entity in the user interface.
 java.lang.Integer getTotalLines()
           
 java.lang.String getUrlLink()
          Returns the local URL that points to the web page where this DTO is managed.
 boolean isIndexed()
           
 void setCommentLines(java.lang.Integer commentLines)
           
 void setComments(java.lang.Integer comments)
           
 void setDirectory(SourceDirectoryDto dir)
           
 void setEmptyLines(java.lang.Integer emptyLines)
           
 void setFileTypeId(java.lang.String fileTypeId)
           
 void setIndexed(boolean indexed)
           
 void setLastModifiedAt(java.util.Date lastModifiedAt)
           
 void setLength(java.lang.Long length)
           
 void setMode(java.lang.Long mode)
           
 void setParsedAt(java.util.Date parsedAt)
           
 void setProject(ProjectDto project)
           
 void setTotalLines(java.lang.Integer totalLines)
           
 java.lang.String toString()
           
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
compareNames, compareString, compareStringIgnoreCase, createLookupMap, equals, getName, hashCode, setName
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
clone, compare, compareInteger, equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERWIKI_LINK_TYPE

public static final java.lang.String INTERWIKI_LINK_TYPE
See Also:
Constant Field Values
Constructor Detail

SourceFileDto

public SourceFileDto()

SourceFileDto

public SourceFileDto(java.lang.String[] data)
Parses string like below: files;169;33206;947;1117653497;27;3;1;18 files;170;1;18;35;33206;2983;1117654683;166

Method Detail

getProject

public ProjectDto getProject()
Specified by:
getProject in interface ProjectAwareDto

setProject

public void setProject(ProjectDto project)
Specified by:
setProject in interface ProjectAwareDto

getDirectory

public SourceDirectoryDto getDirectory()

setDirectory

public void setDirectory(SourceDirectoryDto dir)

getCommentLines

public java.lang.Integer getCommentLines()

setCommentLines

public void setCommentLines(java.lang.Integer commentLines)

getComments

public java.lang.Integer getComments()

setComments

public void setComments(java.lang.Integer comments)

getEmptyLines

public java.lang.Integer getEmptyLines()

setEmptyLines

public void setEmptyLines(java.lang.Integer emptyLines)

getFileTypeId

public java.lang.String getFileTypeId()

setFileTypeId

public void setFileTypeId(java.lang.String fileTypeId)

isIndexed

public boolean isIndexed()
Specified by:
isIndexed in interface IndexableDto

setIndexed

public void setIndexed(boolean indexed)
Specified by:
setIndexed in interface IndexableDto

getLastModifiedAt

public java.util.Date getLastModifiedAt()

setLastModifiedAt

public void setLastModifiedAt(java.util.Date lastModifiedAt)

getLength

public java.lang.Long getLength()

setLength

public void setLength(java.lang.Long length)

getMode

public java.lang.Long getMode()

setMode

public void setMode(java.lang.Long mode)

getParsedAt

public java.util.Date getParsedAt()

setParsedAt

public void setParsedAt(java.util.Date parsedAt)

getTotalLines

public java.lang.Integer getTotalLines()

setTotalLines

public void setTotalLines(java.lang.Integer totalLines)

getPath

public java.lang.String getPath()
Returns its full path using '/' as delimiter, but without a leading '/'!.


getShortDescription

public java.lang.String getShortDescription()
Description copied from interface: ReferableDto
Returns the short description that represent this entity in the user interface. This normally delegates to another getter, like ProjectDto.getName() or TrackerItemDto.getSummary().

Specified by:
getShortDescription in interface ReferableDto

getUrlLink

public java.lang.String getUrlLink()
Description copied from interface: ReferableDto
Returns the local URL that points to the web page where this DTO is managed.

Specified by:
getUrlLink in interface ReferableDto

getInterwikiLink

public java.lang.String getInterwikiLink()
Description copied from interface: ReferableDto
Returns the interwiki link that points to the web page where this DTO is managed.

Specified by:
getInterwikiLink in interface ReferableDto

getIconUrl

public java.lang.String getIconUrl()
Description copied from interface: ReferableDto
Returns the URL of the (small) icon image that represents this DTO type.

Specified by:
getIconUrl in interface ReferableDto

toString

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

compareTo

public int compareTo(java.lang.Object obj)
Description copied from class: NamedDto
Caution: NamedDto compareTo violates the rule that a.equals(b) is equivalent to a.compareTo(b) == 0, because only the names are compared

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class NamedDto

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.