public class SimpleContentRevision extends java.lang.Object implements ContentRevision
Constructor and Description |
---|
SimpleContentRevision(java.lang.String content,
FilePath newFilePath,
java.lang.String revision) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Content of the revision.
|
FilePath |
getFile() |
VcsRevisionNumber |
getRevisionNumber()
Revision ID.
|
public SimpleContentRevision(java.lang.String content, FilePath newFilePath, java.lang.String revision)
public java.lang.String getContent()
ContentRevision
getContent
in interface ContentRevision
public FilePath getFile()
getFile
in interface ContentRevision
public VcsRevisionNumber getRevisionNumber()
ContentRevision
VcsRevisionNumber.NULL
is returned. Use VcsRevisionNumber.NULL
when revision number is not applicable like for
the currently uncommitted revision.getRevisionNumber
in interface ContentRevision