T - referencing object typeE - target reference typepublic abstract class ModelExtensionReference<T,E>
extends java.lang.Object
| Constructor and Description |
|---|
ModelExtensionReference(java.lang.String pRawTargetID,
java.lang.String pPrefixedTargetID,
T pReferencingObject)
Constructor with the option to make a reference to a feature of another
function package.
|
ModelExtensionReference(java.lang.String pTargetID,
T pReferencingObject)
Constructor for references which do not support targeting features of
other function packages.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getReferencingObject()
Gets the
ModelExtensionObject which declared the reference. |
java.lang.String |
getTargetID()
Gets the target attribute ID.
|
void |
resolveReference(java.util.Map<java.lang.String,ModelExtensionObject> pParsedExtensionObjects)
Resolves the reference by getting the reference target from the map of
parsed extension objects and then calling
setReference(Object, Object). |
public ModelExtensionReference(java.lang.String pTargetID,
T pReferencingObject)
pTargetID - the full qualified target ID of the reference (starting with
the function package ID)pReferencingObject - the extension object that is referencing the targetIDpublic ModelExtensionReference(java.lang.String pRawTargetID,
java.lang.String pPrefixedTargetID,
T pReferencingObject)
pRawTargetID - the unchanged target ID of the referencepPrefixedTargetID - the target ID prefixed with the parent's feature ID (see
ModelExtensionUtilities.getFullQualifiedID(ModelExtensionObject, String)pReferencingObject - the extension object that is referencing the targetIDpublic java.lang.String getTargetID()
public T getReferencingObject()
ModelExtensionObject which declared the reference.public void resolveReference(java.util.Map<java.lang.String,ModelExtensionObject> pParsedExtensionObjects) throws TaurusMetaModelException
setReference(Object, Object).pParsedExtensionObjects - a map will all parsed extension objects of the function
packageTaurusMetaModelException - if the reference cannot be resolvedCopyright © 2015 Micro Focus GmbH. All rights reserved.