
schema.extension_parser.exsd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
This extension point is used to define the resource factory that handles a specific file (or URI) extension. 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 file extension (without the leading .) that identifies the filenames and URIs 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>.
1.0.0
Following is an example of how a URI extension can be registered:
<pre>
<extension point="org.eclipse.emf.ecore.extension_parser">
<parser type="xsd" class="org.eclipse.xsd.util.XSDResourceFactoryImpl"/>
</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 extension can be also registered from the source code with the <samp>Resource.Factory.Registry.INSTANCE</samp> as follows:
</p>
<pre>
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("library", new XMIResourceFactoryImpl());
</pre>
The <samp>org.eclipse.emf.ecore.xmi</samp> plug-in extends this extension point to make the default EMF registrations: "ecore" is handled by <samp>EcoreResourceFactoryImpl</samp>, "emof" by <samp>EMOFResourceFactoryImpl</samp>, and <samp>XMIResourceFactoryImpl</samp> is the default.
Copyright (c) 2002, 2004 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