com.intland.codebeamer.persistence.dto
Class SourceFileDto
java.lang.Object
com.intland.codebeamer.persistence.dto.base.IdentifiableDto
com.intland.codebeamer.persistence.dto.base.NamedDto
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
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 |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
INTERWIKI_LINK_TYPE
public static final java.lang.String INTERWIKI_LINK_TYPE
- See Also:
- Constant Field Values
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
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
Copyright © 2006-2009 Intland Software. All rights reserved.