Class MappingElementDummy
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.MappingElementBaseImpl
de.mid.innovator.m2msdk.model.transformation.MappingElementDummy
- All Implemented Interfaces:
MappingElementIF,Serializable
A dummy mapping element does not really exist persistent in a model, but has been existed or will exist.
It can be created with a create descriptor.
- Version:
- 11.3.1
- Author:
- jmback
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMappingElementDummy(SessionInterface session, CreateDescriptorIF iCreate, MappingAnchor iParent) -
Method Summary
Modifier and TypeMethodDescriptioncreateElement(ModelTransformationStepIF step, CreateDescriptorIF createDescriptor, MappingAnchor anchor) Create a new element in the same model as this element.voiddelete()Delete the mapping element.Get the children of the element.getElementProperty(ExpressionContext expressionContext, PropertyDescriptorIF descriptor) Get the property value for a property descriptor.getHash()Get the hash value of the element inside the mapping model.getIcon()Get the icon of the element.getModel()Get the model of the element.getName()Get the name.getObject(ExpressionContext expressionContext, String sDescriptor, PropertyDescriptorList subDescriptors) Return the element associated.getObjects(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) Return the element associated.getOwner()Get the owner of the element.getPath()Get the path of the element inside the model.getProperty(ExpressionContext expressionContext, String sDescriptor) Return the property's value.Get the targets of the element.getType()Get the name of element's type.getURI()Get the URI.setElementProperty(PropertyDescriptorIF descriptor, PropertyValue value) Set the property.toString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.MappingElementBaseImpl
cloneIndexed, equals, equals, getBulkInfo, getBulkInfoSpecialist, getDisplayType, getObject, getObjects, getOwnerTransitive, getProperty, getSession, getVirtualIndex, hashCode, isNotNull, isVirtualIndexed, setVirtualIndex
-
Constructor Details
-
MappingElementDummy
public MappingElementDummy(SessionInterface session, CreateDescriptorIF iCreate, MappingAnchor iParent)
-
-
Method Details
-
getChildren
Description copied from interface:MappingElementIFGet the children of the element.- Returns:
- the children elements
-
getHash
Description copied from interface:MappingElementIFGet the hash value of the element inside the mapping model. Equal elements have same hash. Different elements have different hash.- Specified by:
getHashin interfaceMappingElementIF- Overrides:
getHashin classMappingElementBaseImpl- Returns:
- the elements hash value unique within one model.
-
getIcon
Description copied from interface:MappingElementIFGet the icon of the element. Either provide the fully qualified file name or the name in the classpath or the file name for Innovator bitmaps.- Specified by:
getIconin interfaceMappingElementIF- Overrides:
getIconin classMappingElementBaseImpl- Returns:
- the name of the elements icon, if exists
-
getModel
Description copied from interface:MappingElementIFGet the model of the element.- Specified by:
getModelin interfaceMappingElementIF- Overrides:
getModelin classMappingElementBaseImpl- Returns:
- the elements model
- Throws:
M2MExceptionRemoteException
-
getName
Description copied from interface:MappingElementIFGet the name.- Specified by:
getNamein interfaceMappingElementIF- Overrides:
getNamein classMappingElementBaseImpl- Returns:
- the elements name
-
getOwner
Description copied from interface:MappingElementIFGet the owner of the element.- Specified by:
getOwnerin interfaceMappingElementIF- Overrides:
getOwnerin classMappingElementBaseImpl- Returns:
- the owning element
-
getPath
Description copied from interface:MappingElementIFGet the path of the element inside the model.- Specified by:
getPathin interfaceMappingElementIF- Overrides:
getPathin classMappingElementBaseImpl- Returns:
- the elements path
-
getTargets
Description copied from interface:MappingElementIFGet the targets of the element.- Specified by:
getTargetsin interfaceMappingElementIF- Overrides:
getTargetsin classMappingElementBaseImpl- Returns:
- the target elements ( e.g. dependency or relationship target ) otherwise returns nothing
-
getType
Description copied from interface:MappingElementIFGet the name of element's type.- Specified by:
getTypein interfaceMappingElementIF- Overrides:
getTypein classMappingElementBaseImpl- Returns:
- the name of elements type
-
getURI
Description copied from interface:MappingElementIFGet the URI. The URI can be used to retrieve an element from the mapping meta model.- Specified by:
getURIin interfaceMappingElementIF- Overrides:
getURIin classMappingElementBaseImpl- Returns:
- URI of the element
-
createElement
public MappingElementIF createElement(ModelTransformationStepIF step, CreateDescriptorIF createDescriptor, MappingAnchor anchor) throws M2MException Description copied from interface:MappingElementIFCreate a new element in the same model as this element.- Specified by:
createElementin interfaceMappingElementIF- Overrides:
createElementin classMappingElementBaseImpl- Parameters:
createDescriptor- description what to createanchor- additional anchor elements for the new element- Returns:
- a newly created element with the current element as owner spawned through the additional target elements
- Throws:
M2MException
-
toString
-
getElementProperty
public PropertyValue getElementProperty(ExpressionContext expressionContext, PropertyDescriptorIF descriptor) throws M2MException, RemoteException Description copied from interface:MappingElementIFGet the property value for a property descriptor.- Specified by:
getElementPropertyin interfaceMappingElementIF- Overrides:
getElementPropertyin classMappingElementBaseImpl- Parameters:
expressionContext- TODOdescriptor-- Returns:
- the elements property described by the PropertyDescriptor
- Throws:
M2MExceptionRemoteException
-
setElementProperty
public OperationResult setElementProperty(PropertyDescriptorIF descriptor, PropertyValue value) throws M2MException Description copied from interface:MappingElementIFSet the property.- Specified by:
setElementPropertyin interfaceMappingElementIF- Overrides:
setElementPropertyin classMappingElementBaseImpl- Parameters:
descriptor- property namevalue-- Returns:
- false on error
- Throws:
M2MException
-
delete
Description copied from interface:MappingElementIFDelete the mapping element.- Specified by:
deletein interfaceMappingElementIF- Overrides:
deletein classMappingElementBaseImpl- Throws:
M2MExceptionRemoteException
-
getProperty
public PropertyValue getProperty(ExpressionContext expressionContext, String sDescriptor) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the property's value. Remark: This is the property of type "Property".- Specified by:
getPropertyin interfaceMappingElementIF- Overrides:
getPropertyin classMappingElementBaseImpl- Parameters:
expressionContext- TODOsDescriptor- property name- Returns:
- primitive, if found
- Throws:
M2MExceptionRemoteException
-
getObject
public MappingElementIF getObject(ExpressionContext expressionContext, String sDescriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the element associated.- Specified by:
getObjectin interfaceMappingElementIF- Overrides:
getObjectin classMappingElementBaseImpl- Parameters:
expressionContext- the context in which the navigatable object should be calculated.sDescriptor- navigation directivesubDescriptors- sub descriptors or parameters of the navigation directive- Returns:
- Element, if found
- Throws:
M2MExceptionRemoteException
-
getObjects
public MappingElementList getObjects(ExpressionContext expressionContext, String descriptor, PropertyDescriptorList subDescriptors) throws M2MException, RemoteException Description copied from interface:MappingElementIFReturn the element associated.- Specified by:
getObjectsin interfaceMappingElementIF- Overrides:
getObjectsin classMappingElementBaseImpl- Parameters:
expressionContext- the context in which the related objects should be calculated.descriptor- navigation directivesubDescriptors- sub descriptors or parameters of the navigation directive- Returns:
- List of Elements
- Throws:
M2MExceptionRemoteException
-
getMetaModel
- Throws:
M2MExceptionRemoteException
-