public class ReusableMapping extends MapRootContainer implements IReusableMapping, IMapSignatureOwner, IShortcutableModelObject
| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_MAX_LENGTH
Maximum length of a reusable mapping.
|
static java.lang.String |
PROPKEY_TARGET_LOAD_ORDER
Property key name value for the target load order property.
|
| Constructor and Description |
|---|
ReusableMapping(java.lang.String pName)
Constructs a new reusable mapping in the global workspace.
|
ReusableMapping(java.lang.String pName,
IFolder pFolder)
Constructs a new reusable mapping under the specified folder.
|
ReusableMapping(java.lang.String pName,
IFolder pFolder,
ReusableMapping referenceReusableMapping)
Constructs a new shortcut reusable mapping under the specified folder, referencing the specified reusable mapping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeShortcutReferenceObject(ReusableMapping pReferenceObject) |
void |
checkValidReference(ReusableMapping pReferenceObject) |
void |
deleteReferencesTo(IMapComponent comp) |
void |
deleteReferencesTo(MapConnectorPoint point) |
void |
deleteReferencesTo(MapExpression expr) |
java.util.List |
findReferencingMappings(AdapterBase adapter)
Return a list of all mappings that use this reusable map in a reusable mapping component, including
nested usages.
|
IContext |
getDefaultContext() |
java.lang.String |
getDisplayableTypeName()
Get a displayable type name for the property owner object.
|
java.lang.String |
getFullName() |
IRoot |
getOwner()
Gets the mapping owner (or parent) of this object.
|
IProject |
getProject()
Gets the project owning this reusable mapping.
|
IModelObject |
getRealModelObject()
Returns the real model object of the current shortcut
|
ReusableMapping |
getRealObject() |
IReleaseTag |
getReleaseTag() |
IRepositoryEntity |
getSecurityContainer() |
ReusableMapping |
getShortcutBaseObject() |
java.lang.Number |
getShortcutBigNumericId()
Gets a numeric ID of the shortcut object, for repositories that support numeric id.
|
java.lang.String |
getShortcutGlobalId()
Gets the global ID of the shortcut object, which should be unique across the repository.
|
java.lang.Integer |
getShortcutNumericId()
Deprecated.
|
ReusableMapping |
getShortcutOrigObject()
Deprecated.
|
ReusableMapping |
getShortcutReferenceObject() |
boolean |
isShortcut()
Returns true if this reusable mapping is a shortcut.
|
boolean |
isShortcutModelObject()
Returns true if the model object is shortcut.
|
void |
setName(java.lang.String name)
Set the name of the object.
|
boolean |
setShortcutBaseObject(ReusableMapping pBaseObject) |
boolean |
setShortcutReferenceObject(ReusableMapping pReferenceObject) |
boolean |
supportComponentOfType(java.lang.String type)
Determine if this component owner can support (own) a component of the given type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFoldergetNamegetBigNumericId, getGlobalId, getNumericIdaddComponent, containsComponent, createComponent, createComponent, createComponent, findAllComponents, findComponent, findComponentBoundTo, findComponentOfType, findComponentsBoundTo, findConnector, findSubComponentOwner, getAllComponents, getAllComponentsOfType, getAllSignatureOwnerHolders, getAllSubComponentOwners, getComponentCount, getComponents, getLeafLevelComponents, getLeafLevelEndpoints, getLeafLevelTargets, getMapRootContainer, getSources, getTargets, getTopLevelComponentsOfType, getTopLevelSources, getTopLevelTargets, getUpstreamLeafAttributes, getUpstreamLeafAttributes, getUpstreamLeafConnectorPoints, getUpstreamLeafSources, isComponent, isExpandableComponent, isSignatureOwner, removeComponent, removeComponentaddProperty, createProperty, getAllProperties, getBooleanPropertyValue, getDisplayableProperties, getExpressionPropertyValue, getIntPropertyValue, getProperties, getProperty, getPropertyValue, getStringPropertyValue, isPropertyDefined, setBooleanPropertyValue, setIntPropertyValue, setPropertyValuegetBusinessName, getDescription, getName, setBusinessName, setDescriptiondump, dump, getDisplayableObjectName, getGUID, getStrongTypeClassName, validate, validate, validategetRootContainergetGlobalId, getInternalId, getParentgetFirstDate, getFirstUser, getLastDate, getLastUser, getName, isInstanceLevelSecurityNeededpublic static final int NAME_MAX_LENGTH
public static final java.lang.String PROPKEY_TARGET_LOAD_ORDER
public ReusableMapping(java.lang.String pName)
throws MappingException
pName - the name of the Reusable MappingPropertyExceptionMappingExceptionpublic ReusableMapping(java.lang.String pName,
IFolder pFolder)
throws MappingException
pName - the name of the Reusable MappingpFolder - the folder in which the Reusable Mapping will be created.PropertyExceptionMappingExceptionpublic ReusableMapping(java.lang.String pName,
IFolder pFolder,
ReusableMapping referenceReusableMapping)
throws MappingException
pName - the name of the Reusable MappingpFolder - the folder in which the Reusable Mapping will be created.referenceReusableMapping - the reusable mapping referenced by this shortcut.PropertyExceptionMappingExceptionpublic java.lang.String getFullName()
public void setName(java.lang.String name)
throws MappingException
INamedObjectsetName in interface INamedObjectMappingException - TODOpublic IRoot getOwner()
IRootpublic java.lang.String getDisplayableTypeName()
IPropertyOwnergetDisplayableTypeName in interface IPropertyOwnergetDisplayableTypeName in interface IRootpublic IContext getDefaultContext() throws AdapterException
AdapterExceptionpublic IProject getProject()
IReusableMappinggetProject in interface IReusableMappingpublic ReusableMapping getShortcutBaseObject()
public boolean setShortcutBaseObject(ReusableMapping pBaseObject)
public ReusableMapping getShortcutReferenceObject()
public boolean setShortcutReferenceObject(ReusableMapping pReferenceObject)
public ReusableMapping getShortcutOrigObject()
public IRepositoryEntity getSecurityContainer()
getSecurityContainer in interface IRepositoryEntitypublic boolean isShortcut()
IReusableMappingisShortcut in interface IReusableMappingpublic IReleaseTag getReleaseTag()
public ReusableMapping getRealObject()
getRealObject in interface IMapSignatureOwnerpublic void checkValidReference(ReusableMapping pReferenceObject)
public boolean changeShortcutReferenceObject(ReusableMapping pReferenceObject)
public IModelObject getRealModelObject()
IShortcutableModelObjectgetRealModelObject in interface IShortcutableModelObjectpublic java.lang.String getShortcutGlobalId()
IShortcutableModelObjectgetShortcutGlobalId in interface IShortcutableModelObject@Deprecated public java.lang.Integer getShortcutNumericId()
getShortcutNumericId in interface IShortcutableModelObjectpublic java.lang.Number getShortcutBigNumericId()
IShortcutableModelObjectgetShortcutBigNumericId in interface IShortcutableModelObjectpublic boolean isShortcutModelObject()
IShortcutableModelObjectisShortcutModelObject in interface IShortcutableModelObjectpublic void deleteReferencesTo(IMapComponent comp)
public void deleteReferencesTo(MapConnectorPoint point)
public void deleteReferencesTo(MapExpression expr)
public java.util.List findReferencingMappings(AdapterBase adapter)
throws AdapterException
AdapterExceptionpublic boolean supportComponentOfType(java.lang.String type)
type - The component type for the component.