congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Resource$Factory$Registry.getFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
getFactory
method
in
org.eclipse.emf.ecore.resource.Resource$Factory$Registry

Best Java code snippets using org.eclipse.emf.ecore.resource.Resource$Factory$Registry.getFactory (Showing top 7 results out of 855)

origin: org.wso2.wsdl.validator/wsdl-validator

Factory factory = parent.getFactory(uri);
Factory defaultFactory = (Factory)INSTANCE.getFactory(URI.createURI(DEFAULT_EXTENSION));
  factory = parent.getFactory(URI.createURI("*.wsdl"));
  factory = parent.getFactory(URI.createURI("*.xsd"));
    factory = parent.getFactory(URI.createURI("*.xsd"));
    factory = parent.getFactory(URI.createURI("*.wsdl"));
origin: org.eclipse.emf/org.eclipse.emf.ecore

public Resource createResource(URI uri, String contentType)
{
 Resource.Factory resourceFactory = getResourceFactoryRegistry().getFactory(uri, contentType);
 if (resourceFactory != null)
 {
  Resource result = resourceFactory.createResource(uri);
  getResources().add(result);
  return result;
 }
 else
 {
  return null;
 }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public Resource createResource(URI uri, String contentType)
{
 Resource.Factory resourceFactory = getResourceFactoryRegistry().getFactory(uri, contentType);
 if (resourceFactory != null)
 {
  Resource result = resourceFactory.createResource(uri);
  getResources().add(result);
  return result;
 }
 else
 {
  return null;
 }
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

 Resource.Factory.Registry.INSTANCE.getFactory(genModelURI).createResource(genModelURI);
GenModel genModel = GenModelFactory.eINSTANCE.createGenModel();
genModelResource.getContents().add(genModel);
origin: org.eclipse/org.eclipse.emf.codegen.ecore

 Resource.Factory.Registry.INSTANCE.getFactory(genModelURI).createResource(genModelURI);
GenModel genModel = GenModelFactory.eINSTANCE.createGenModel();
genModelResource.getContents().add(genModel);
origin: org.eclipse/org.eclipse.jst.j2ee

resourceFactory = getResourceFactoryRegistry().getFactory(uri);
origin: org.eclipse/org.eclipse.jem.util

public Resource createResource(URI uri) {
  if (isReleasing) return null;
  //Check the map first when creating the resource and do not
  //normalize if a value is found.
  boolean isMapped = detectURIMapping(uri);
  boolean hasContentType = (getContentTypeName(uri) != null);
  URI converted = uri;
  if (!isMapped)
    converted = getURIConverter().normalize(uri);
  else if (hasContentType)
    converted = getURIConverter().normalize(uri);
  
  Resource result = createResourceFromHandlers(converted);
  if (result == null) {
    Resource.Factory resourceFactory = getResourceFactoryRegistry().getFactory(uri);
    if (resourceFactory != null)
    {//We got the right factory, now use the right URI
     result = resourceFactory.createResource(converted);
     getResources().add(result);
    }
  }
    
  
  return result;
}
private boolean detectURIMapping(URI uri) {
org.eclipse.emf.ecore.resourceResource$Factory$RegistrygetFactory

Javadoc

Returns the resource factory appropriate for the given URI.

An implementation will (typically) use the URI's URI#scheme to search the #getProtocolToFactoryMap map the URI's URI#fileExtension to search #getExtensionToFactoryMap map, and the URI's URIConverter#contentDescription(URI,Map) to search the #getContentTypeToFactoryMap() map. It will org.eclipse.emf.ecore.resource.Resource.Factory.Descriptor#createFactorya resulting descriptor into a factory. It may choose to provide additional mechanisms and algorithms to determine a factory appropriate for the given URI.

Popular methods of Resource$Factory$Registry

  • getExtensionToFactoryMap
    Returns a map from URI#fileExtension to org.eclipse.emf.ecore.resource.Resource.Factoryor org.eclips
  • getProtocolToFactoryMap
    Returns a map from URI#scheme to org.eclipse.emf.ecore.resource.Resource.Factoryor org.eclipse.emf.e
  • getContentTypeToFactoryMap
    Returns a map from content type identifier to org.eclipse.emf.ecore.resource.Resource.Factoryor org.

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now