![JAR search and dependency download from the Maven repository](/logo.png)
schema.content_parser.exsd Maven / Gradle / Ivy
This extension point is used to define the resource factory that handles a specific URI content type. The global EMF resource factory registry, <samp>Resource.Factory.Registry.INSTANCE</samp>, is used to record the registration.
A fully qualified identifier of the target extension point.
An optional identifier of the extension instance.
An optional name of the extension instance.
A particular content type identifier to be handled by a resource factory.
A fully qualified name of the Java class implementing <samp>org.eclipse.emf.ecore.resource.Resource.Factory
</samp>.
2.4.0
Following is an example of how a URI content type can be registered:
<pre>
<extension point="org.eclipse.emf.ecore.content_parser" >
<parser contentTypeIdentifier="org.eclipse.emf.ecore" class="org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl"/>
</extension>
</pre>
The value of the class attribute must represent a class
that implements <samp>org.eclipse.emf.ecore.resource.Resource.Factory</samp>.
<p>
A URI content type identifier can be also registered from the source code with the <samp>Resource.Factory.Registry.INSTANCE</samp> as follows:
</p>
<pre>
Resource.Factory.Registry.INSTANCE.getContentTypeToFactoryMap().put("org.eclipse.emf.ecore", new EcoreResourceFactoryImpl());
</pre>
Copyright (c) 2007 IBM Corporation and others.<br>
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a
href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy