All Methods Instance Methods Abstract Methods Modifier and Type Method Description
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.
equals(Object object)Returns whether the remote resource is equal to the provided object.
getContentIdentifier()Return a content identifier that is used to differentiate versions or revisions of the same resource.
getName()Answers the name of the remote resource.
getStorage(IProgressMonitor monitor)Return an instance of IStorage or
nullif the remote resource does not have contents (i.e. is a folder).
isContainer()Answers if the remote resource may have children.
String getName()Answers the name of the remote resource. The name may be displayed to the user.
- name of the resource variant.
boolean isContainer()Answers if the remote resource may have children.
trueif the remote resource may have children and
IStorage getStorage(IProgressMonitor monitor) throws TeamExceptionReturn an instance of IStorage or
nullif 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
IStorageis cached locally (hence the
IProgressMonitorargument to this method). Implementations of this method should ensure that the resulting
IStorageis 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 monitor
IStoragethat provides access to the contents of the remote resource or
nullif the remote resource is a container.
- a String that identifies the version of the subscriber resource
- the bytes that uniquely identify this resource variant