All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.content_handler.exsd Maven / Gradle / Ivy

Go to download

PlantUML is a component that allows to quickly write : * sequence diagram, * use case diagram, * class diagram, * activity diagram, * component diagram, * state diagram * object diagram

There is a newer version: 8059
Show newest version




      
         
      
      
         This extension point is used to define a content handler that describes content types. 
The global EMF content handler registry, <samp>ContentHandler.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 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 handler can be registered: 
<pre>
  <extension point="org.eclipse.emf.ecore.content_handler" >
     <contentHandler
           class="org.eclipse.emf.ecore.resource.impl.PlatformContentHandlerImpl"
           priority="2000">
     </contentHandler>
  </extension>
</pre>
      
   

   
      
         
      
      
         The value of the class attribute must represent a class 
that implements <samp>org.eclipse.emf.ecore.resource.ContentHandler</samp>.
It must either have a no argument contructor 
or if there are parameters in the body of the configuration element,
a constructor taking a <samp>Map&lt;String, String></samp> argument representing those parameters.
<p>
A content handler can be also registered from the source code with the <samp>ContentHandler.Registry.INSTANCE</samp> as follows:
</p>
<pre>
  ContentHandler.Registry.INSTANCE.getContentTypeToFactoryMap().put(2000, new PlatformContentHandlerImpl());
</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 - 2024 Weber Informatics LLC | Privacy Policy