@ParametersAreNonnullByDefault public interface UriFactory
URI instances.
 
 Created URIs are used to locate a PersistentResource and select the BackendFactory to use for persistence.
| Modifier and Type | Method and Description | 
|---|---|
| org.eclipse.emf.common.util.URI | createLocalUri(File file)Creates a new URI from the given  filedescriptor. | 
| org.eclipse.emf.common.util.URI | createLocalUri(String filePath)Creates a new URI from the given  filedescriptor. | 
| org.eclipse.emf.common.util.URI | createLocalUri(org.eclipse.emf.common.util.URI uri)Creates a new URI from the given  uri. | 
| org.eclipse.emf.common.util.URI | createRemoteUri(InetAddress host,
               int port,
               String segments)Creates a new URI from the  host,port, andmodelby creating a hierarchical URI that
 references the distant model resource. | 
| org.eclipse.emf.common.util.URI | createRemoteUri(InetAddress host,
               int port,
               org.eclipse.emf.common.util.URI model)Creates a new URI from the  host,port, andmodelby creating a hierarchical URI that
 references the distant model resource. | 
| org.eclipse.emf.common.util.URI | createRemoteUri(String host,
               int port,
               String segments)Creates a new URI from the  host,port, andmodelby creating a hierarchical URI that
 references the distant model resource. | 
| org.eclipse.emf.common.util.URI | createRemoteUri(String host,
               int port,
               org.eclipse.emf.common.util.URI model)Creates a new URI from the  host,port, andmodelby creating a hierarchical URI that
 references the distant model resource. | 
| static String | createScheme(String baseName)Creates a URI scheme from the specified  baseName. | 
| static UriFactory | forName(String name) | 
| static UriFactory | forScheme(String scheme)Retrieves the instance of  UriFactorythat uses the givenscheme. | 
@Nonnull static String createScheme(String baseName)
baseName.baseName - the base name of the scheme@Nonnull static UriFactory forName(String name)
name - the name of the factoryUriFactory@Nonnull static UriFactory forScheme(String scheme)
UriFactory that uses the given scheme.scheme - the scheme of the builderUriFactory@Nonnull org.eclipse.emf.common.util.URI createLocalUri(org.eclipse.emf.common.util.URI uri)
uri.
 
 This method checks that the scheme of the provided uri can be used to create a new UriFactory. Its scheme must be registered in the BackendFactoryRegistry.
uri - the base file-based URIUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if the uri is nullIllegalArgumentException - if the scheme of the provided uri is not registered in the BackendFactoryRegistry@Nonnull org.eclipse.emf.common.util.URI createLocalUri(File file)
file descriptor.file - the File to build a URI fromUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if the file is null@Nonnull org.eclipse.emf.common.util.URI createLocalUri(String filePath)
file descriptor.filePath - the path of the File to build a URI fromUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if the filePath is null@Nonnull org.eclipse.emf.common.util.URI createRemoteUri(String host, int port, org.eclipse.emf.common.util.URI model)
host, port, and model by creating a hierarchical URI that
 references the distant model resource.host - the address of the server (use "localhost" if the server is running locally)port - the port of the servermodel - a URI identifying the model in the databaseUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if any of the parameters is nullIllegalArgumentException - if port < 0@Nonnull org.eclipse.emf.common.util.URI createRemoteUri(String host, int port, String segments)
host, port, and model by creating a hierarchical URI that
 references the distant model resource.host - the address of the server (use "localhost" if the server is running locally)port - the port of the serversegments - a string identifying the model in the databaseUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if any of the parameters is nullIllegalArgumentException - if port < 0@Nonnull org.eclipse.emf.common.util.URI createRemoteUri(InetAddress host, int port, org.eclipse.emf.common.util.URI model)
host, port, and model by creating a hierarchical URI that
 references the distant model resource.host - the address of the server (use "localhost" if the server is running locally)port - the port of the servermodel - a URI identifying the model in the databaseUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if any of the parameters is nullIllegalArgumentException - if port < 0@Nonnull org.eclipse.emf.common.util.URI createRemoteUri(InetAddress host, int port, String segments)
host, port, and model by creating a hierarchical URI that
 references the distant model resource.host - the address of the server (use "localhost" if the server is running locally)port - the port of the serversegments - a string identifying the model in the databaseUnsupportedOperationException - if this URI builder does not support this methodNullPointerException - if any of the parameters is nullIllegalArgumentException - if port < 0Copyright © 2013–2019 Atlanmod. All rights reserved.