backwardCompatibility

Identifier:
com.ibm.xtools.emf.core.backwardCompatibility

Since:
7.0

Description:
This extension point provides hooks for clients to participate in the loading of older resources into the newest environment.

Configuration Markup:

<!ELEMENT extension (Ecore2XML* , ResourceHandler* , URIHandler* , XSISchemaLocationMapping*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT Ecore2XML (schema , XMIMapping*)>

<!ATTLIST Ecore2XML

file                   CDATA #IMPLIED

plugin                 CDATA #IMPLIED

destinationSchemaAlias CDATA #IMPLIED>

Declares an Ecore2XML document that should be used to map XML tags to their counterpart meta-objects in the current version of the application. The document is declared against one schema namespace URI (the first schema element) for which it contains mappings and a destination schema namespace URI (the second schema element).



<!ELEMENT ResourceHandler (schema | signature)>

<!ATTLIST ResourceHandler

class CDATA #REQUIRED>

Declares a ResourceHandler to perform post-load and pre-save modifications to a resource in order to convert it to the newest version and potentially save it back to the original version. The resource handler can be declared against a particular schema namespace URI or a signature version.



<!ELEMENT URIHandler (scheme | signature | (scheme , signature))>

<!ATTLIST URIHandler

class CDATA #REQUIRED>

Declares a URI handler to convert URIs to the newest version. A URI handler can be declared against a specific signature version or a URI scheme or both. In the case of both, the URI handler will not be called to handle URIs of other schemes.



<!ELEMENT schema EMPTY>

<!ATTLIST schema

nsURI CDATA #REQUIRED>

Identifies a particular schema with its namespace URI.



<!ELEMENT signature EMPTY>

<!ATTLIST signature

id      CDATA #REQUIRED

version CDATA #REQUIRED>

Identifies a particular signature with its unique id and version.



<!ELEMENT scheme EMPTY>

<!ATTLIST scheme

name CDATA #REQUIRED>

Identifies a particular scheme of a URI.



<!ELEMENT XSISchemaLocationMapping EMPTY>

<!ATTLIST XSISchemaLocationMapping

fromLocation                  CDATA #IMPLIED

fromLocationRegularExpression CDATA #IMPLIED

toLocation                    CDATA #REQUIRED>

Provides a simple one-to-one mapping for the XSI schema location of an EPackage. The XSI schema location is stored in EMF's XMI files whenever the EPackage's nsURI does not match the URI location where it can actually be loaded into EMF's package registry. Note: clients must provide a value for either the fromLocation attribute or the fromLocationRegularExpression.



<!ELEMENT XMIMapping EMPTY>

<!ATTLIST XMIMapping

xmlTagName    CDATA #REQUIRED

xmiType       CDATA #REQUIRED

classifier    CDATA #REQUIRED

sourceXMIType CDATA #IMPLIED>

This element represents a mapping from an XML tag name to an XMI type in the event that the xmi:type attribute is missing from the XML tag. This allows an ecore2xml document to map a containment EReference to null but still have contained EObjects being created as the appropriate EClass (not AnyTypes) in the absence of the xmi:type attribute as long as there is an ecore2xml mapping for that type.



Examples:

API Information:
See IRMPResource for more information about how clients will be interacting with resources that are using backward compatibility.


Copyright (c) 2004, 2018 Model RealTime, HCL and others. All Rights Reserved.