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

schema.generated_package.exsd Maven / Gradle / Ivy





      
         
      
      
         This extension point is used to register a generated Ecore package against a namespace URI (Uniform Resource Identifier) in EMF's global package registry, <samp>EPackage.Registry.INSTANCE</samp>. When a model instance is loaded from its serialized form, this registry may be consulted in order to obtain the correct metamodel that is to be instantiated.
      
   

   
      
         
            
         
      
      
         
            
         
         
            
               
                  A fully qualified identifier of the target extension point.
               
            
         
         
            
               
                  An optional identifier of the extension instance.
               
            
         
         
            
               
                  An optional name of the extension instance.
               
            
         
      
   

   
      
         
            
         
      
      
         
            
               
                  A URI that uniquely identifies an Ecore package.
               
            
         
         
            
               
                  The plugin relative URI of the generator model resource for the package.
               
               
                  
               
            
         
         
            
               
                  A fully qualified name of the  generated Java package interface.
               
               
                  
               
            
         
      
   

   
      
         
      
      
         1.0.0
      
   

   
      
         
      
      
         Following is an example of how a package can be registered: 
<pre>
  <extension point="org.eclipse.emf.ecore.generated_package" >
     <package uri="http://www.eclipse.org/xsd/2002/XSD" class="org.eclipse.xsd.XSDPackage"/> 
  </extension>
</pre>
      
   

   
      
         
      
      
         The value of the class attribute must represent a generated package interface that extends <samp>org.eclipse.emf.ecore.EPackage</samp> and has a static <samp>eINSTANCE</samp> singleton field.
<p>
An EMF package can also be registered from the source code with the <samp>EPackage.Registry.INSTANCE</samp> as follows:
</p>
<pre>
  EPackage.Registry.INSTANCE.put(companyPackage.getNsURI(), companyPackage); 
</pre>
      
   

   
      
         
      
      
         This plug-in extends this extension point to register the following three required Ecore packages: <samp>EcorePackage</samp>, <samp>XMLTypePackage</samp> and <samp>XMLNamespacePackage</samp>. In addition, for any model plug-in generated by EMF, an extension to this point is included in the manifest file, to register packages in that model.
      
   

   
      
         
      
      
         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 - 2024 Weber Informatics LLC | Privacy Policy