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, wait
getFolder
getName
getBigNumericId, getGlobalId, getNumericId
addComponent, 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, removeComponent
addProperty, createProperty, getAllProperties, getBooleanPropertyValue, getDisplayableProperties, getExpressionPropertyValue, getIntPropertyValue, getProperties, getProperty, getPropertyValue, getStringPropertyValue, isPropertyDefined, setBooleanPropertyValue, setIntPropertyValue, setPropertyValue
getBusinessName, getDescription, getName, setBusinessName, setDescription
dump, dump, getDisplayableObjectName, getGUID, getStrongTypeClassName, validate, validate, validate
getRootContainer
getGlobalId, getInternalId, getParent
getFirstDate, getFirstUser, getLastDate, getLastUser, getName, isInstanceLevelSecurityNeeded
public 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 MappingPropertyException
MappingException
public 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.PropertyException
MappingException
public 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.PropertyException
MappingException
public java.lang.String getFullName()
public void setName(java.lang.String name) throws MappingException
INamedObject
setName
in interface INamedObject
MappingException
- TODOpublic IRoot getOwner()
IRoot
public java.lang.String getDisplayableTypeName()
IPropertyOwner
getDisplayableTypeName
in interface IPropertyOwner
getDisplayableTypeName
in interface IRoot
public IContext getDefaultContext() throws AdapterException
AdapterException
public IProject getProject()
IReusableMapping
getProject
in interface IReusableMapping
public ReusableMapping getShortcutBaseObject()
public boolean setShortcutBaseObject(ReusableMapping pBaseObject)
public ReusableMapping getShortcutReferenceObject()
public boolean setShortcutReferenceObject(ReusableMapping pReferenceObject)
public ReusableMapping getShortcutOrigObject()
public IRepositoryEntity getSecurityContainer()
getSecurityContainer
in interface IRepositoryEntity
public boolean isShortcut()
IReusableMapping
isShortcut
in interface IReusableMapping
public IReleaseTag getReleaseTag()
public ReusableMapping getRealObject()
getRealObject
in interface IMapSignatureOwner
public void checkValidReference(ReusableMapping pReferenceObject)
public boolean changeShortcutReferenceObject(ReusableMapping pReferenceObject)
public IModelObject getRealModelObject()
IShortcutableModelObject
getRealModelObject
in interface IShortcutableModelObject
public java.lang.String getShortcutGlobalId()
IShortcutableModelObject
getShortcutGlobalId
in interface IShortcutableModelObject
@Deprecated public java.lang.Integer getShortcutNumericId()
getShortcutNumericId
in interface IShortcutableModelObject
public java.lang.Number getShortcutBigNumericId()
IShortcutableModelObject
getShortcutBigNumericId
in interface IShortcutableModelObject
public boolean isShortcutModelObject()
IShortcutableModelObject
isShortcutModelObject
in interface IShortcutableModelObject
public void deleteReferencesTo(IMapComponent comp)
public void deleteReferencesTo(MapConnectorPoint point)
public void deleteReferencesTo(MapExpression expr)
public java.util.List findReferencingMappings(AdapterBase adapter) throws AdapterException
AdapterException
public boolean supportComponentOfType(java.lang.String type)
type
- The component type for the component.