public class TaurusXMLHelper
extends org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl
XMLHelper which creates AWM specific HREFs for
RToolInParameters in order to maintain parameter references if
corresponding function packages are not available.
It also creates legacy tool parameters for LegacyToolDescriptors.
getHREF(EObject),
XMLHelperImpl.createObject(EFactory, EClassifier)| Constructor and Description |
|---|
TaurusXMLHelper(TaurusResourceImpl pTaurusResourceImpl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHREF(org.eclipse.emf.ecore.EObject pObj)
Creates specific HREF strings for tool descriptor input parameters.
|
addPrefix, convertToString, createObject, createObject, deresolve, getAnyContentPrefixToURIMapping, getDanglingHREFException, getExtendedMetaData, getFeature, getFeature, getFeatureKind, getID, getIDREF, getJavaEncoding, getName, getNamespaceURI, getNoNamespacePackage, getPrefix, getPrefix, getPrefixes, getPrefixToNamespaceMap, getQName, getQName, getQName, getResource, getType, getURI, getValue, getXMLEncoding, getXMLMap, packages, popContext, popContext, populateNameInfo, populateNameInfo, populateNameInfo, pushContext, recordPrefixToURIMapping, resolve, saveString, setAnySimpleType, setCheckForDuplicates, setExtendedMetaData, setManyReference, setMustHavePrefix, setNoNamespacePackage, setOptions, setPrefixToNamespaceMap, setProcessDanglingHREF, setResource, setValue, setXMLMappublic TaurusXMLHelper(TaurusResourceImpl pTaurusResourceImpl)
pTaurusResourceImpl - the resource instancepublic java.lang.String getHREF(org.eclipse.emf.ecore.EObject pObj)
TaurusResourceImpl) and have the following syntax:
#toolDescriptorID/@inputParm.index
The reason is that we want be able to maintain references to tool
descriptor input parameters, even if their function package is not
available. While EMF is natively able to maintain direct ID references to
an object whose EClass is missing, this does not work for references to
containments of this object (as an input parameter is a containment of
its tool descriptor).
With this special HREF we are able to reliably identify an unresolved
tool descriptor and its targeted parameter.
If the given EObject is an instance of
RToolInParameterUnresolved, it means that the corresponding
function package was already not available when the resource was loaded.
But the instance contains all information we need to create the HREF as
it has been serialized before.
getHREF in interface org.eclipse.emf.ecore.xmi.XMLHelpergetHREF in class org.eclipse.emf.ecore.xmi.impl.XMLHelperImplTaurusResourceImpl.getEObject(String)Copyright © 2015 Micro Focus GmbH. All rights reserved.