org.eclipse.emf.emfstore.internal.server.storage
Class ServerSpaceFileURIHandler

java.lang.Object
  extended by org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
      extended by org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
          extended by org.eclipse.emf.emfstore.internal.server.storage.ServerSpaceFileURIHandler
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.URIHandler

public class ServerSpaceFileURIHandler
extends org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl

Handler for serverspace file URIs. Adds functionality for also deleting project folder.

Author:
jfaltermeier

Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.resource.URIHandler
DEFAULT_HANDLERS
 
Constructor Summary
ServerSpaceFileURIHandler(HashSet<String> extensions)
          Constructor for ServerSpaceFileURIHandler.
 
Method Summary
 boolean canHandle(org.eclipse.emf.common.util.URI uri)
           
 void delete(org.eclipse.emf.common.util.URI uri, Map<?,?> options)
           
 
Methods inherited from class org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
createInputStream, createOutputStream, exists, getAttributes, setAttributes
 
Methods inherited from class org.eclipse.emf.ecore.resource.impl.URIHandlerImpl
contentDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSpaceFileURIHandler

public ServerSpaceFileURIHandler(HashSet<String> extensions)
Constructor for ServerSpaceFileURIHandler.

Parameters:
extensions - set of all file extensions this handler should handle.
Method Detail

canHandle

public boolean canHandle(org.eclipse.emf.common.util.URI uri)
Specified by:
canHandle in interface org.eclipse.emf.ecore.resource.URIHandler
Overrides:
canHandle in class org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl

delete

public void delete(org.eclipse.emf.common.util.URI uri,
                   Map<?,?> options)
            throws IOException
Specified by:
delete in interface org.eclipse.emf.ecore.resource.URIHandler
Overrides:
delete in class org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl
Throws:
IOException


Copyright © 2015. All Rights Reserved.