public interface IResourceVariant
SyncInfo
instances
to provide access to the base and remote resources that correspond to
a local resource.SyncInfo
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes()
Return an array of bytes that can be used to uniquely identify this
resource variant when compared to other resource variants and could
also potentially be used to recreate a resource variant handle.
|
boolean |
equals(Object object)
Returns whether the remote resource is equal to the provided object.
|
String |
getContentIdentifier()
Return a content identifier that is used to differentiate versions
or revisions of the same resource.
|
String |
getName()
Answers the name of the remote resource.
|
IStorage |
getStorage(IProgressMonitor monitor)
Return an instance of IStorage or
null if the remote resource
does not have contents (i.e. is a folder). |
boolean |
isContainer()
Answers if the remote resource may have children.
|
String getName()
boolean isContainer()
true
if the remote resource may have children and
false
otherwise.IStorage getStorage(IProgressMonitor monitor) throws TeamException
null
if the remote resource
does not have contents (i.e. is a folder). Since the ISorage#getContents()
method does not accept an IProgressMonitor
, this method must ensure that the contents
access by the resulting IStorage
is cached locally (hence the IProgressMonitor
argument to this method). Implementations of this method should
ensure that the resulting IStorage
is accessing locally cached contents and is not
contacting the server.
The returned storage object may be an instance of (@link org.eclipse.core.resources.IEncodedStorage} in which case clients can determine the character encoding of the contents.
monitor
- a progress monitorIStorage
that provides access to the contents of
the remote resource or null
if the remote resource is a container.TeamException
String getContentIdentifier()
byte[] asBytes()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.