public abstract class BackendSystem extends BackendContainer
Modifier and Type | Class and Description |
---|---|
static interface |
BackendSystem.IFactory |
static class |
BackendSystem.Registry |
BackendResource.Type, BackendResource.Visitor
RESOURCE_SCHEME
Modifier | Constructor and Description |
---|---|
protected |
BackendSystem(URI systemURI) |
Modifier and Type | Method and Description |
---|---|
protected void |
accept(BackendResource backendResource,
BackendResource.Visitor visitor,
IProgressMonitor monitor) |
protected Object |
beginConnected() |
protected void |
beginVisitor() |
protected BackendFile |
createBackendFile(URI systemRelativeURI) |
protected BackendFolder |
createBackendFolder(URI systemRelativeURI) |
protected void |
doAccept(BackendResource backendResource,
BackendResource.Visitor visitor,
IProgressMonitor monitor) |
protected boolean |
doVisit(BackendContainer backendContainer,
BackendResource.Visitor visitor,
IProgressMonitor monitor) |
protected void |
endConnected() |
protected void |
endVisitor() |
protected abstract boolean |
exists(BackendResource backendResource,
IProgressMonitor monitor) |
protected BackendResource |
findMember(BackendContainer backendContainer,
URI relativeURI,
IProgressMonitor monitor) |
protected abstract InputStream |
getContents(BackendFile backendFile,
IProgressMonitor monitor) |
protected abstract Object |
getDelegate(BackendResource backendResource) |
protected abstract Object |
getDelegateMember(Object containerDelegate,
String relativePath,
IProgressMonitor monitor) |
protected abstract Object[] |
getDelegateMembers(Object containerDelegate,
IProgressMonitor monitor) |
protected abstract String |
getDelegateName(Object resourceDelegate) |
protected abstract BackendResource.Type |
getDelegateType(Object resourceDelegate,
boolean checkExists) |
protected abstract long |
getLastModified(BackendResource backendResource,
IProgressMonitor monitor) |
protected abstract IPath |
getLocation(BackendResource backendResource) |
protected int |
getMaxThreads() |
protected BackendResource[] |
getMembers(BackendContainer backendContainer,
IProgressMonitor monitor) |
URI |
getSystemURI() |
BackendResource.Type |
getType() |
protected abstract ResourcesUtil.ImportResult |
importIntoWorkspace(BackendContainer backendContainer,
IProject project,
IProgressMonitor monitor) |
findMember, findMember, findMember, getFile, getFile, getFile, getFolder, getFolder, getFolder, getMembers, importIntoWorkspace
accept, equals, exists, get, get, getAbsoluteURI, getDelegate, getLastModified, getLocation, getName, getParent, getRelativePath, getRelativeURI, getSystem, getSystemRelativePath, getSystemRelativeURI, hashCode, isContainer, isLocal, toString
protected BackendSystem(URI systemURI) throws BackendException
BackendException
public final URI getSystemURI()
public final BackendResource.Type getType()
getType
in class BackendResource
protected void beginVisitor()
protected void endVisitor()
protected Object beginConnected()
protected void endConnected()
protected int getMaxThreads()
protected abstract Object getDelegate(BackendResource backendResource) throws Exception
Exception
protected abstract Object[] getDelegateMembers(Object containerDelegate, IProgressMonitor monitor) throws Exception
Exception
protected abstract Object getDelegateMember(Object containerDelegate, String relativePath, IProgressMonitor monitor) throws Exception
Exception
protected abstract String getDelegateName(Object resourceDelegate) throws Exception
Exception
protected abstract BackendResource.Type getDelegateType(Object resourceDelegate, boolean checkExists) throws Exception
Exception
protected abstract IPath getLocation(BackendResource backendResource) throws Exception
Exception
protected abstract boolean exists(BackendResource backendResource, IProgressMonitor monitor) throws Exception
Exception
protected abstract long getLastModified(BackendResource backendResource, IProgressMonitor monitor) throws Exception
Exception
protected abstract InputStream getContents(BackendFile backendFile, IProgressMonitor monitor) throws Exception
Exception
protected abstract ResourcesUtil.ImportResult importIntoWorkspace(BackendContainer backendContainer, IProject project, IProgressMonitor monitor) throws Exception
Exception
protected final BackendFolder createBackendFolder(URI systemRelativeURI)
protected final BackendFile createBackendFile(URI systemRelativeURI)
protected BackendResource[] getMembers(BackendContainer backendContainer, IProgressMonitor monitor) throws Exception
Exception
protected BackendResource findMember(BackendContainer backendContainer, URI relativeURI, IProgressMonitor monitor) throws Exception
Exception
protected final void accept(BackendResource backendResource, BackendResource.Visitor visitor, IProgressMonitor monitor) throws Exception
Exception
protected void doAccept(BackendResource backendResource, BackendResource.Visitor visitor, IProgressMonitor monitor) throws Exception
Exception
protected boolean doVisit(BackendContainer backendContainer, BackendResource.Visitor visitor, IProgressMonitor monitor) throws BackendException, OperationCanceledException
doVisit
in class BackendContainer
BackendException
OperationCanceledException
Copyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html