org.objectweb.dsrg.sofa.repository.core
Class SofaURIConverterImpl

java.lang.Object
  extended by org.objectweb.dsrg.sofa.repository.core.SofaURIConverterImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.URIConverter

public class SofaURIConverterImpl
extends java.lang.Object
implements org.eclipse.emf.ecore.resource.URIConverter

Internal class used by EMF for opening and closing streams for Resources. Do not use it anywhere in client code. For details see EMF documentation. This implementation uses SofaInputStream and SofaOutputStream.

See Also:
SofaInputStream, SofaOutputStream

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.URIConverter
org.eclipse.emf.ecore.resource.URIConverter.Cipher, org.eclipse.emf.ecore.resource.URIConverter.Readable, org.eclipse.emf.ecore.resource.URIConverter.ReadableInputStream, org.eclipse.emf.ecore.resource.URIConverter.Writeable, org.eclipse.emf.ecore.resource.URIConverter.WriteableOutputStream
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.resource.URIConverter
ATTRIBUTE_ARCHIVE, ATTRIBUTE_DIRECTORY, ATTRIBUTE_EXECUTABLE, ATTRIBUTE_HIDDEN, ATTRIBUTE_LENGTH, ATTRIBUTE_READ_ONLY, ATTRIBUTE_TIME_STAMP, INSTANCE, NULL_TIME_STAMP, OPTION_REQUESTED_ATTRIBUTES, OPTION_RESPONSE, OPTION_URI_CONVERTER, RESPONSE_TIME_STAMP_PROPERTY, URI_MAP
 
Constructor Summary
SofaURIConverterImpl(RepositoryConfiguration configuration)
          Standard constructor.
 
Method Summary
 java.util.Map<java.lang.String,?> contentDescription(org.eclipse.emf.common.util.URI arg0, java.util.Map<?,?> arg1)
           
 java.io.InputStream createInputStream(org.eclipse.emf.common.util.URI uri)
           
 java.io.InputStream createInputStream(org.eclipse.emf.common.util.URI uri, java.util.Map<?,?> map)
           
 java.io.OutputStream createOutputStream(org.eclipse.emf.common.util.URI uri)
           
 java.io.OutputStream createOutputStream(org.eclipse.emf.common.util.URI uri, java.util.Map<?,?> map)
           
 void delete(org.eclipse.emf.common.util.URI arg0, java.util.Map<?,?> arg1)
           
 boolean exists(org.eclipse.emf.common.util.URI arg0, java.util.Map<?,?> arg1)
           
 java.util.Map<java.lang.String,?> getAttributes(org.eclipse.emf.common.util.URI arg0, java.util.Map<?,?> arg1)
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.ContentHandler> getContentHandlers()
           
 RepositoryConfiguration getRepositoryConfiguration()
          Obtains RepositoryConfiguration.
 org.eclipse.emf.ecore.resource.URIHandler getURIHandler(org.eclipse.emf.common.util.URI arg0)
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.URIHandler> getURIHandlers()
           
 java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> getURIMap()
           
 org.eclipse.emf.common.util.URI normalize(org.eclipse.emf.common.util.URI uri)
          Not used by this implementation.
 void setAttributes(org.eclipse.emf.common.util.URI arg0, java.util.Map<java.lang.String,?> arg1, java.util.Map<?,?> arg2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SofaURIConverterImpl

public SofaURIConverterImpl(RepositoryConfiguration configuration)
Standard constructor.

Parameters:
configuration - Connection parameters to remote server (host and port).
Method Detail

getRepositoryConfiguration

public RepositoryConfiguration getRepositoryConfiguration()
Obtains RepositoryConfiguration. This is necessary for SofaInputStream and SofaOutputStream to get connection informations of RepositoryServer.

Returns:
repository configuration - Connection parameters to remote server (host and port).

contentDescription

public java.util.Map<java.lang.String,?> contentDescription(org.eclipse.emf.common.util.URI arg0,
                                                            java.util.Map<?,?> arg1)
                                                     throws java.io.IOException
Specified by:
contentDescription in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

createInputStream

public java.io.InputStream createInputStream(org.eclipse.emf.common.util.URI uri)
                                      throws java.io.IOException
Specified by:
createInputStream in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

createInputStream

public java.io.InputStream createInputStream(org.eclipse.emf.common.util.URI uri,
                                             java.util.Map<?,?> map)
                                      throws java.io.IOException
Specified by:
createInputStream in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

createOutputStream

public java.io.OutputStream createOutputStream(org.eclipse.emf.common.util.URI uri)
                                        throws java.io.IOException
Specified by:
createOutputStream in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

createOutputStream

public java.io.OutputStream createOutputStream(org.eclipse.emf.common.util.URI uri,
                                               java.util.Map<?,?> map)
                                        throws java.io.IOException
Specified by:
createOutputStream in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

delete

public void delete(org.eclipse.emf.common.util.URI arg0,
                   java.util.Map<?,?> arg1)
            throws java.io.IOException
Specified by:
delete in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException

exists

public boolean exists(org.eclipse.emf.common.util.URI arg0,
                      java.util.Map<?,?> arg1)
Specified by:
exists in interface org.eclipse.emf.ecore.resource.URIConverter

getAttributes

public java.util.Map<java.lang.String,?> getAttributes(org.eclipse.emf.common.util.URI arg0,
                                                       java.util.Map<?,?> arg1)
Specified by:
getAttributes in interface org.eclipse.emf.ecore.resource.URIConverter

getContentHandlers

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.ContentHandler> getContentHandlers()
Specified by:
getContentHandlers in interface org.eclipse.emf.ecore.resource.URIConverter

getURIHandler

public org.eclipse.emf.ecore.resource.URIHandler getURIHandler(org.eclipse.emf.common.util.URI arg0)
Specified by:
getURIHandler in interface org.eclipse.emf.ecore.resource.URIConverter

getURIHandlers

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.URIHandler> getURIHandlers()
Specified by:
getURIHandlers in interface org.eclipse.emf.ecore.resource.URIConverter

getURIMap

public java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> getURIMap()
Specified by:
getURIMap in interface org.eclipse.emf.ecore.resource.URIConverter

normalize

public org.eclipse.emf.common.util.URI normalize(org.eclipse.emf.common.util.URI uri)
Not used by this implementation.

Specified by:
normalize in interface org.eclipse.emf.ecore.resource.URIConverter

setAttributes

public void setAttributes(org.eclipse.emf.common.util.URI arg0,
                          java.util.Map<java.lang.String,?> arg1,
                          java.util.Map<?,?> arg2)
                   throws java.io.IOException
Specified by:
setAttributes in interface org.eclipse.emf.ecore.resource.URIConverter
Throws:
java.io.IOException