public abstract class FileRevision extends Object implements IFileRevision
IFileRevision that can be implemented by
clients.IFileRevision| Constructor and Description |
|---|
FileRevision() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Returns whether the file represented by this state exists.
|
String |
getAuthor()
Returns the author of this revision or
null if
this information is not available. |
String |
getComment()
Returns the comment for this file revision or
null if
this information is not available. |
String |
getContentIdentifier()
Returns the unique identifier for this file revision
or
null if one is not available. |
static IFileRevision |
getFileRevisionFor(IFile file)
Return a file state representing the current state of the
local file.
|
ITag[] |
getTags()
Returns the set of tags available for this file revision.
|
long |
getTimestamp()
Returns the time stamp of this revision as a long or
-1
if the timestamp is unknown. |
URI |
getURI()
Returns the URI of the file to which this state is associated
or
null if the file does not have a URI. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getStorage, isPropertyMissing, withAllPropertiespublic static IFileRevision getFileRevisionFor(IFile file)
file - a local filepublic URI getURI()
IFileRevisionnull if the file does not have a URI.getURI in interface IFileRevisionpublic long getTimestamp()
IFileRevision-1
if the timestamp is unknown.getTimestamp in interface IFileRevisionSystem.currentTimeMillis()public boolean exists()
IFileRevisionexists in interface IFileRevisionpublic String getContentIdentifier()
IFileRevisionnull if one is not available. If null
is returned, clients can use the timestamp to differentiate
revisions.getContentIdentifier in interface IFileRevisionnullpublic String getAuthor()
IFileRevisionnull if
this information is not available.getAuthor in interface IFileRevisionnullpublic String getComment()
IFileRevisionnull if
this information is not available.getComment in interface IFileRevisionnullpublic ITag[] getTags()
IFileRevisiongetTags in interface IFileRevisionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.